Skip to content

Does Execute function mandatory to return IStateTransitionFacade Transition #75

@onedevapp

Description

@onedevapp

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();
}
  1. 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.
  2. 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
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions