上传YomovSDK
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
|
||||
using UnityEngine.XR.OpenXR.Features.RuntimeDebugger;
|
||||
|
||||
namespace UnityEditor.XR.OpenXR.Features.RuntimeDebugger
|
||||
{
|
||||
[CustomEditor(typeof(RuntimeDebuggerOpenXRFeature))]
|
||||
internal class RuntimeDebuggerOpenXRFeatureEditor : Editor
|
||||
{
|
||||
private SerializedProperty cacheSize;
|
||||
private SerializedProperty perThreadCacheSize;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
cacheSize = serializedObject.FindProperty("cacheSize");
|
||||
perThreadCacheSize = serializedObject.FindProperty("perThreadCacheSize");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
EditorGUILayout.PropertyField(cacheSize);
|
||||
EditorGUILayout.PropertyField(perThreadCacheSize);
|
||||
|
||||
if (GUILayout.Button("Open Debugger Window"))
|
||||
{
|
||||
RuntimeDebuggerWindow.Init();
|
||||
}
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user