File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Assets/MixedRealityToolkit-SDK/Features/UX/Scripts/Cursors Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,6 @@ public class BaseCursor : InputSystemGlobalListener, IMixedRealityCursor
6565 private Vector3 targetScale ;
6666 private Quaternion targetRotation ;
6767
68- /// <summary>
69- /// Indicates if the cursor should be visible
70- /// </summary>
71- public bool IsVisible
72- {
73- get { return isVisible ; }
74- set
75- {
76- SetVisibility ( isVisible ) ;
77- }
78- }
79-
8068 #region IMixedRealityCursor Implementation
8169
8270 /// <inheritdoc />
@@ -113,11 +101,10 @@ public float DefaultCursorDistance
113101 /// <inheritdoc />
114102 public virtual Vector3 LocalScale => transform . localScale ;
115103
116- /// <inheritdoc />
117104 public virtual void SetVisibility ( bool visible )
118105 {
119106 if ( PrimaryCursorVisual != null &&
120- PrimaryCursorVisual . gameObject . activeInHierarchy )
107+ PrimaryCursorVisual . gameObject . activeInHierarchy != visible )
121108 {
122109 PrimaryCursorVisual . gameObject . SetActive ( visible ) ;
123110 isVisible = visible ;
You can’t perform that action at this time.
0 commit comments