pub struct ReparentRequest {
pub child: EntityTarget,
pub parent: Option<EntityTarget>,
}Expand description
Runtime-only event requesting that an authored placement be re-parented at
runtime: child is moved under parent, or detached to a root when
parent is None. GraphicsSystem reads these from its
Events<ReparentRequest> queue each step, resolves the nameto their entities,
re-points the child’s Parent edge, and recomposes world matrices. World
authors never declare this type directly.
Fields§
§child: EntityTargetThe placement to move.
parent: Option<EntityTarget>The new parent, or None to detach the child to a root.
Trait Implementations§
Source§impl Clone for ReparentRequest
impl Clone for ReparentRequest
Source§fn clone(&self) -> ReparentRequest
fn clone(&self) -> ReparentRequest
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 ReparentRequest
Source§impl Debug for ReparentRequest
impl Debug for ReparentRequest
Source§impl Default for ReparentRequest
impl Default for ReparentRequest
Source§fn default() -> ReparentRequest
fn default() -> ReparentRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReparentRequest
impl RefUnwindSafe for ReparentRequest
impl Send for ReparentRequest
impl Sync for ReparentRequest
impl Unpin for ReparentRequest
impl UnsafeUnpin for ReparentRequest
impl UnwindSafe for ReparentRequest
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