diff --git a/Editor/EasySetupOutfit.cs b/Editor/EasySetupOutfit.cs index dd73a749..4fa78cc8 100644 --- a/Editor/EasySetupOutfit.cs +++ b/Editor/EasySetupOutfit.cs @@ -22,8 +22,8 @@ namespace nadena.dev.modular_avatar.core.editor internal static void InitStyles() { - buttonStyle = EditorStyles.miniButtonRight; - labelStyle = EditorStyles.label; + buttonStyle = new GUIStyle(EditorStyles.miniButtonRight); + labelStyle = new GUIStyle(EditorStyles.label); labelStyle.wordWrap = true; buttonStyle.fixedWidth = 40f; diff --git a/Editor/Inspector/MergeArmatureEditor.cs b/Editor/Inspector/MergeArmatureEditor.cs index 0d3f305b..03392eb9 100644 --- a/Editor/Inspector/MergeArmatureEditor.cs +++ b/Editor/Inspector/MergeArmatureEditor.cs @@ -53,14 +53,14 @@ namespace nadena.dev.modular_avatar.core.editor { var val = !propLockMode.hasMultipleDifferentValues && propLockMode.enumValueIndex == (int) index; - var selectionStyle = val ? (GUIStyle) "flow node 1" : (GUIStyle) "flow node 0"; + var selectionStyle = new GUIStyle(val ? (GUIStyle) "flow node 1" : (GUIStyle) "flow node 0"); selectionStyle.padding = new RectOffset(0, 0, 0, 0); selectionStyle.margin = new RectOffset(0, 0, 5, 5); - var boldLabel = EditorStyles.boldLabel; + var boldLabel = new GUIStyle(EditorStyles.boldLabel); boldLabel.wordWrap = true; - var normalLabel = EditorStyles.label; + var normalLabel = new GUIStyle(EditorStyles.label); normalLabel.wordWrap = true; EditorGUILayout.BeginVertical(selectionStyle);