using UnityEngine.XR.Management; namespace UnityEditor.XR.Management { [CustomEditor(typeof(XRManagerSettings))] internal class XRManagerSettingsEditor : Editor { XRLoaderOrderUI m_LoaderUi = new XRLoaderOrderUI(); internal BuildTargetGroup BuildTarget { get; set; } public void Reload() { m_LoaderUi.CurrentBuildTargetGroup = BuildTargetGroup.Unknown; } /// Editor Documentation public override void OnInspectorGUI() { if (serializedObject == null || serializedObject.targetObject == null) return; serializedObject.Update(); m_LoaderUi.OnGUI(BuildTarget); serializedObject.ApplyModifiedProperties(); } } }