pub struct DueSpawn {
pub template: AssetId,
pub transform: Transform,
pub lifetime: Option<f32>,
}Expand description
One spawn a Spawner is due to emit this step: the template to copy, where to place it, and how long the copy should live.
Returned by tick_spawners for the caller to route through
spawn_from_template with the live backend, the same way
tick_lifetimes returns expiries for the caller to despawn.
Fields§
§template: AssetIdThe placement to copy.
transform: TransformWhere the copy is placed.
lifetime: Option<f32>Seconds the copy lives for, or None when it is not auto-removed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DueSpawn
impl RefUnwindSafe for DueSpawn
impl Send for DueSpawn
impl Sync for DueSpawn
impl Unpin for DueSpawn
impl UnsafeUnpin for DueSpawn
impl UnwindSafe for DueSpawn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more