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

uGUI

-

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

  1. Resolution Note (2019.3.X):

    low priority for the moment, unlikely to be fixed for the immediate future.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.