C# Class FairyGUI.GoWrapper

GoWrapper is class for wrapping common gameobject into UI display list.
Inheritance: DisplayObject
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Protected Properties

Свойство Type Description
_renders UnityEngine.Renderer[]
_wrapTarget UnityEngine.GameObject

Méthodes publiques

Méthode Description
CacheRenderers ( ) : void

GoWrapper will cache all renderers of your gameobject on constructor. If your gameobject change laterly, call this function to update the cache. GoWrapper会在构造函数里查询你的gameobject所有的Renderer并保存。如果你的gameobject 后续发生了改变,调用这个函数通知GoWrapper重新查询和保存。

Dispose ( ) : void
GoWrapper ( ) : FairyGUI.Utils

GoWrapper ( GameObject go ) : FairyGUI.Utils

Method Details

CacheRenderers() public méthode

GoWrapper will cache all renderers of your gameobject on constructor. If your gameobject change laterly, call this function to update the cache. GoWrapper会在构造函数里查询你的gameobject所有的Renderer并保存。如果你的gameobject 后续发生了改变,调用这个函数通知GoWrapper重新查询和保存。
public CacheRenderers ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GoWrapper() public méthode

public GoWrapper ( ) : FairyGUI.Utils
Résultat FairyGUI.Utils

GoWrapper() public méthode

public GoWrapper ( GameObject go ) : FairyGUI.Utils
go UnityEngine.GameObject
Résultat FairyGUI.Utils

Property Details

_renders protected_oe property

protected Renderer[],UnityEngine _renders
Résultat UnityEngine.Renderer[]

_wrapTarget protected_oe property

protected GameObject,UnityEngine _wrapTarget
Résultat UnityEngine.GameObject