Jump to content

[SOLVED] The conflict between the Widget and Unigine::Widgets


photo

Recommended Posts

Posted

Can I add a child WidgetVBox to a parent  Unigine::Widgets::VBox?

 

Example:

Gui gui = engine.getGui();
WidgetVBox childVB = new WidgetVBox(gui);
Unigine::Widgets::VBox parentVB = new Unigine::Widgets::VBox();

parentVB.addChild(childVB); // Error: Machine::do_callucfv(): "WidgetVBox 02e4f920 internal (12:21:21)" is not a user class

If so, how?

Posted

Unigine::Widgets::VBox is a script wrapper around WidgetVBox.

parentVB.vbox.addChilld(childVB);
Posted

Thank you. Everything works fine!  :rolleyes:  

×
×
  • Create New...