Singularity/Library/PackageCache/com.unity.2d.animation@7.0.10/Editor/SpriteSkin/BoneEditor.cs
2024-05-06 11:45:45 -07:00

31 lines
849 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.U2D.Animation;
namespace UnityEditor.U2D.Animation
{
[CustomEditor(typeof(Bone))]
[CanEditMultipleObjects]
class BoneEditor : Editor
{
static class Style
{
public static GUIContent boneId = new GUIContent("Bone ID", "The ID of the bone where this GameObject Transform should associate to for SpriteSkin auto rebinding.");
}
private SerializedProperty m_GUID;
void OnEnable()
{
m_GUID = serializedObject.FindProperty("m_Guid");
}
public override void OnInspectorGUI()
{
using (new EditorGUI.DisabledScope(true))
{
EditorGUILayout.PropertyField(m_GUID, Style.boneId);
}
}
}
}