Enables a scrollbar only if the content is larger than the container. More...
Additional Inherited Members | |
![]() | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | CheckScrollbar () |
virtual void | CheckScrollbarWithResetValue (float value) |
![]() | |
UnityEngine.UI.ScrollRect | scrollRect = null |
RectTransform | scrollContent = null |
UnityEngine.UI.Scrollbar | scrollbar = null |
bool | smoothScroll = false |
float | smoothScrollSpeed = 5 |
![]() | |
virtual void | Start () |
virtual IEnumerator | CheckScrollbarAfterUIUpdate (bool useResetValue, float resetValue) |
![]() | |
bool | m_started = false |
bool | m_checking = false |
RectTransform | m_scrollRectTransform = null |
Enables a scrollbar only if the content is larger than the container.
This component only shows or hides the scrollbar when the component is enabled or when it receives the OnContentChanged event. Now just points to the Common Library version.
Normally this would be marked deprecated, but since it's used in so many customer dialogue UIs it's kinder to just let it point to the Common Library version.