| [ Web Proxy ] |
| Viewing: https://docs.unity3d.com/ScriptReference/TransformHandle-root.html | [Back] [Original] |
Returns the topmost transform in the hierarchy.
(This never returns TransformHandle.None, if this TransformHandle doesn't have a parent it returns itself.)
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"); } } }
| Web Proxy Viewer | New URL | Original Page |