/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> private void Awake() { this.WorldAnchor = AnchorHelpers.CreateWorldAnchor(this.gameObject.transform); }
/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> private void Awake() { this.WorldAnchor = AnchorHelpers.CreateWorldAnchor(this.gameObject.transform); this.gameObject.transform.SetParent(this.WorldAnchor.transform, true); }