diff --git a/Editor/DevToolsPackageModulesInstaller.cs b/Editor/DevToolsPackageModulesInstaller.cs index 16fe952..b16fedb 100644 --- a/Editor/DevToolsPackageModulesInstaller.cs +++ b/Editor/DevToolsPackageModulesInstaller.cs @@ -55,7 +55,7 @@ public bool Install(ServiceConfiguration serviceConfiguration) return false; } - if (!ServiceManager.Instance.TryGetServiceProfile(out var cameraServiceProfile)) + if (!ServiceManager.Instance.TryGetServiceProfile(out var PlayerServiceProfile)) { UnityEngine.Debug.LogWarning($"Could not install {serviceConfiguration.InstancedType.Type.Name}.{nameof(DiagnosticsServiceProfile)} not found."); return false; @@ -65,14 +65,14 @@ public bool Install(ServiceConfiguration serviceConfiguration) var typedServiceConfiguration = new ServiceConfiguration(serviceConfiguration.InstancedType.Type, serviceConfiguration.Name, serviceConfiguration.Priority, serviceConfiguration.RuntimePlatforms, serviceConfiguration.Profile); // Make sure it's not already in the target profile. - if (cameraServiceProfile.ServiceConfigurations.All(sc => sc.InstancedType.Type != serviceConfiguration.InstancedType.Type)) + if (PlayerServiceProfile.ServiceConfigurations.All(sc => sc.InstancedType.Type != serviceConfiguration.InstancedType.Type)) { - cameraServiceProfile.AddConfiguration(typedServiceConfiguration); - UnityEngine.Debug.Log($"Successfully installed the {serviceConfiguration.InstancedType.Type.Name} to {cameraServiceProfile.name}."); + PlayerServiceProfile.AddConfiguration(typedServiceConfiguration); + UnityEngine.Debug.Log($"Successfully installed the {serviceConfiguration.InstancedType.Type.Name} to {PlayerServiceProfile.name}."); } else { - UnityEngine.Debug.Log($"Skipped installing the {serviceConfiguration.InstancedType.Type.Name} to {cameraServiceProfile.name}. Already installed."); + UnityEngine.Debug.Log($"Skipped installing the {serviceConfiguration.InstancedType.Type.Name} to {PlayerServiceProfile.name}. Already installed."); } return true; diff --git a/Runtime/DiagnosticsService.cs b/Runtime/DiagnosticsService.cs index 0d46706..38c6cda 100644 --- a/Runtime/DiagnosticsService.cs +++ b/Runtime/DiagnosticsService.cs @@ -6,7 +6,7 @@ using RealityCollective.ServiceFramework.Attributes; using RealityCollective.ServiceFramework.Definitions.Platforms; using RealityCollective.ServiceFramework.Services; -using RealityToolkit.CameraService.Interfaces; +using RealityToolkit.PlayerService.Interfaces; using RealityToolkit.DevTools.ConsoleDiagnostics; using RealityToolkit.DevTools.FrameDiagnostics; using RealityToolkit.DevTools.MemoryDiagnostics; @@ -47,8 +47,8 @@ private Transform RigTransform { if (rigTransform == null) { - rigTransform = ServiceManager.Instance.TryGetService(out var cameraSystem) - ? cameraSystem.CameraRig.RigTransform + rigTransform = ServiceManager.Instance.TryGetService(out var playerService) + ? playerService.PlayerRig.RigTransform : Camera.main.transform.parent; } return rigTransform; diff --git a/package.json b/package.json index 3dd8412..14aa234 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "XR", "Mixed Reality" ], - "version": "1.0.0-pre.3", + "version": "1.0.0-pre.4", "unity": "2020.3", "homepage": "https://github.com/realitycollective", "bugs": {