pub struct ParentEntity(pub Entity);Expand description
Parent entity for scene-graph hierarchy.
Attaching this component to an entity makes it a child of the referenced entity in the render scene graph. The renderer uses this to build Three.js parent-child relationships so transforms inherit correctly.
Entities without this component are children of the scene root.
Tuple Fields§
§0: EntityTrait Implementations§
Source§impl Clone for ParentEntity
impl Clone for ParentEntity
impl Component for ParentEntity
impl Copy for ParentEntity
Source§impl Debug for ParentEntity
impl Debug for ParentEntity
impl Eq for ParentEntity
Source§impl Hash for ParentEntity
impl Hash for ParentEntity
Source§impl PartialEq for ParentEntity
impl PartialEq for ParentEntity
impl StructuralPartialEq for ParentEntity
Auto Trait Implementations§
impl Freeze for ParentEntity
impl RefUnwindSafe for ParentEntity
impl Send for ParentEntity
impl Sync for ParentEntity
impl Unpin for ParentEntity
impl UnsafeUnpin for ParentEntity
impl UnwindSafe for ParentEntity
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