|
I trying to write an editor script to copy/paste whole content of a GUI style because I need refactoring GUI part of my project. But I don't know how to start and firstly make a context menu on a GUIStyle part of a GUISkin for exemple... if it is possible ? Thanks Jerome
(comments are locked)
|
|
you can use AngryAnt's copy inspector script. the script can copy and paste any component. The question is about variables, not entire components. i.e. copying a GUIStyle variable from one GUISkin element to another in the same skin, or between arbitrary GUIStyle variables.
Jun 28 '11 at 01:21 AM
Waz
(comments are locked)
|
|
There isn't any way currently to copy/paste variable values in the inspector. don't talk about things that you are not sure about. you don't have to answer all questions. you can write "i don't know any way but i think ...". answer those questions that you are sure about them and you have clear answers or good ideas about them.
Jan 18 '10 at 02:31 PM
Ashkan_gc
(comments are locked)
|
|
Since individuals variables cannot be copied in the inspector (unless they happen to be strings or ints), I wrote a custom editor for
(comments are locked)
|
|
I encountered a similar need, since our skin had a ton of custom styles. Since GUISkins have the property of saving modifications made to them while playing the game, I made a this quick and dirty script that lets you duplicate, delete and sort your skin's custom styles. It is also helpful when you just want to see what is in a skin. Nothing fancy, but I've found it very useful.
(comments are locked)
|

