C# Class LoopScrollViewManager, LoopScorllViewForNGUI

Inheritance: MonoBehaviour
Mostra file Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Public Properties

Property Type Description
isInLoop bool
isVertical bool
itemDatas List
mChildrenStatus bool>.Dictionary
mGrid UIGrid,
mScrollView UIScrollView,
prefab GameObject

Public Methods

Method Description
Awake ( ) : void
LateUpdate ( ) : void
RefreshLoopScrollView ( ) : void

Private Methods

Method Description
AddChildToTarget ( Transform target, Transform child ) : void

添加子节点 Add new child to target.

ChangeChildLayer ( Transform t, int layer ) : void

修改子节点Layer NGUITools.SetLayer();

ChangeItemLocation ( Transform targetTrs, bool isToEnd ) : void
CheckMinLoopItemCount ( ) : void
GetFreeItem ( ) : GameObject
InitLoopScrollView ( ) : void
InitScrollView ( ) : void
MoveBackToGrid ( Transform trsTarget ) : void
MoveItemToCacheParent ( Transform trsTarget ) : void
OnChangeItemVisable ( Transform trs ) : bool
ResetScrollView ( ) : void
SortByCurrentDataIndex ( LoopBaseItem, left, LoopBaseItem, right ) : int
TryChangeItem ( Transform trs, bool isToEnd ) : bool
UpdateItemData ( bool isToEnd, Transform targetTrs ) : void
UpdateItemVisable ( bool isFirstTime ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

RefreshLoopScrollView() public method

public RefreshLoopScrollView ( ) : void
return void

Property Details

isInLoop public_oe property

public bool isInLoop
return bool

isVertical public_oe property

public bool isVertical
return bool

itemDatas public_oe property

public List itemDatas
return List

mChildrenStatus public_oe property

public Dictionary mChildrenStatus
return bool>.Dictionary

mGrid public_oe property

public UIGrid, mGrid
return UIGrid,

mScrollView public_oe property

public UIScrollView, mScrollView
return UIScrollView,

prefab public_oe property

public GameObject prefab
return GameObject