C# Class LoopScrollView, UGUIPlugin

Inheritance: MonoBehaviour
Mostrar archivo Open project: l980305284/UGUIPlugin Class Usage Examples

Public Properties

Property Type Description
OnDataChange OnBaseNodeEvent
OnItemClick OnBaseNodeEvent
OnItemPress OnBaseNodeEvent
m_cellRect Vector2
m_currentIndex int
needItemEvent bool

Public Methods

Method Description
Awake ( ) : void
MoveToIndex ( int index ) : void
SetData ( object data ) : void
Update ( ) : void

Private Methods

Method Description
CreateItem ( int index ) : void
GetPosByIndex ( int index ) : Vector2
GetRectByNum ( int num ) : Vector2
MoveItemToIndex ( int index, RectTransform item ) : void
RemoveItem ( int index ) : void
SetBound ( Vector2 bound ) : void
UpdateItem ( int index, GameObject item ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

MoveToIndex() public method

public MoveToIndex ( int index ) : void
index int
return void

SetData() public method

public SetData ( object data ) : void
data object
return void

Update() public method

public Update ( ) : void
return void

Property Details

OnDataChange public_oe property

public OnBaseNodeEvent OnDataChange
return OnBaseNodeEvent

OnItemClick public_oe property

public OnBaseNodeEvent OnItemClick
return OnBaseNodeEvent

OnItemPress public_oe property

public OnBaseNodeEvent OnItemPress
return OnBaseNodeEvent

m_cellRect public_oe property

public Vector2 m_cellRect
return Vector2

m_currentIndex public_oe property

public int m_currentIndex
return int

needItemEvent public_oe property

public bool needItemEvent
return bool