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