Files
dungeons/Assets/UltimateXR/Editor/Manipulation/HandPoses/UxrHandPoseAssetEditor.cs
2024-08-06 21:58:35 +02:00

32 lines
1.1 KiB
C#

// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrHandPoseAssetEditor.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Manipulation.HandPoses;
using UnityEditor;
using UnityEngine;
namespace UltimateXR.Editor.Manipulation.HandPoses
{
/// <summary>
/// Custom inspector for <see cref="UxrHandPoseAsset" />.
/// </summary>
[CustomEditor(typeof(UxrHandPoseAsset))]
public class UxrHandPoseAssetEditor : UnityEditor.Editor
{
#region Unity
/// <summary>
/// Draw the inspector but editing will be disabled because data should be only modified by the hand pose editor.
/// </summary>
public override void OnInspectorGUI()
{
GUI.enabled = false;
DrawPropertiesExcluding(serializedObject, "m_Script");
GUI.enabled = true;
}
#endregion
}
}