Skip to content

Error when installing v2.4.2 in Unity 6 #180

@NikLucoz

Description

@NikLucoz

Description

I'm getting compilation errors when trying to install the package via OpenUPM in Unity 6 (version 6000.0.58f2).

Errors

Library\PackageCache\com.brunomikoski.scriptableobjectcollection@5e937bc73601\Scripts\Editor\Browser\BrowserTreeView.cs(9,36): error CS0308: The non-generic type 'TreeView' cannot be used with type arguments

Library\PackageCache\com.brunomikoski.scriptableobjectcollection@5e937bc73601\Scripts\Editor\Browser\BrowserTreeViewItem.cs(7,40): error CS0308: The non-generic type 'TreeViewItem' cannot be used with type arguments

Library\PackageCache\com.brunomikoski.scriptableobjectcollection@5e937bc73601\Scripts\Editor\Browser\BrowserTreeView.cs(24,32): error CS0308: The non-generic type 'TreeViewState' cannot be used with type arguments

Steps to Reproduce

  1. Open Unity 6 (version 6000.0.58f2)
  2. Install com.brunomikoski.scriptableobjectcollection v2.4.2 via OpenUPM
  3. Wait for import/compilation
  4. Observe the above errors in the console

Environment

  • Unity version: 6000.0.58f2
  • Package version: 2.4.2
  • Installation method: OpenUPM

Additional Context

It seems Unity 6 might have changed or removed the generic versions of TreeView, TreeViewItem, and TreeViewState.
This could be causing compatibility issues with the current implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions