Skip to content

Commit

Permalink
Cleanup visuals components
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Sep 29, 2024
1 parent 9aa846a commit 5038bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
9 changes: 0 additions & 9 deletions Runtime/Components/HPUIInteractorLRVisual.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Interactors;
using UnityEngine.XR.Interaction.Toolkit.Interactables;
using UnityEngine.XR.Interaction.Toolkit.Utilities;
using UnityEngine.XR.Hands;
using Unity.XR.CoreUtils;
using UnityEngine.Pool;
using ubco.ovilab.HPUI.Interaction;

namespace ubco.ovilab.HPUI.Components
Expand Down
11 changes: 2 additions & 9 deletions Runtime/Components/HPUIInteractorTransformVisual.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Interactors;
using UnityEngine.XR.Interaction.Toolkit.Interactables;
using UnityEngine.XR.Interaction.Toolkit.Utilities;
using UnityEngine.XR.Hands;
using Unity.XR.CoreUtils;
using UnityEngine.Pool;
using ubco.ovilab.HPUI.Interaction;

namespace ubco.ovilab.HPUI.Components
Expand All @@ -35,6 +26,7 @@ private void OnEnable()
hpuiInteractor.hoverEntered.AddListener(OnHoverEntered);
hpuiInteractor.hoverExited.AddListener(OnHoverExited);
}
visualTransform?.gameObject.SetActive(true);
}

/// <inheritdoc />
Expand All @@ -46,6 +38,7 @@ private void OnDisable()
hpuiInteractor.hoverEntered.RemoveListener(OnHoverEntered);
hpuiInteractor.hoverExited.RemoveListener(OnHoverExited);
}
visualTransform?.gameObject.SetActive(false);
}

/// <summary>
Expand Down

0 comments on commit 5038bed

Please sign in to comment.