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"); } } }