Skip to content
Discussion options

You must be logged in to vote

Hello, sorry for the late response, I just stumbled upon this question.

If you're looking to load a UIPage at runtime, the way to go about it is:

  • Create a UIComponent (preferably defined globally): UIComponent MyUI = new();
  • Add the page to the component: MyUI.Page = Content.Load<UIPage>("UI/Main");
  • Add the UIComponent to the entity that has the script attached (or any entity in the scene, really): Entity.Components.Add(MyUI);
  • Make sure the UIPage is included in the build as a root asset in the editor.

If the issue is more specific or you need more help with this, feel free to let me know with additional info and I'll do my best to look into it.
I hope this helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by euroUK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants