pub struct SceneMember(pub AssetId);Expand description
The Scene an entity belongs to, for per-scene show/hide.
Runtime-only. An entity without this component is visible in every scene.
Carries the scene identity a Prop resolves into its scene field.
Tuple Fields§
§0: AssetIdTrait Implementations§
Source§impl Clone for SceneMember
impl Clone for SceneMember
Source§fn clone(&self) -> SceneMember
fn clone(&self) -> SceneMember
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 Component for SceneMember
impl Component for SceneMember
Source§const NAME: &'static str = "SceneMember"
const NAME: &'static str = "SceneMember"
The registry name a world authors this component under.
Source§fn from_baked(_bytes: &[u8]) -> Result<Self, CnResult>
fn from_baked(_bytes: &[u8]) -> Result<Self, CnResult>
Reconstruct this component from a blob record, whose bytes are the
serialized runtime component (cook already ran the asset -> component
translation). The default rejects: runtime-only components are never
stored in a blob, so only loadable types provide an implementation.
Source§fn inject_locator(&mut self, _locator: PayloadLocator)
fn inject_locator(&mut self, _locator: PayloadLocator)
Called after construction to inject the payload locator from the blob def.
Only meaningful for components with a compiled payload.
The default implementation does nothing (correct for most components).
Source§fn inject_name(&mut self, _id: AssetId)
fn inject_name(&mut self, _id: AssetId)
Called after construction to inject the asset’s identity from the blob
def. Only meaningful for components that look themselves up by id at
runtime. The default implementation does nothing.
Source§impl ComponentSlot for SceneMember
impl ComponentSlot for SceneMember
Source§const DISCRIMINANT: u8
const DISCRIMINANT: u8
The component type’s stable id, used as its
ComponentId.Source§fn slot(s: &ComponentStorage) -> &Column<Self>
fn slot(s: &ComponentStorage) -> &Column<Self>
Borrow this type’s column out of the storage.
Source§fn slot_mut(s: &mut ComponentStorage) -> &mut Column<Self>
fn slot_mut(s: &mut ComponentStorage) -> &mut Column<Self>
Mutably borrow this type’s column out of the storage.
impl Copy for SceneMember
Source§impl Debug for SceneMember
impl Debug for SceneMember
Source§impl Default for SceneMember
impl Default for SceneMember
Source§fn default() -> SceneMember
fn default() -> SceneMember
Returns the “default value” for a type. Read more
Source§impl From<SceneMember> for ComponentAsset
impl From<SceneMember> for ComponentAsset
Source§fn from(c: SceneMember) -> Self
fn from(c: SceneMember) -> Self
Converts to this type from the input type.
impl RuntimeComponent for SceneMember
Auto Trait Implementations§
impl Freeze for SceneMember
impl RefUnwindSafe for SceneMember
impl Send for SceneMember
impl Sync for SceneMember
impl Unpin for SceneMember
impl UnsafeUnpin for SceneMember
impl UnwindSafe for SceneMember
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