您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

26 行
603 B

using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(Twist))]
public class TwistEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
Twist twistScript = (Twist) target;
GUILayout.BeginHorizontal();
if (GUILayout.Button("Set Bindpose"))
{
twistScript.SetBindpose();
}
if (GUILayout.Button("Goto Bindpose"))
{
twistScript.GotoBindpose();
}
GUILayout.EndHorizontal();
// EditorGUILayout.HelpBox("This is a help box", MessageType.Info);
}
}