Unity 6.3
0 онлайн 9 гостей 3 в системе
Вход

TransformHandle.root

Declaration

public TransformHandle root;

Описание

Возвращает самое высокое преобразование в иерархии.

(Это никогда не возвращает TransformHandle.None, если у этого TransformHandle нет родителя, оно возвращает само себя.)

using UnityEngine;

public class Example : MonoBehaviour { public GameObject Other;

// Dos this have the same root as other transform? void Start() { if (Other.transformHandle.root != transformHandle.root) { print("The objects are not in the same hierarchy"); } } }