C# Class LoopScrollViewManager, LoopScorllViewForNGUI

Inheritance: MonoBehaviour
Show 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 property

public bool isInLoop
return bool

isVertical public property

public bool isVertical
return bool

itemDatas public property

public List itemDatas
return List

mChildrenStatus public property

public Dictionary mChildrenStatus
return bool>.Dictionary

mGrid public property

public UIGrid, mGrid
return UIGrid,

mScrollView public property

public UIScrollView, mScrollView
return UIScrollView,

prefab public property

public GameObject prefab
return GameObject