pub trait WorldEntityUuid {
// Required methods
fn spawn_uuid<B: Bundle>(
&mut self,
uuid: Uuid,
bundle: B,
) -> EntityWorldMut<'_>;
fn spawn_empty_uuid(&mut self, uuid: Uuid) -> EntityWorldMut<'_>;
}Expand description
This trait is for solving the eventual consistency of Commands: using world the same uuid won’t be spawned twice, but return the original first entity.
Required Methods§
fn spawn_uuid<B: Bundle>(&mut self, uuid: Uuid, bundle: B) -> EntityWorldMut<'_>
fn spawn_empty_uuid(&mut self, uuid: Uuid) -> EntityWorldMut<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.