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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (2019.3.X):
low priority for the moment, unlikely to be fixed for the immediate future.