pub trait BundleEffect {
// Required method
fn apply(self, entity: &mut EntityWorldMut<'_>);
}
Expand description
An operation on an Entity
that occurs after inserting the Bundle
that defined this bundle effect.
The order of operations is:
- The
Bundle
is inserted on the entity - Relevant Hooks are run for the insert, then Observers
- The
BundleEffect
is run.
Required Methods§
Sourcefn apply(self, entity: &mut EntityWorldMut<'_>)
fn apply(self, entity: &mut EntityWorldMut<'_>)
Applies this effect to the given entity
.