Method | Description | |
---|---|---|
AddChild ( GameObject gameObject, GameObject childGameObject ) : void | ||
AddChild ( GameObject gameObject, GameObject childGameObject, bool worldPositionStays ) : void | ||
AddChild ( GameObject gameObject, Transform childTransform ) : void | ||
AddChild ( GameObject gameObject, Transform childTransform, bool worldPositionStays ) : void | ||
DestroyChildren ( GameObject gameObject ) : void | ||
SetLayerRecursively ( GameObject gameObject, int layer ) : void |
Set the layer for game object and all its childs recursively.
|
|
SetTagRecursively ( GameObject gameObject, string tag ) : void |
Set the tag for game object and all its childs recursively.
|
public static AddChild ( GameObject gameObject, GameObject childGameObject ) : void | ||
gameObject | GameObject | |
childGameObject | GameObject | |
return | void |
public static AddChild ( GameObject gameObject, GameObject childGameObject, bool worldPositionStays ) : void | ||
gameObject | GameObject | |
childGameObject | GameObject | |
worldPositionStays | bool | |
return | void |
public static AddChild ( GameObject gameObject, Transform childTransform ) : void | ||
gameObject | GameObject | |
childTransform | Transform | |
return | void |
public static AddChild ( GameObject gameObject, Transform childTransform, bool worldPositionStays ) : void | ||
gameObject | GameObject | |
childTransform | Transform | |
worldPositionStays | bool | |
return | void |
public static DestroyChildren ( GameObject gameObject ) : void | ||
gameObject | GameObject | |
return | void |
public static SetLayerRecursively ( GameObject gameObject, int layer ) : void | ||
gameObject | GameObject | |
layer | int | The layer for game objects. |
return | void |
public static SetTagRecursively ( GameObject gameObject, string tag ) : void | ||
gameObject | GameObject | |
tag | string | The tag for game objects. |
return | void |