PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler Class Reference

Enables a scrollbar only if the content is larger than the container. More...

Inheritance diagram for PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler:
Collaboration diagram for PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler:

Public Member Functions

void OnEnable ()
 
void OnDisable ()
 
void CheckScrollbar ()
 

Public Attributes

RectTransform container = null
 
RectTransform content = null
 
GameObject scrollbar = null
 

Detailed Description

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.

Member Function Documentation

◆ CheckScrollbar()

void PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.CheckScrollbar ( )

◆ OnDisable()

void PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.OnDisable ( )

◆ OnEnable()

void PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.OnEnable ( )

Member Data Documentation

◆ container

RectTransform PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.container = null

◆ content

RectTransform PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.content = null

◆ scrollbar

GameObject PixelCrushers.DialogueSystem.UnityUIScrollbarEnabler.scrollbar = null

The documentation for this class was generated from the following file: