설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BoneEditor.cs 849B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.U2D.Animation;
  5. namespace UnityEditor.U2D.Animation
  6. {
  7. [CustomEditor(typeof(Bone))]
  8. [CanEditMultipleObjects]
  9. class BoneEditor : Editor
  10. {
  11. static class Style
  12. {
  13. public static GUIContent boneId = new GUIContent("Bone ID", "The ID of the bone where this GameObject Transform should associate to for SpriteSkin auto rebinding.");
  14. }
  15. private SerializedProperty m_GUID;
  16. void OnEnable()
  17. {
  18. m_GUID = serializedObject.FindProperty("m_Guid");
  19. }
  20. public override void OnInspectorGUI()
  21. {
  22. using (new EditorGUI.DisabledScope(true))
  23. {
  24. EditorGUILayout.PropertyField(m_GUID, Style.boneId);
  25. }
  26. }
  27. }
  28. }