35 lines
924 B
C#
35 lines
924 B
C#
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;
|
|
}
|
|
|
|
/// <summary><see href="https://docs.unity3d.com/ScriptReference/Editor.OnInspectorGUI.html">Editor Documentation</see></summary>
|
|
public override void OnInspectorGUI()
|
|
{
|
|
if (serializedObject == null || serializedObject.targetObject == null)
|
|
return;
|
|
|
|
serializedObject.Update();
|
|
|
|
m_LoaderUi.OnGUI(BuildTarget);
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
|
|
}
|