Skip to content

Commit

Permalink
fix: Array系インスペクターの削除ボタンが「追加」の見た目になっている問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pspkurara committed Oct 8, 2020
1 parent 7ce7f44 commit 55d285f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/uGUI-Skinner/Editor/SkinPartsOnArrayInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void DrawInspector(EditorSkinPartsPropertry property)
}
GUI.enabled = guiEnabled;
}
if (SkinnerEditorUtility.DrawAddButton(EditorConst.RemoveFieldButtonTitle, () => {
if (SkinnerEditorUtility.DrawRemoveButton(EditorConst.RemoveFieldButtonTitle, () => {
property.objectReferenceValues.GetArrayElementAtIndex(iz).objectReferenceValue = null;
property.objectReferenceValues.DeleteArrayElementAtIndex(iz);
property.objectReferenceValues.serializedObject.ApplyModifiedProperties();
Expand Down

0 comments on commit 55d285f

Please sign in to comment.