polywickstudio Posted August 29, 2020 Share Posted August 29, 2020 Is there a dialog-box or menu-system in Unigine? Use-case: Let's say I make a controllable character, when I go next to a NPC, I want it to popup a 2D dialog box. How do I do that in Unigine? Link to comment
david.cambre Posted August 29, 2020 Share Posted August 29, 2020 Hi polywickstudio, I use C# components I hope this helps. Create a ObjectGUI Attach a component with this Init function. Gui gui; private void Init() { gui = (node as ObjectGui).GetGui(); WidgetDialog dialog = new WidgetDialog(); WidgetLabel label = new WidgetLabel(); label.Text = "test"; gui.AddChild(dialog); gui.AddChild(label); label.Flags = Gui.ALIGN_CENTER; } If you want more. Look at Samples - Unigine inteface - Unigine objects gui_07 - C# Widgets Also today i finished this post on UI Link to comment
Recommended Posts