- Home /
Copy the Default Style
When creating a GUI.Box, is there a way I can copy its default style? I like a lot that it does, which creating a new style resets.
Can you not just use it? Just dont apply the layout to it, use GUI.Box not GUILayout.Box, or whatever it my be. Lol.
I'd like to use it, but make the text bigger. Ideally, I would want to save off the default style and make a change to it.
Answer by rajishere · Apr 02, 2013 at 08:29 AM
For somebody searching like me, the following could work.
Create a copy of existing style GUIStyle bSty = new GUIStyle(GUI.skin.box);
Apply that style to one of the constructors used to build the box.
Your answer
Follow this Question
Related Questions
GUIStyle for GUI.label doesn't work for android? 1 Answer
Unable to find style 'Close Window Button' in skin 'ChestSkin' Repaint 1 Answer
Defualt GUI Style 1 Answer
Is there a way to get the size of text? 1 Answer
GUIskin and c#, How? 1 Answer