C# Class FairyGUI.GObjectPool

GObjectPool is use for GObject pooling.
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
initCallback InitCallbackDelegate

Méthodes publiques

Méthode 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 méthode

Dispose all objects in the pool.
public Clear ( ) : void
Résultat void

GObjectPool() public méthode

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

GetObject() public méthode

public GetObject ( string url ) : GObject
url string
Résultat GObject

ReturnObject() public méthode

public ReturnObject ( GObject obj ) : void
obj GObject
Résultat void

Property Details

initCallback public_oe property

Callback function when a new object is creating.
public InitCallbackDelegate initCallback
Résultat InitCallbackDelegate