static bool ConsoleErrorDoubleClicked(int instanceId, int line) { var objName = EditorUtility.InstanceIDToObject(instanceId).name; if (objName == "OpenXRProjectValidation") { OpenXRProjectValidationWindow.ShowWindow(); return(true); } return(false); }
public override void OnInspectorGUI() { var buildTargetGroup = EditorGUILayout.BeginBuildTargetSelectionGrouping(); OpenXRProjectValidationWindow.SetSelectedBuildTargetGroup(buildTargetGroup); OpenXRPackageSettings settings = serializedObject.targetObject as OpenXRPackageSettings; scrollPos = EditorGUILayout.BeginScrollView(scrollPos); EditorGUI.BeginDisabledGroup(EditorApplication.isPlaying); EditorGUILayout.BeginVertical(); var openXrSettings = settings.GetSettingsForBuildTargetGroup(buildTargetGroup); var serializedOpenXrSettings = new SerializedObject(openXrSettings); EditorGUIUtility.labelWidth = 200; DrawPropertiesExcluding(serializedOpenXrSettings, "m_Script"); EditorGUIUtility.labelWidth = 0; if (serializedOpenXrSettings.hasModifiedProperties) { serializedOpenXrSettings.ApplyModifiedProperties(); } if (buildTargetGroup == BuildTargetGroup.Standalone) { EditorGUILayout.Space(); OpenXRRuntimeSelector.DrawSelector(); } EditorGUILayout.EndVertical(); if (m_FeatureEditor != null) { EditorGUILayout.Space(); m_FeatureEditor.OnGUI(buildTargetGroup); } EditorGUI.EndDisabledGroup(); EditorGUILayout.EndBuildTargetSelectionGrouping(); EditorGUILayout.EndScrollView(); }