bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Support `EntityCommands::trigger` and `EntityWorldMut::trigger`

Open benfrankel opened this issue 1 year ago • 0 comments

What problem does this solve or what need does it fill?

Ergonomics.

What solution would you like?

commands.spawn(bundle).trigger(event).insert(bundle2);

What alternative(s) have you considered?

let entity = commands.spawn(bundle).id();
commands.trigger_targets(event, entity);
commands.entity(entity).insert(bundle2);

benfrankel avatar Jul 09 '24 05:07 benfrankel