Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Button Interaction to trigger async dynamic impulses

Open mpmxyz opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

You can trigger a dynamic impulse from a button directly using ButtonDynamicImpulseTrigger and its siblings with a payload but you can't do that with async dynamic impulses.

Describe the solution you'd like

Add the components

  • ButtonAsyncDynamicImpulseTrigger
  • ButtonAsyncDynamicImpulseTriggerWithReference<T>
  • ButtonAsyncDynamicImpulseTriggerWithValue<T>

Describe alternatives you've considered

One could change regular dynamic impulses so they trigger async receivers with a new context. But the semantics are different with async dynamic impulses: non-async ones are all triggered in the same update cycle, async receivers may be triggered across different cycles if some of them execute a waiting operation.

Additional Context

No button can trigger async dynamic impulses directly. You can't trigger the async variant with a button unless you handle button events from ProtoFlux.

mpmxyz avatar Jan 02 '24 11:01 mpmxyz

Merged this in 2025.11.18.1216! Thanks!

Frooxius avatar Nov 18 '25 20:11 Frooxius

Ooops the issue number got mixed up.

Frooxius avatar Nov 18 '25 20:11 Frooxius