version 2.5.0
This commit is contained in:
24
com.htc.upm.vive.openxr/Editor/ViveAnchorEditor.cs
Normal file
24
com.htc.upm.vive.openxr/Editor/ViveAnchorEditor.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright HTC Corporation All Rights Reserved.
|
||||
using UnityEditor;
|
||||
using VIVE.OpenXR.Feature;
|
||||
|
||||
namespace VIVE.OpenXR.Editor
|
||||
{
|
||||
[CustomEditor(typeof(ViveAnchor))]
|
||||
internal class ViveAnchorEditor : UnityEditor.Editor
|
||||
{
|
||||
private SerializedProperty enablePersistedAnchor;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
enablePersistedAnchor = serializedObject.FindProperty("enablePersistedAnchor");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
EditorGUILayout.PropertyField(enablePersistedAnchor);
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user