2d-extras icon indicating copy to clipboard operation
2d-extras copied to clipboard

ReorderableList' does not contain a definition for 'IsSelected' and no accessible extension method 'IsSelected

Open alabsdk opened this issue 4 years ago • 10 comments

EDIT - 2021-JUN-25 - error already reported here : https://github.com/Unity-Technologies/2d-extras/issues/280

Hi, i'm quite beginner level at this. I have tried following this tutorial, which utilises this package https://www.youtube.com/watch?v=94KWSZBSxIA&ab_channel=MuddyWolfGames

-Enabled 2d tilemap package in the package manager -I manually downloaded it, the zip file -Created a folder called "com.unity.2d.tilemap.extras" inside the packages folder of my project.

I get the following 3 errors when Unity has compiled the package :

Packages\com.unity.2d.tilemap.extras\Editor\Tiles\RuleTile\RuleTileEditor.cs(325,26): error CS1061: 'ReorderableList' does not contain a definition for 'IsSelected' and no accessible extension method 'IsSelected' accepting a first argument of type 'ReorderableList' could be found (are you missing a using directive or an assembly reference?)

Packages\com.unity.2d.tilemap.extras\Editor\Tiles\RuleTile\RuleTileEditor.cs(339,22): error CS1061: 'ReorderableList' does not contain a definition for 'IsSelected' and no accessible extension method 'IsSelected' accepting a first argument of type 'ReorderableList' could be found (are you missing a using directive or an assembly reference?)

Packages\com.unity.2d.tilemap.extras\Editor\Tiles\RuleTile\RuleTileEditor.cs(345,82): error CS1061: 'ReorderableList' does not contain a definition for 'IsSelected' and no accessible extension method 'IsSelected' accepting a first argument of type 'ReorderableList' could be found (are you missing a using directive or an assembly reference?)

I have restarted in safe mode - with unity version 2020.3.11f1...

I would not be suprised if it was a very trivial issue bothering me, and not a code fault per se... perhaps I should use a older version of Unity ?

alabsdk avatar Jun 25 '21 10:06 alabsdk

As mentioned in #280, please use the 2020.3 branch found at https://github.com/Unity-Technologies/2d-extras/tree/2020.3 for the Unity Editor 2020.3.

Hope this helps!

ChuanXin-Unity avatar Jun 28 '21 00:06 ChuanXin-Unity

I was able to resolve this issue in Unity 2020.3 by adding a #2020.3 to the end of my clone link when importing the package in unity.

Window > Package Manager > Add package from git URL... > https://github.com/Unity-Technologies/2d-extras.git#2020.3

KyleNoCompile avatar Mar 01 '22 23:03 KyleNoCompile

I was able to resolve this issue in Unity 2020.3 by adding a #2020.3 to the end of my clone link when importing the package in unity.

Window > Package Manager > Add package from git URL... > https://github.com/Unity-Technologies/2d-extras.git#2020.3

Hi everyone, I'm also having the same problem with Unity 2020.3 and added the package from git URL but I seem to be getting this error in the code of the package. How shall I resolve that? Thanks.

Library\PackageCache\[email protected]\Editor\PSDImporter.cs(594,65): error CS0117: 'TexturePlatformSettingsHelper' does not contain a definition for 'GetBuildTargetName'

s1m1ng7on avatar Apr 01 '22 17:04 s1m1ng7on

Hi, it looks like the package [email protected] is not compatible with your Unity Editor version. You can update the package to one that is compatible with your Unity Editor version by:

  • In the menu, select Windows > Package Manager
  • Locate the 2D PSD Importer package in the left side bar
  • Expand the listing for the package
  • Select the latest version for the package (which will be suitable for your Unity Editor version) and click on the Update button at the button right.

Hope this helps!

ChuanXin-Unity avatar Apr 04 '22 01:04 ChuanXin-Unity

I was able to resolve this issue in Unity 2020.3 by adding a #2020.3 to the end of my clone link when importing the package in unity.

Window > Package Manager > Add package from git URL... > https://github.com/Unity-Technologies/2d-extras.git#2020.3

Still didn't work here (same issue)

7azmi avatar Jul 06 '22 21:07 7azmi

@7azmi You could try deleting the Packages/packages-lock.json and add the package again and check if you can get the latest version of 2d-extras #2020.3

ChuanXin-Unity avatar Jul 08 '22 01:07 ChuanXin-Unity

I'm using Unity editor 2020.3.27f1 and downloaded 2d-extras-2.2.2 and got the same error message. Are there any solutions?

Gh0st422 avatar Jul 22 '22 17:07 Gh0st422

I also got the error "Failed to resolve packages: The file [C:\Users\Name\2D Game\Packages\manifest.json] is not valid JSON: Syntax error: duplicated keys "com.unity.2d.tilemap.extras" near tras": "ht. No packages loaded.

A re-import of the project may be required to fix the issue or a manual modification of C:/Users/Name/2D Game/Packages/manifest.json file." after following the instruction of putting the line ""com.unity.2d.tilemap.extras": "https://github.com/Unity-Technologies/2d-extras.git#master"" in "Packages/manifest.json"

Gh0st422 avatar Jul 22 '22 17:07 Gh0st422

Sorry to bother you, I was able to resolve this issue! It was as simple as following this advice:

As mentioned in #280, please use the 2020.3 branch found at https://github.com/Unity-Technologies/2d-extras/tree/2020.3 for the Unity Editor 2020.3.

Hope this helps!

Gh0st422 avatar Jul 24 '22 03:07 Gh0st422

Thank you very much my problem is solved

zqq-nuli avatar Oct 01 '22 07:10 zqq-nuli