IsSelected variable not working or not present within RuleTileEditor.cs
I have just tried downloading the 2d-extras-master zip file and I have placed it into my assets folder. After it had finished loading into my assets folder, I got the following error message in my console:
Assets\2d-extras-master\2d-extras-master\Editor\Tiles\RuleTile\RuleTileEditor.cs(277,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?)
Does anyone know how to fix this problem?
Hi, could you share which version of the Unity Editor you are using? The master branch requires the use of the Unity 2021.1 editor, where IsSelected is a new API found in that version. If you are not using Unity 2021.1, you may need to use one of the other branches as listed in the Readme. Hope this helps!
I think my version of Unity is 2019.4. Will that work?
Thank you Chuanxin, much appreciated. I was dealing with this same issue.
I changed my unity version to 2021.1. Will my projects and C# scripts be affected in any way?
I changed my unity version to 2021.1. Will my projects and C# scripts be affected in any way?
Potentially, yes.
Unity will try to update your C# scripts to newer APIs if we have deprecated some of the prior APIs. There should be a warning and a prompt to cancel when Unity is about to do so.
Also, the packages you are using in your project will be updated to versions which are suitable for 2021.1. This may change the behaviour you are expecting from the packages.
Do try to keep a backup of your project when updating to a newer Unity version! Also, there are other versions of this package in different branches which are compatible with the different Unity LTS versions. Generally, we try to keep these branches updated with the fixes and improvements from the master branch where possible. Do give them a try if you do not wish to update your Unity version!
Hi, could you share which version of the Unity Editor you are using? The master branch requires the use of the Unity 2021.1 editor, where
IsSelectedis a new API found in that version. If you are not using Unity 2021.1, you may need to use one of the other branches as listed in the Readme. Hope this helps!
Same issue in 2020.3.2f1c1
Same issue in 2020.3.2f1c1
@Vie-Any Please do use the 20.3 branch instead of the master branch. This branch is suitable for 2020.3.2 and will not have the issue you experienced.