Tanoda
UnityEngine.UI.Extensions.UIVerticalScroller Class Reference
Inheritance diagram for UnityEngine.UI.Extensions.UIVerticalScroller:

Classes

class  IntEvent
 

Public Member Functions

 UIVerticalScroller ()
 Constructor when not used as component but called from other script, don't forget to set the non-optional properties. More...
 
 UIVerticalScroller (RectTransform center, RectTransform elementSize, ScrollRect scrollRect, GameObject[] arrayOfElements)
 Constructor when not used as component but called from other script More...
 
void Awake ()
 Awake this instance. More...
 
void updateChildren (int startingIndex=-1, GameObject[] arrayOfElements=null)
 Recognises and resizes the children. More...
 
void Start ()
 
void Update ()
 
void SnapToElement (int element)
 
void ScrollUp ()
 
void ScrollDown ()
 

Public Attributes

ScrollRect scrollRect
 
RectTransform center
 
RectTransform elementSize
 
Vector2 elementShrinkage = new Vector2(1f / 200, 1f / 200)
 
Vector2 minScale = new Vector2(0.7f, 0.7f)
 
int startingIndex = -1
 
bool stopMomentumOnEnd = true
 
bool disableUnfocused = true
 
GameObject scrollUpButton
 
GameObject scrollDownButton
 
IntEvent OnButtonClicked
 
IntEvent OnFocusChanged
 
GameObject[] _arrayOfElements
 

Properties

int focusedElementIndex [get]
 
string result [get]
 
RectTransform scrollingPanel [get]
 

Detailed Description

Definition at line 11 of file UIVerticalScroller.cs.

Constructor & Destructor Documentation

◆ UIVerticalScroller() [1/2]

UnityEngine.UI.Extensions.UIVerticalScroller.UIVerticalScroller ( )

Constructor when not used as component but called from other script, don't forget to set the non-optional properties.

Definition at line 57 of file UIVerticalScroller.cs.

◆ UIVerticalScroller() [2/2]

UnityEngine.UI.Extensions.UIVerticalScroller.UIVerticalScroller ( RectTransform  center,
RectTransform  elementSize,
ScrollRect  scrollRect,
GameObject[]  arrayOfElements 
)

Constructor when not used as component but called from other script

Definition at line 64 of file UIVerticalScroller.cs.

Member Function Documentation

◆ Awake()

void UnityEngine.UI.Extensions.UIVerticalScroller.Awake ( )

Awake this instance.

Definition at line 75 of file UIVerticalScroller.cs.

◆ ScrollDown()

void UnityEngine.UI.Extensions.UIVerticalScroller.ScrollDown ( )

Definition at line 241 of file UIVerticalScroller.cs.

◆ ScrollUp()

void UnityEngine.UI.Extensions.UIVerticalScroller.ScrollUp ( )

Definition at line 234 of file UIVerticalScroller.cs.

◆ SnapToElement()

void UnityEngine.UI.Extensions.UIVerticalScroller.SnapToElement ( int  element)

Definition at line 226 of file UIVerticalScroller.cs.

◆ Start()

void UnityEngine.UI.Extensions.UIVerticalScroller.Start ( )

Definition at line 150 of file UIVerticalScroller.cs.

◆ Update()

void UnityEngine.UI.Extensions.UIVerticalScroller.Update ( )

Definition at line 168 of file UIVerticalScroller.cs.

◆ updateChildren()

void UnityEngine.UI.Extensions.UIVerticalScroller.updateChildren ( int  startingIndex = -1,
GameObject[]  arrayOfElements = null 
)

Recognises and resizes the children.

Parameters
startingIndexStarting index.
arrayOfElementsArray of elements.

Definition at line 104 of file UIVerticalScroller.cs.

Member Data Documentation

◆ _arrayOfElements

GameObject [] UnityEngine.UI.Extensions.UIVerticalScroller._arrayOfElements

Definition at line 38 of file UIVerticalScroller.cs.

◆ center

RectTransform UnityEngine.UI.Extensions.UIVerticalScroller.center

Definition at line 16 of file UIVerticalScroller.cs.

◆ disableUnfocused

bool UnityEngine.UI.Extensions.UIVerticalScroller.disableUnfocused = true

Definition at line 28 of file UIVerticalScroller.cs.

◆ elementShrinkage

Vector2 UnityEngine.UI.Extensions.UIVerticalScroller.elementShrinkage = new Vector2(1f / 200, 1f / 200)

Definition at line 20 of file UIVerticalScroller.cs.

◆ elementSize

RectTransform UnityEngine.UI.Extensions.UIVerticalScroller.elementSize

Definition at line 18 of file UIVerticalScroller.cs.

◆ minScale

Vector2 UnityEngine.UI.Extensions.UIVerticalScroller.minScale = new Vector2(0.7f, 0.7f)

Definition at line 22 of file UIVerticalScroller.cs.

◆ OnButtonClicked

IntEvent UnityEngine.UI.Extensions.UIVerticalScroller.OnButtonClicked

Definition at line 34 of file UIVerticalScroller.cs.

◆ OnFocusChanged

IntEvent UnityEngine.UI.Extensions.UIVerticalScroller.OnFocusChanged

Definition at line 36 of file UIVerticalScroller.cs.

◆ scrollDownButton

GameObject UnityEngine.UI.Extensions.UIVerticalScroller.scrollDownButton

Definition at line 32 of file UIVerticalScroller.cs.

◆ scrollRect

ScrollRect UnityEngine.UI.Extensions.UIVerticalScroller.scrollRect

Definition at line 14 of file UIVerticalScroller.cs.

◆ scrollUpButton

GameObject UnityEngine.UI.Extensions.UIVerticalScroller.scrollUpButton

Definition at line 30 of file UIVerticalScroller.cs.

◆ startingIndex

int UnityEngine.UI.Extensions.UIVerticalScroller.startingIndex = -1

Definition at line 24 of file UIVerticalScroller.cs.

◆ stopMomentumOnEnd

bool UnityEngine.UI.Extensions.UIVerticalScroller.stopMomentumOnEnd = true

Definition at line 26 of file UIVerticalScroller.cs.

Property Documentation

◆ focusedElementIndex

int UnityEngine.UI.Extensions.UIVerticalScroller.focusedElementIndex
get

Definition at line 40 of file UIVerticalScroller.cs.

◆ result

string UnityEngine.UI.Extensions.UIVerticalScroller.result
get

Definition at line 42 of file UIVerticalScroller.cs.

◆ scrollingPanel

RectTransform UnityEngine.UI.Extensions.UIVerticalScroller.scrollingPanel
get

Definition at line 51 of file UIVerticalScroller.cs.


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