mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
37 lines
772 B
C#
37 lines
772 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace SanAndreasUnity.Editor
|
|
{
|
|
|
|
[CustomEditor(typeof(Behaviours.Frame))]
|
|
// [CanEditMultipleObjects]
|
|
public class FrameInspector : UnityEditor.Editor
|
|
{
|
|
|
|
|
|
void OnEnable()
|
|
{
|
|
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
|
|
base.DrawDefaultInspector ();
|
|
|
|
GUILayout.Space (10);
|
|
|
|
var frame = this.target as Behaviours.Frame;
|
|
|
|
EditorGUILayout.LabelField ("Bone id: " + frame.BoneId);
|
|
EditorGUILayout.LabelField ("Index: " + frame.Index);
|
|
EditorGUILayout.ObjectField ("Parent: ", frame.Parent, typeof(Behaviours.Frame), true);
|
|
EditorGUILayout.LabelField ("Parent index: " + frame.ParentIndex);
|
|
EditorGUILayout.LabelField ("Path: " + frame.Path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|