Replies: 2 comments 5 replies
-
This is a very nice idea. To be clear, the state machine was precisely designed with extensibility in mind. That's why I chose to use TypeId's for state identification, so that users can easily add their own states that they want to interpolate between. I want to have some "premade" states though, so that the user does not need to spend a lot of time writing boilerplate. If we could achieve that by creating a generic enough state, that's good. We can just use Main reason for naming them as they are is that some states will need to have different logic. For example the intro state, which I want to play when the component is spawned. This could be either instant, delayed, or triggered on event, where it waits for other UiIntros in the scene to finish, creating some nice effects like this: But the states are highly experimental, I myself am still unsure where to drive the effort here. Any feedback or ideas are welcome. |
Beta Was this translation helpful? Give feedback.
-
I decided that I should probably drop here some future plans as well, so you can take it into account. Merge
|
Beta Was this translation helpful? Give feedback.
-
the names of states UiHover/UiClicked/UiSelected confused me for a while. i thought i was limited to certain ways to trigger those states. until i discovered that i can just use whatever events to trigger that "hover" state
in our project i copied the hover state and made it generic so i can have a few of them:
code
and using them normally:
it feels less confusing to have some states (with generic names) rather than a hover/click/etc since the user already can choose how they want to trigger those states. what do you think?
Beta Was this translation helpful? Give feedback.
All reactions