diff options
author | chai <chaifix@163.com> | 2021-08-02 08:35:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-08-02 08:35:26 +0800 |
commit | ce73a13f28e5a947df8f1f87f1f1be20010952ec (patch) | |
tree | 2c430bcd93f2c09bd35340def7c556c7294d6b5d /Assets/ActionTool/Editor/ActionColliderFrameEditor.cs | |
parent | 81acfeb9a1d88075899d9c21064330915caa59a4 (diff) |
* 测试
Diffstat (limited to 'Assets/ActionTool/Editor/ActionColliderFrameEditor.cs')
-rw-r--r-- | Assets/ActionTool/Editor/ActionColliderFrameEditor.cs | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs index 4f716be3..91b6d0c3 100644 --- a/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs +++ b/Assets/ActionTool/Editor/ActionColliderFrameEditor.cs @@ -14,7 +14,7 @@ namespace ActionTool private void OnEnable()
{
titleContent = new GUIContent("Collider Frame Editor");
- maxSize = new Vector2(300, 150);
+ maxSize = new Vector2(300, 180);
minSize = maxSize;
if(!sceneView)
@@ -62,6 +62,33 @@ namespace ActionTool GUILayout.Space(10);
+ GUILayout.BeginHorizontal();
+
+ if(GUILayout.Button("Left abit"))
+ {
+ ActionData action = ActionManager.actionData;
+ float normaltime = frame.frame / action.totalFrame;
+ action.curAnimTimeNormal = normaltime - 0.01f;
+ }
+
+ if (GUILayout.Button("Right abit"))
+ {
+ ActionData action = ActionManager.actionData;
+ float normaltime = frame.frame / action.totalFrame;
+ action.curAnimTimeNormal = normaltime + 0.01f;
+ }
+
+ if (GUILayout.Button("Current"))
+ {
+ ActionData action = ActionManager.actionData;
+ float normaltime = frame.frame / action.totalFrame;
+ action.curAnimTimeNormal = normaltime;
+ }
+
+ GUILayout.EndHorizontal();
+
+ GUILayout.Space(10);
+
Color prevColor = GUI.backgroundColor;
GUI.backgroundColor = Color.red;
if (GUILayout.Button("Delete"))
|