Move third party assets to ThirdParty folder
This commit is contained in:
32
Assets/ThirdParty/UltimateXR/Editor/Manipulation/HandPoses/UxrHandPoseAssetEditor.cs
vendored
Normal file
32
Assets/ThirdParty/UltimateXR/Editor/Manipulation/HandPoses/UxrHandPoseAssetEditor.cs
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// <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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user