2
2
2abuza2016-10-01 13:17:58
JavaScript
2abuza, 2016-10-01 13:17:58

How to refer to a style that is in a GUI skin?

I have several GUI styles (one in the example) that increase the size of the text in a button depending on the screen width.
var buttonstyle : GUIStyle;
buttonstyle.fontSize = Screen.width/12;
For convenience, I want to combine these GUI styles into one GUI skin (via Custom Styles). How would I need to change the code if for example "buttonstyle" is in "styles : GUISkin" ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question