-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
I've tried to implement the unistate, to replace my exisitng state controller. So the execute funciton is nearly forcing to implement the transition to either goback, goexit or goto, making state fully depeneded on _view.WaitForClick to get some action done.
public override async UniTask<StateTransitionInfo> Execute(CancellationToken token)
{
await _view.Show(token);
await _view.WaitForClick(token);
return Transition.GoBack();
}
- Instead make it univoid and make it still avaiable to call transition.goback or transition.exit so that multiple button clicks can redirect based on the user needs and no more waiting.
- ealier ive used, enum for state mapping and calling state transition using messagepipe, every state has its own scope and attached to view along with presenter as entry point. But in uniState, unable to do the same setup with unistate. can u share demo on how to achieve this
- Also when using with addressables, like to have prewarm where before calling goto to some state, ive to prewarm state and then requesting to goto will be a useful feature.
Reactions are currently unavailable