C# Class FairyGUI.GObjectPool

GObjectPool is use for GObject pooling.
Mostra file Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
initCallback InitCallbackDelegate

Public Methods

Method Description
Clear ( ) : void

Dispose all objects in the pool.

GObjectPool ( Transform manager ) : System.Collections.Generic

需要设置一个manager,加入池里的对象都成为这个manager的孩子

GetObject ( string url ) : GObject

ReturnObject ( GObject obj ) : void

Method Details

Clear() public method

Dispose all objects in the pool.
public Clear ( ) : void
return void

GObjectPool() public method

需要设置一个manager,加入池里的对象都成为这个manager的孩子
public GObjectPool ( Transform manager ) : System.Collections.Generic
manager UnityEngine.Transform
return System.Collections.Generic

GetObject() public method

public GetObject ( string url ) : GObject
url string
return GObject

ReturnObject() public method

public ReturnObject ( GObject obj ) : void
obj GObject
return void

Property Details

initCallback public_oe property

Callback function when a new object is creating.
public InitCallbackDelegate initCallback
return InitCallbackDelegate