You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored Controller visualization code, Oculus Touch uses their own standalone visualizer (#9589)
* Refactored some of the confusing controller visualization code, Oculus XRSDK Touch controllers no longer rely on MRTK for controller visualization, since they have their own standalone visualization
* added failsafe in case Oculus Integration package is not imported
* fixed bug where Oculus project config settings would get reset inexplicably
* Update Assets/MRTK/Providers/Oculus/XRSDK/Controllers/OculusXRSDKTouchController.cs
Co-authored-by: Kurtis <[email protected]>
* Update Assets/MRTK/Core/Providers/BaseController.cs
Co-authored-by: Kurtis <[email protected]>
* Update Assets/MRTK/Providers/Oculus/XRSDK/Controllers/OculusXRSDKTouchController.cs
Co-authored-by: Kurtis <[email protected]>
* addressing PR comments
* fixed obsolete reference
* added oculusintegration_present flags
* Update Assets/MRTK/Providers/Oculus/XRSDK/OculusXRSDKDeviceManager.cs
Co-authored-by: Kurtis <[email protected]>
* fixed double negative typo
* cached controller settings
Co-authored-by: Kurtis <[email protected]>
/// Gets the UseDefaultModels value defined for the specified controller definition.
196
-
/// If the requested controller type is not defined, the default UseDefaultModels is returned.
193
+
/// Gets the UsePlatformModels value defined for the specified controller definition.
194
+
/// If the requested controller type is not defined, the default UsePlatformModels is returned.
197
195
/// </summary>
198
196
/// <param name="controllerType">The type of controller to query for</param>
199
197
/// <param name="hand">The specific hand assigned to the controller</param>
198
+
/// <remarks>
199
+
/// GetUseDefaultModelsOverride is obsolete and will be removed in a future Mixed Reality Toolkit release. Please use GetUsePlatformModelsOverride.
200
+
/// </remarks>
201
+
[Obsolete("GetUseDefaultModelsOverride is obsolete and will be removed in a future Mixed Reality Toolkit release. Please use GetUsePlatformModelsOverride.")]
/// Gets the DefaultModelMaterial value defined for the specified controller definition.
215
-
/// If the requested controller type is not defined, the global DefaultControllerModelMaterial is returned.
221
+
/// If the requested controller type is not defined, the global platformModelMaterial is returned.
216
222
/// </summary>
217
223
/// <param name="controllerType">The type of controller to query for</param>
218
224
/// <param name="hand">The specific hand assigned to the controller</param>
225
+
/// <remarks>
226
+
/// GetDefaultControllerModelMaterialOverride is obsolete and will be removed in a future Mixed Reality Toolkit release. Please use GetPlatformModelMaterialOverride.
227
+
/// </remarks>
228
+
[Obsolete("GetDefaultControllerModelMaterialOverride is obsolete and will be removed in a future Mixed Reality Toolkit release. Please use GetPlatformModelMaterial.")]
EditorGUILayout.HelpBox("When default models are used, an attempt is made to obtain controller models from the platform SDK. The global left and right models are only shown if no model can be obtained.",MessageType.Warning);
105
+
EditorGUILayout.HelpBox("When platform models are used, an attempt is made to obtain controller models from the platform SDK. The global left and right models are only shown if no model can be obtained.",MessageType.Warning);
EditorGUILayout.HelpBox("Oculus Touch controller model visualization is not managed by MRTK, refer to the Oculus XRSDK Device Manager to configure controller visualization settings",MessageType.Error);
EditorGUILayout.HelpBox("When default model is used, the override model will only be used if the default model cannot be loaded from the driver.",MessageType.Warning);
242
+
EditorGUILayout.HelpBox("When platform model is used, the override model will only be used if the default model cannot be loaded from the driver.",MessageType.Warning);
237
243
}
238
244
239
245
EditorGUI.BeginChangeCheck();
240
246
overrideModelPrefab=EditorGUILayout.ObjectField(newGUIContent(overrideModel.displayName,"If no override model is set, the global model is used."),overrideModelPrefab,typeof(GameObject),false)asGameObject;
EditorGUILayout.HelpBox("No override model was assigned and this controller will not attempt to use the platform's model, the global model will be used instead",MessageType.Warning);
0 commit comments