WuhuIslandTesting/Library/PackageCache/com.unity.xr.management@4.2.1/Editor/XRManagerEditor.cs
2025-01-07 02:06:59 +01:00

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();
}
}
}