bevy_eventlistener icon indicating copy to clipboard operation
bevy_eventlistener copied to clipboard

Run once

Open CMorrison82z opened this issue 1 year ago • 1 comments

Consider run_once, where once the callback is executed, remove the On::<T> component (or whatever preferred alternatively to achieve a single call to callback)

CMorrison82z avatar May 27 '24 23:05 CMorrison82z

This should be possible now, by adding that logic to the callback. This may behave strangely if it is ever possible to add multiple listeners of the same type to an entity.

aevyrie avatar Jul 16 '24 01:07 aevyrie