- Home /
Is there a way to edit a GUI Skin file?
My project has multiple GUI skins (style definitions) and sometimes we have to deal with GUI skins with many custom styles. Editing them in the editor is difficult, for instance, I cannot delete one style that is not the last one without deleting the ones after it.
Would there be a way to edit a file that represents this skin, via text editor?
Could I edit a skin file if I use "Text" in the Asset Serialization Mode (Unity Pro)?
If not, is there something in the Unity Store to help me better edit skins?
Answer by roberto_sc · May 29, 2013 at 03:22 PM
Change the Asset Serialization Mode to Text and edit the file.
Answer by cian2d2 · Mar 06, 2012 at 11:28 PM
i think you will just need to edit the files in photoshop and save them all separatly
@cian2d2 ??? I'm talking about the Skin definitions inside Unity... like the "Left" value of the "Border" of the "Label" inside the "Default Skin". I want to edit those via text editor ins$$anonymous$$d of Unity editor.
Answer by TonyLi · May 29, 2013 at 03:33 PM
I see you already accepted an answer, but there's a way to insert and delete from the middle of an array in the inspector:
4) Inserting and Deleting Items From Arrays In Inspector – Populating arrays using the Unity editor is very handy, that is until you realize that you need to remove or add an item in the middle of the array. It might appear that there is no way to do this, but there is. To duplicate an item, select it and hit Ctrl-D (Windows), Command-D (Mac). To delete an item, hit Shift-Delete twice (once to clear, second time to remove it)
From: http://blog.almostlogical.com/2011/12/19/unity-editor-lesser-known-features/
This way, you don't need to change the asset serialization mode, and you don't run the risk of introducing typos into your text-serialized asset.