Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Make Selectable.IsPressed method public?

Discussion in 'UGUI & TextMesh Pro' started by triple_why, May 29, 2019.

  1. triple_why

    triple_why

    Joined:
    Jun 9, 2018
    Posts:
    47
    Hello,

    At Selectable documentation [1], and at documentations of classes derived from it (e.g. Button [2]), IsPressed method is listed as public (as direct or inherited member). But as stated at IsPressed documentation [3], it is actually protected, and cannot be reached from other classes at scripts.

    So, if possible, Selectable.IsPressed method can be made public, if not, it can be listed at Protected Methods section.

    [1]: https://docs.unity3d.com/ScriptReference/UI.Selectable.html
    [2]: https://docs.unity3d.com/ScriptReference/UI.Button.html
    [3]: https://docs.unity3d.com/ScriptReference/UI.Selectable.IsPressed.html

    Thanks,
    Yasar
     
    Novack and badplastics like this.