Enables a scrollbar only if the content is larger than the scroll rect. More...
Public Member Functions | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | CheckScrollbar () |
virtual void | CheckScrollbarWithResetValue (float value) |
Public Attributes | |
UnityEngine.UI.ScrollRect | scrollRect = null |
RectTransform | scrollContent = null |
UnityEngine.UI.Scrollbar | scrollbar = null |
bool | smoothScroll = false |
float | smoothScrollSpeed = 5 |
Protected Member Functions | |
virtual void | Start () |
virtual IEnumerator | CheckScrollbarAfterUIUpdate (bool useResetValue, float resetValue) |
Protected Attributes | |
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.
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
protected |
|
protected |
|
protected |
UnityEngine.UI.Scrollbar PixelCrushers.UIScrollbarEnabler.scrollbar = null |
RectTransform PixelCrushers.UIScrollbarEnabler.scrollContent = null |
UnityEngine.UI.ScrollRect PixelCrushers.UIScrollbarEnabler.scrollRect = null |
bool PixelCrushers.UIScrollbarEnabler.smoothScroll = false |
float PixelCrushers.UIScrollbarEnabler.smoothScrollSpeed = 5 |