- Home /
Using custom style for window rect?
Can I use a custom element, of a skin, to put on the actual window box, while keeping everything else as it is? or do I have to have two skin files then.
Seutp is:
function OnGUI(){
GUI.skin = CustomSkin;
TheMenu_Window = GUI.Window (1, TheMenu_Window , TheMenu_Settings , "");
}
Then later I got a function for all the buttons. But is it possible to change the window part of the layout, to use another background image, maybe with one defined in a custom skin element in the same skin? So I dont have to have two skins.
I asked a similar question, as far as scripting goes
The$$anonymous$$enu_Window = GUI.Window (1, The$$anonymous$$enu_Window , The$$anonymous$$enu_Settings , "", "referenceInSkin");
After creating a custom style within the skin. Note that it doesn't have to be referenceInSkin but it does have to be exactly the same name you gave it on the CustomSkin.
Hope I helped :D
Your answer
![](https://koobas.hobune.stream/wayback/20220613090048im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
JavaScript GUI.Window OverPowers GUI.Button 1 Answer
Window Background Image not showing 1 Answer
GUI Window problem 2 Answers
GUI Window on GameObject location? 1 Answer
Stop clicking through a GUI window 2 Answers