summaryrefslogtreecommitdiff
path: root/Assets/ActionTool
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-03 09:45:03 +0800
committerchai <chaifix@163.com>2021-09-03 09:45:03 +0800
commit0a4dd643234284db73735f78ece9c209b80a72d6 (patch)
treea12d27457cc13d207ea7bc604fc3f86f7b10f89b /Assets/ActionTool
parent0d8b9832447b84fa62bd5f6f41af2507bf3001d5 (diff)
*misc
Diffstat (limited to 'Assets/ActionTool')
-rw-r--r--Assets/ActionTool/Editor/ActionEditorStyles.cs4
-rw-r--r--Assets/ActionTool/Editor/ActionRootMotionEditor.cs2
2 files changed, 4 insertions, 2 deletions
diff --git a/Assets/ActionTool/Editor/ActionEditorStyles.cs b/Assets/ActionTool/Editor/ActionEditorStyles.cs
index 896db183..b424a8c6 100644
--- a/Assets/ActionTool/Editor/ActionEditorStyles.cs
+++ b/Assets/ActionTool/Editor/ActionEditorStyles.cs
@@ -30,6 +30,7 @@ namespace ActionTool
public Texture2D deleteIcon;
public Texture2D infoIcon;
public Texture2D keyIcon;
+ public Texture2D recordIcon;
private static ActionEditorStyles s_instance;
public static ActionEditorStyles Get()
@@ -53,8 +54,9 @@ namespace ActionTool
deleteIcon = EditorGUIUtility.FindTexture("d_P4_DeletedLocal");
infoIcon = EditorGUIUtility.FindTexture("console.infoicon");
keyIcon = EditorGUIUtility.FindTexture("d_animationkeyframe");
+ recordIcon = EditorGUIUtility.FindTexture("d_Animation.Record");
- InitStyle(out textBoldBig, GUI.skin.label, s => {
+ InitStyle(out textBoldBig, GUI.skin.label, s => {
s.fontStyle = FontStyle.Bold;
s.fontSize = 18;
s.alignment = TextAnchor.MiddleCenter;
diff --git a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs b/Assets/ActionTool/Editor/ActionRootMotionEditor.cs
index 204a97b2..f6a97efe 100644
--- a/Assets/ActionTool/Editor/ActionRootMotionEditor.cs
+++ b/Assets/ActionTool/Editor/ActionRootMotionEditor.cs
@@ -74,7 +74,7 @@ namespace ActionTool
{
x += kToolbarControlMargin;
Rect rect = new Rect(x, y, kToolbarControlSize, kToolbarControlSize);
- IsRecord = GUI.Toggle(rect, IsRecord, m_UITextureRecord, GUI.skin.button);
+ IsRecord = GUI.Toggle(rect, IsRecord, EditorGUIUtility.IconContent("d_Animation.Record"), GUI.skin.button);
x += kToolbarControlSize;
}