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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (2019.3.X):
low priority for the moment, unlikely to be fixed for the immediate future.