diff --git a/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/AccessoryTrackingHelper.cs b/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/AccessoryTrackingHelper.cs index 798acf6b..8d5022b7 100644 --- a/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/AccessoryTrackingHelper.cs +++ b/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/AccessoryTrackingHelper.cs @@ -11,7 +11,6 @@ namespace Apple.visionOS.AccessoryTracking { using SpatialController; - using Unity.PolySpatial; public class AccessoryTrackingHelper : MonoBehaviour { @@ -50,13 +49,9 @@ public enum LocationOption { origin, aim, grip, gripSurface }; [SerializeField] private LocationOption RightLocation = LocationOption.origin; public TMP_Text RightControllerText; - [Header("Controller Events")] public UnityEvent ControllerConnectedEvent; public UnityEvent ControllerDisconnectedEvent; - - [Header("A Reference To The Volume Camera")] - public GameObject _volumeCamera; /// /// An array of accessories that have been polled @@ -119,27 +114,6 @@ void Awake() worldOriginAxis.transform.position = new Vector3(0, 0, 0); } - /// find the Volume Camera in the scene - _volumeCamera = GameObject.Find("VolumeCamera"); - //confirm the volume camera object we found is not null - if (_volumeCamera != null) - { - //confirm we have the correct object and script - var volumeCameraScript = GetComponent(); - if (volumeCameraScript != null) - { - //find a reference to the volume camera so we can make sure we aren't in bounded - //bounded is not supported at this moment - if (volumeCameraScript.WindowConfiguration.Mode == VolumeCamera.PolySpatialVolumeCameraMode.Bounded) - { - Debug.LogWarning("Apple - Accessory Tracking Plugin does not support Bounded: " + volumeCameraScript.WindowConfiguration.Mode.ToString()); - } - } - else - { - Debug.LogWarning("Apple - Accessory Tracking Plugin unable to determine what mode app is in. Bounded not supported."); - } - } } void OnDisable() diff --git a/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/apple.accessorytracking.asmdef b/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/apple.accessorytracking.asmdef index dcc2582b..1454a4c3 100644 --- a/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/apple.accessorytracking.asmdef +++ b/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/Apple/Scripts/apple.accessorytracking.asmdef @@ -5,7 +5,6 @@ "Apple.Core", "Unity.Mathematics", "Unity.VisualScripting", - "Unity.PolySpatial", "Unity.TextMeshPro" ], "includePlatforms": [