/// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 private void Awake()
 {
     this.WorldAnchor = AnchorHelpers.CreateWorldAnchor(this.gameObject.transform);
 }
Exemple #2
0
 /// <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);
 }