C# Class FairyGUI.GoWrapper

GoWrapper is class for wrapping common gameobject into UI display list.
Inheritance: DisplayObject
显示文件 Open project: fairygui/FairyGUI-unity Class Usage Examples

Protected Properties

Property Type Description
_renders UnityEngine.Renderer[]
_wrapTarget UnityEngine.GameObject

Public Methods

Method 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 method

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
return void

Dispose() public method

public Dispose ( ) : void
return void

GoWrapper() public method

public GoWrapper ( ) : FairyGUI.Utils
return FairyGUI.Utils

GoWrapper() public method

public GoWrapper ( GameObject go ) : FairyGUI.Utils
go UnityEngine.GameObject
return FairyGUI.Utils

Property Details

_renders protected_oe property

protected Renderer[],UnityEngine _renders
return UnityEngine.Renderer[]

_wrapTarget protected_oe property

protected GameObject,UnityEngine _wrapTarget
return UnityEngine.GameObject