Skip to content

Commit

Permalink
Refactor XRI classes in core
Browse files Browse the repository at this point in the history
  • Loading branch information
bnco-dev committed Mar 27, 2024
1 parent 7a56afb commit 3488f9e
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Ubiq.Editor.XRI
{
public static class XRIImportHelper
public static class ImportHelperXRI
{
public static void Import()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Ubiq.Avatars;
#if XRI_2_5_2_OR_NEWER
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Inputs;
#endif

namespace Ubiq.XRI
{
public class XRIAvatarHintProvider : AvatarHintProvider
public class AvatarHintProviderXRI : AvatarHintProvider
{
[Tooltip("The AvatarManager to provide hints for. If null, will try to find an AvatarManager in the scene at start.")]
[SerializeField] private AvatarManager avatarManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if XRI_2_5_2_OR_NEWER
using UnityEngine.XR.Interaction.Toolkit;
Expand All @@ -8,7 +6,7 @@

namespace Ubiq.XRI
{
public class XRIMenuAdapter : MonoBehaviour
public class MenuAdapterXRI : MonoBehaviour
{
#if XRI_2_5_2_OR_NEWER
private void Start()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static AddPackageXRI()

static void Update()
{
XRIImportHelper.Import();
ImportHelperXRI.Import();
EditorApplication.update -= Update;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void Update()
#if WEBXRINTERACTIONS_0_22_0_OR_NEWER
PackageManagerHelper.RequireSample("com.de-panther.webxr-interactions","XR Interaction Toolkit Sample");
#endif
XRIImportHelper.Import();
ImportHelperXRI.Import();

EditorApplication.update -= Update;
}
Expand Down

0 comments on commit 3488f9e

Please sign in to comment.