Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.54k stars 342 forks source link

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

Open alabsdk opened 3 years ago

alabsdk commented 3 years ago

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 ?

ChuanXin-Unity commented 3 years ago

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!

KyleNoCompile commented 2 years ago

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

s1m1ng7on commented 2 years ago

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\com.unity.2d.psdimporter@4.1.0\Editor\PSDImporter.cs(594,65): error CS0117: 'TexturePlatformSettingsHelper' does not contain a definition for 'GetBuildTargetName'

ChuanXin-Unity commented 2 years ago

Hi, it looks like the package com.unity.2d.psdimporter@4.1.0 is not compatible with your Unity Editor version. You can update the package to one that is compatible with your Unity Editor version by:

Hope this helps!

7azmi commented 2 years ago

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)

ChuanXin-Unity commented 2 years ago

@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

Gh0st422 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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!

zqq-nuli commented 2 years ago

Thank you very much my problem is solved