michael.zhang Posted March 7, 2011 Share Posted March 7, 2011 The default gui.rc is at: data/core/gui/gui.rc How can I specify a different directory for the gui.rc, along with custom skins. This would allow me to keep the unigine skins in the core/gui folder, but use custom skins in my own application. I could not find the answer in the documentation. Michael Zhang Link to comment
frustum Posted March 8, 2011 Share Posted March 8, 2011 There is no way to override default gui skin name. You can change default skin by your own. But there is another option to creating ObjectGui with different gui skin and placing it before the camera. Link to comment
michael.zhang Posted March 9, 2011 Author Share Posted March 9, 2011 There is no way to override default gui skin name. You can change default skin by your own. But there is another option to creating ObjectGui with different gui skin and placing it before the camera. Okay, thank you for the response. How does one use an ObjectGui? Are there any samples which use it? Link to comment
binstream Posted March 9, 2011 Share Posted March 9, 2011 Take a look into OilRush resources. Link to comment
eugene.litvinov Posted April 29, 2011 Share Posted April 29, 2011 I try to use ObjectGui to create menu with custom skin, I do next: ObjectGui gui = new ObjectGui(24.0f, 24.0f, "source/gui/"); gui.setMaterial("gui_base", "*"); gui.setProperty("surface_base", "*"); WidgetButton button = new WidgetButton(gui, "Label"); gui.addChild(button); In folder source/gui/ I copy files from core/gui/ and modify gui_button.png skin, but in my test added button have default Unigine editor's skin, not my. How it can be done? Do you plan to add ability to override/change default gui skin name via unigine interface? Thanks. Link to comment
manguste Posted July 22, 2011 Share Posted July 22, 2011 Take a look at samples > objects > gui_07 sample. There a custom GUI skin is assigned, just like in your case. Link to comment
Recommended Posts