C# Класс UnityForge.GameObjectExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddChild() публичный статический Метод

public static AddChild ( GameObject gameObject, GameObject childGameObject ) : void
gameObject GameObject
childGameObject GameObject
Результат void

AddChild() публичный статический Метод

public static AddChild ( GameObject gameObject, GameObject childGameObject, bool worldPositionStays ) : void
gameObject GameObject
childGameObject GameObject
worldPositionStays bool
Результат void

AddChild() публичный статический Метод

public static AddChild ( GameObject gameObject, Transform childTransform ) : void
gameObject GameObject
childTransform Transform
Результат void

AddChild() публичный статический Метод

public static AddChild ( GameObject gameObject, Transform childTransform, bool worldPositionStays ) : void
gameObject GameObject
childTransform Transform
worldPositionStays bool
Результат void

DestroyChildren() публичный статический Метод

public static DestroyChildren ( GameObject gameObject ) : void
gameObject GameObject
Результат void

SetLayerRecursively() публичный статический Метод

Set the layer for game object and all its childs recursively.
public static SetLayerRecursively ( GameObject gameObject, int layer ) : void
gameObject GameObject
layer int The layer for game objects.
Результат void

SetTagRecursively() публичный статический Метод

Set the tag for game object and all its childs recursively.
public static SetTagRecursively ( GameObject gameObject, string tag ) : void
gameObject GameObject
tag string The tag for game objects.
Результат void