Note that the '''parent''' parameter of '''GenerateUI''' call is null, because all the UI will be added as a child to the parent object, but since we are spawning a window, this is not necessary to define. You can use '''WindowManager.Spawn*''' to spawn UI elements to put your UI into. I'm using '''this''' for the '''callback''' parameter, so when you click the button, the method '''ShowMessage''' from the current class will be called. | Note that the '''parent''' parameter of '''GenerateUI''' call is null, because all the UI will be added as a child to the parent object, but since we are spawning a window, this is not necessary to define. You can use '''WindowManager.Spawn*''' to spawn UI elements to put your UI into. I'm using '''this''' for the '''callback''' parameter, so when you click the button, the method '''ShowMessage''' from the current class will be called. |