Tanoda
UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo Struct Reference

Public Types

enum  IndexType { childIndex , positionIndex }
 

Public Member Functions

 MoveInfo (IndexType _indexType, int _index)
 Creates a MoveInfo that jumps to the index More...
 
 MoveInfo (IndexType _indexType, int _index, bool _jump, float _duration)
 Creates a MoveInfo More...
 

Public Attributes

IndexType indexType
 
int index
 
bool jump
 
float duration
 

Detailed Description

Definition at line 564 of file ContentScrollSnapHorizontal.cs.

Member Enumeration Documentation

◆ IndexType

Enumerator
childIndex 
positionIndex 

Definition at line 566 of file ContentScrollSnapHorizontal.cs.

Constructor & Destructor Documentation

◆ MoveInfo() [1/2]

UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.MoveInfo ( IndexType  _indexType,
int  _index 
)

Creates a MoveInfo that jumps to the index

Parameters
_indexTypeWhether you want to get the child at the index or the snap position at the index
_indexWhere you want it to jump

Definition at line 583 of file ContentScrollSnapHorizontal.cs.

◆ MoveInfo() [2/2]

UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.MoveInfo ( IndexType  _indexType,
int  _index,
bool  _jump,
float  _duration 
)

Creates a MoveInfo

Parameters
_indexTypeWhether you want to get the child at the index or the snap position at the index
_indexWhere you want it to jump
_jumpWhether you want it to jump or lerp to the index
_durationHow long it takes to lerp to the index

Definition at line 598 of file ContentScrollSnapHorizontal.cs.

Member Data Documentation

◆ duration

float UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.duration

Definition at line 576 of file ContentScrollSnapHorizontal.cs.

◆ index

int UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.index

Definition at line 572 of file ContentScrollSnapHorizontal.cs.

◆ indexType

IndexType UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.indexType

Definition at line 570 of file ContentScrollSnapHorizontal.cs.

◆ jump

bool UnityEngine.UI.Extensions.ContentScrollSnapHorizontal.MoveInfo.jump

Definition at line 574 of file ContentScrollSnapHorizontal.cs.


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