Click or drag to resize

GoWrappersetWrapTarget Method

设置包装对象。注意如果原来有包装对象,设置新的包装对象后,原来的包装对象只会被删除引用,但不会被销毁。

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void setWrapTarget(
	GameObject target,
	bool cloneMaterial
)

Parameters

target
Type: GameObject
cloneMaterial
Type: SystemBoolean
如果true,则复制材质,否则直接使用sharedMaterial。
See Also