Hi there, I’ve created a very basic menu for the home screen of my game. I am completely lost as to how to access its components/buttons in script. Can anyone offer some advice, or perhaps I’ve completely overlooked a section in the docs?
1 Like
I was about to post the same question. I’ve followed guides describing how to make editor windows but oddly enough it wasn’t as straightforward as I would have thought to do the same in runtime.
1 Like
Just found this. Not sure how I overlooked it. I have only had a quick browse but it looks fairly simple. You reference the UIDocument and can access elements from there. This example uses Action to trigger events on button clicks. I’ll have a dig around later and see what I can do with it.
Here’s the updated link:
Please avoid using the zip version that was originally shared.
1 Like