pub struct SceneCommand {
pub scene: AssetId,
pub transition: String,
}Expand description
Runtime-only event sent by UiInputSystem when a scene-jump HitRegion fires.
GraphicsSystem reads these from its Events<SceneCommand> queue each step and
applies the scene jump. World authors never declare this type directly.
Fields§
§scene: AssetIdThe scene to jump to.
transition: StringNamed transition to play across the jump.
Trait Implementations§
Source§impl Clone for SceneCommand
impl Clone for SceneCommand
Source§fn clone(&self) -> SceneCommand
fn clone(&self) -> SceneCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneCommand
impl Debug for SceneCommand
Auto Trait Implementations§
impl Freeze for SceneCommand
impl RefUnwindSafe for SceneCommand
impl Send for SceneCommand
impl Sync for SceneCommand
impl Unpin for SceneCommand
impl UnsafeUnpin for SceneCommand
impl UnwindSafe for SceneCommand
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