Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIScrollView Class Reference
Inheritance diagram for UIScrollView:

Public Member Functions

void Refresh ()
 
override void OnBeginDrag (PointerEventData eventData)
 
override void OnDrag (PointerEventData eventData)
 
override void OnEndDrag (PointerEventData eventData)
 

Public Attributes

UIItem header
 
bool enableHeader
 
bool disableDrag
 
float sensitivityMulti = 1f
 

Static Public Attributes

static float sensitivity
 

Protected Member Functions

override void Awake ()
 
override void LateUpdate ()
 

Private Attributes

float lastSens
 

Detailed Description

Definition at line 5 of file UIScrollView.cs.

Member Function Documentation

◆ Awake()

override void UIScrollView.Awake ( )
inlineprotected

Definition at line 19 of file UIScrollView.cs.

20 {
21 base.Awake();
22 base.inertia = true;
23 base.decelerationRate = 0.02f;
24 Window componentInParent = GetComponentInParent<Window>();
25 if ((bool)componentInParent && (bool)componentInParent.rectStats && componentInParent.rectStats.gameObject.activeSelf)
26 {
27 RectTransform rectTransform = base.verticalScrollbar.Rect();
28 rectTransform.sizeDelta = new Vector2(rectTransform.sizeDelta.x, rectTransform.sizeDelta.y + componentInParent.rectStats.GetComponent<LayoutElement>().minHeight);
29 }
30 }
Definition: Window.cs:13
RectTransform rectStats
Definition: Window.cs:648

References Window.rectStats.

◆ LateUpdate()

override void UIScrollView.LateUpdate ( )
inlineprotected

Definition at line 32 of file UIScrollView.cs.

33 {
34 base.LateUpdate();
35 if (base.scrollSensitivity != sensitivity * sensitivityMulti)
36 {
37 base.scrollSensitivity = sensitivity * sensitivityMulti;
38 }
39 }
float sensitivityMulti
Definition: UIScrollView.cs:15
static float sensitivity
Definition: UIScrollView.cs:7

References sensitivity, and sensitivityMulti.

◆ OnBeginDrag()

override void UIScrollView.OnBeginDrag ( PointerEventData  eventData)
inline

Definition at line 51 of file UIScrollView.cs.

52 {
53 if (!disableDrag)
54 {
55 base.OnBeginDrag(eventData);
56 }
57 }
bool disableDrag
Definition: UIScrollView.cs:13

References disableDrag.

◆ OnDrag()

override void UIScrollView.OnDrag ( PointerEventData  eventData)
inline

Definition at line 59 of file UIScrollView.cs.

60 {
61 if (!disableDrag)
62 {
63 base.OnDrag(eventData);
64 }
65 }

References disableDrag.

◆ OnEndDrag()

override void UIScrollView.OnEndDrag ( PointerEventData  eventData)
inline

Definition at line 67 of file UIScrollView.cs.

68 {
69 if (!disableDrag)
70 {
71 base.OnEndDrag(eventData);
72 }
73 }

References disableDrag.

◆ Refresh()

void UIScrollView.Refresh ( )
inline

Definition at line 41 of file UIScrollView.cs.

42 {
43 UpdateBounds();
44 base.CalculateLayoutInputHorizontal();
45 base.CalculateLayoutInputVertical();
46 OnRectTransformDimensionsChange();
47 base.SetLayoutVertical();
48 base.LateUpdate();
49 }

Member Data Documentation

◆ disableDrag

bool UIScrollView.disableDrag

Definition at line 13 of file UIScrollView.cs.

Referenced by OnBeginDrag(), OnDrag(), and OnEndDrag().

◆ enableHeader

bool UIScrollView.enableHeader

Definition at line 11 of file UIScrollView.cs.

◆ header

UIItem UIScrollView.header

Definition at line 9 of file UIScrollView.cs.

◆ lastSens

float UIScrollView.lastSens
private

Definition at line 17 of file UIScrollView.cs.

◆ sensitivity

float UIScrollView.sensitivity
static

Definition at line 7 of file UIScrollView.cs.

Referenced by LateUpdate(), and UIDropdown.OnEnable().

◆ sensitivityMulti

float UIScrollView.sensitivityMulti = 1f

Definition at line 15 of file UIScrollView.cs.

Referenced by LateUpdate().


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