Jump to content

specify gui.rc


photo

Recommended Posts

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

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

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
  • 1 month later...

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
  • 2 months later...
×
×
  • Create New...