private void EnsureSetup() { if (follower == null) { follower = transform; } if (source == null) { source = GetComponent <BaseMixedRealityLineDataProvider>(); } if (source == null) { Debug.LogError($"Missing a Mixed Reality Line Data Provider for Line Follower on {gameObject.name}"); } }
protected virtual void OnDrawGizmos() { if (UnityEditor.Selection.activeGameObject == gameObject || Application.isPlaying) { return; } if (lineDataSource == null) { lineDataSource = gameObject.GetComponent <BaseMixedRealityLineDataProvider>(); } if (lineDataSource == null || !lineDataSource.enabled) { return; } GizmosDrawLineRenderer(); }