pub struct VisibilityRequest {
pub target: EntityTarget,
pub visible: bool,
}Expand description
Runtime-only event requesting that an entity (and its descendants) be hidden or shown without despawning it. SpawnSystem drains these each step, toggling the subtree’s Hidden tags and its draw slots’ visibility. World authors never declare this type directly.
Fields§
§target: EntityTargetThe entity whose subtree is toggled.
visible: booltrue to show the subtree, false to hide it.
Trait Implementations§
Source§impl Clone for VisibilityRequest
impl Clone for VisibilityRequest
Source§fn clone(&self) -> VisibilityRequest
fn clone(&self) -> VisibilityRequest
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 moreimpl Copy for VisibilityRequest
Auto Trait Implementations§
impl Freeze for VisibilityRequest
impl RefUnwindSafe for VisibilityRequest
impl Send for VisibilityRequest
impl Sync for VisibilityRequest
impl Unpin for VisibilityRequest
impl UnsafeUnpin for VisibilityRequest
impl UnwindSafe for VisibilityRequest
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