ScrollRect

More information can be found in the Unity API Reference

Members

Member

Description

content

decelerationRate

elasticity

flexibleHeight

flexibleWidth

gameObject

horizontal

horizontalNormalizedPosition

horizontalScrollbarSpacing

inertia

layoutPriority

minHeight

minWidth

normalizedPosition

preferredHeight

preferredWidth

scrollSensitivity

transform

velocity

vertical

verticalNormalizedPosition

verticalScrollbarSpacing

viewport

Events

Event

Description

onPointerClick

onPointerDown

onPointerEnter

onPointerExit

onPointerUp

Methods

Method

Description

CalculateLayoutInputHorizontal()

CalculateLayoutInputVertical()

GraphicUpdateComplete()

IsActive()

IsDestroyed()

LayoutComplete()

SetLayoutHorizontal()

SetLayoutVertical()

StopMovement()

ToString()

Details

class ScrollRect
RectTransform content
float decelerationRate
float elasticity
const float flexibleHeight
const float flexibleWidth
const GameObject gameObject
bool horizontal
float horizontalNormalizedPosition
float horizontalScrollbarSpacing
bool inertia
const int layoutPriority
const float minHeight
const float minWidth
Vector2 normalizedPosition
const float preferredHeight
const float preferredWidth
float scrollSensitivity
const Transform transform
Vector2 velocity
bool vertical
float verticalNormalizedPosition
float verticalScrollbarSpacing
RectTransform viewport
const ScriptEvent onPointerClick

Callback Signature:

void callback()
const ScriptEvent onPointerDown

Callback Signature:

void callback()
const ScriptEvent onPointerEnter

Callback Signature:

void callback()
const ScriptEvent onPointerExit

Callback Signature:

void callback()
const ScriptEvent onPointerUp

Callback Signature:

void callback()
void CalculateLayoutInputHorizontal()
void CalculateLayoutInputVertical()
void GraphicUpdateComplete()
bool IsActive()
bool IsDestroyed()
void LayoutComplete()
void SetLayoutHorizontal()
void SetLayoutVertical()
void StopMovement()
string ToString()