Singularity/Library/PackageCache/com.unity.2d.animation@7.0.10/Editor/SpriteSkin/BoneEditor.cs

31 lines
849 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
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);
}
}
}
}