private void Start()
 {
     spatialUnderstanding = SpatialUnderstanding.Instance;
     if (gameObject.GetComponent <WorldAnchor>() == null)
     {
         gameObject.AddComponent <WorldAnchor>();
     }
 }
Example #2
0
        private void Start()
        {
            spatialUnderstanding = SpatialUnderstanding.Instance;
#if UNITY_EDITOR || UNITY_WSA
            if (gameObject.GetComponent <WorldAnchor>() == null)
            {
                gameObject.AddComponent <WorldAnchor>();
            }
#endif
        }
Example #3
0
 // Use this for initialization
 void Start()
 {
     su = GameObject.Find("SpatialUnderstanding").GetComponent <HoloToolkit.Unity.SpatialUnderstanding>();
 }
 private void Start()
 {
     spatialUnderstanding = SpatialUnderstanding.Instance;
 }