Understanding Screen State Changes (Unity)
Posted: 03 Jun 2025, 05:46
I have some general questions about handling state changes. Coming off of Unity UGUI, I have a class object for each screen state that contain different events/properties relative to those UIs. It seems as though I can carry over this concept to Noesis as DataContexts but its not clear how I can wire everything together..
To start with..
I see that there are both Visual States & Storyboards in Studio.. Storyboards basically are 'animation graphs' which is obvious enough.. I can fade in/fade out screens beautifully.. no problem there... but Visual States has no documentation other than the class reference, and its not exactly clear what their purpose is. Do these play a role?
So more broadly, what is the intended workflow for dealing with screen state transitions, and then calling back to Unity to indicate a transition is complete?
"StoryboardCompletedTrigger" seems to be a good starting point but I'm assuming I need to have a boolean flag or some such thing so Unity knows the exact moment its safe to enable/disable the next screen state. Or should I be allowing Noesis todo that for me and just send messages backwards to Unity?
If any of those are stupid questions, just point me to a Sample and say 'figure it out'
To start with..
I see that there are both Visual States & Storyboards in Studio.. Storyboards basically are 'animation graphs' which is obvious enough.. I can fade in/fade out screens beautifully.. no problem there... but Visual States has no documentation other than the class reference, and its not exactly clear what their purpose is. Do these play a role?
So more broadly, what is the intended workflow for dealing with screen state transitions, and then calling back to Unity to indicate a transition is complete?
"StoryboardCompletedTrigger" seems to be a good starting point but I'm assuming I need to have a boolean flag or some such thing so Unity knows the exact moment its safe to enable/disable the next screen state. Or should I be allowing Noesis todo that for me and just send messages backwards to Unity?
If any of those are stupid questions, just point me to a Sample and say 'figure it out'