Enables a scrollbar only if the content is larger than the scroll rect. More...
Additional Inherited Members | |
Public Member Functions inherited from PixelCrushers.UIScrollbarEnabler | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | CheckScrollbar () |
virtual void | CheckScrollbarWithResetValue (float value) |
Public Attributes inherited from PixelCrushers.UIScrollbarEnabler | |
UnityEngine.UI.ScrollRect | scrollRect = null |
RectTransform | scrollContent = null |
UnityEngine.UI.Scrollbar | scrollbar = null |
bool | smoothScroll = false |
float | smoothScrollSpeed = 5 |
Protected Member Functions inherited from PixelCrushers.UIScrollbarEnabler | |
virtual void | Start () |
virtual IEnumerator | CheckScrollbarAfterUIUpdate (bool useResetValue, float resetValue) |
Protected Attributes inherited from PixelCrushers.UIScrollbarEnabler | |
bool | m_started = false |
bool | m_checking = false |
RectTransform | m_scrollRectTransform = null |
Enables a scrollbar only if the content is larger than the scroll rect.
This component only only shows or hides the scrollbar when the component is enabled or when CheckScrollbar is invoked.