Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity UI [Suggestion] ScrollRect : m_Dragging accessibilty

Discussion in 'UGUI & TextMesh Pro' started by mcallet, Jul 19, 2019.

  1. mcallet


    Oct 16, 2018
    I'm working on an extension of a ScrollRect.cs (with source code from bitbucket). So, I have my new class who inherit from the ScrollRect class and i need to acces to certains variables.
    Unfortunately, m_Dragging, m_Scrolling are private.

    Of course I can override all the methods and recreate the same variables on my side. To do that, i will implements all the methods (which i don't use outside of this case).

    I wanted to know if it will be possible to get access to the read property of these variables ? Like that, i'm certain i will have the right behaviour.