Search Issue Tracker
Won't Fix
Votes
1
Found in
2019.1.0a1
2019.1.8f1
2019.2.0a1
2019.3.0a1
Issue ID
1167006
Regression
No
Previously protected Selectables methods still can't be accessed due to their protection level
How to reproduce:
1. Open the attached project named Case_1167006
2. Open the "Test.cs" and uncomment the code
3. Observe the .IsHighlighted() method
Expected result: Method can be accessed
Actual result: Method can't be accessed due to its protection level
Reproducible with: 2019.1.0a1, 2019.1.12f1, 2019.2.0b10, 2019.3.0a10
Does not reproduce with: 2017.4.30f1, 2018.4.5f1(Methods were stated as protected, so they couldn't be accesed by design)
Notes:
1. Methods that are affected: Selectables.IsHighlighted and Selectables.IsPressed
2. The 2018.4 documentation states that these methods are protected, so it is expected that they can't be accessed from outside Selectables class
https://docs.unity3d.com/2018.4/Documentation/ScriptReference/UI.Selectable.html
3. The 2019.1 documentation states that these methods are public, so it should be possible to access them.
https://docs.unity3d.com/ScriptReference/UI.Selectable.html
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (2019.3.X):
low priority for the moment, unlikely to be fixed for the immediate future.