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