Skip to main content

ComponentAsset

Enum ComponentAsset 

Source
pub enum ComponentAsset {
Show 77 variants Window(Window), GraphicsConfig(GraphicsConfig), Shader(Shader), Camera3D(Camera3D), FrameInput(FrameInput), Prop(Prop), RigidBody(RigidBody), PropBody(PropBody), Room(Room), DirectionalLight(DirectionalLight), PointLight(PointLight), SpotLight(SpotLight), RectAreaLight(RectAreaLight), ProceduralMesh(ProceduralMesh), Model(Model), Scene(Scene), TextLabel(TextLabel), HitRegion(HitRegion), File(File), BlockType(BlockType), VoxelChunk(VoxelChunk), InstancedProp(InstancedProp), PostProcessConfig(PostProcessConfig), Animation(Animation), SkeletonPose(SkeletonPose), StreamingConfig(StreamingConfig), VoxelWorld(VoxelWorld), AudioEmitter(AudioEmitter), Sprite(Sprite), KeyBinding(KeyBinding), Screen(Screen), Decal(Decal), VolumetricFog(VolumetricFog), PhysicsJoint(PhysicsJoint), ParticleEmitter(ParticleEmitter), WaterSurface(WaterSurface), SdfVolume(SdfVolume), GlassPanel(GlassPanel), LayoutContainer(LayoutContainer), PhysicsConfig(PhysicsConfig), FpsCounter(FpsCounter), StatHud(StatHud), ScrollPanel(ScrollPanel), ReflectionProbe(ReflectionProbe), Transform(Transform), PropInstance(PropInstance), MeshRenderer(MeshRenderer), ModelRenderer(ModelRenderer), Collider(Collider), BodyDynamics(BodyDynamics), Interactable(Interactable), Pickup(Pickup), Parent(Parent), Children(Children), SceneMember(SceneMember), GlobalTransform(GlobalTransform), RenderHandle(RenderHandle), Held(Held), Lifetime(Lifetime), Spawner(Spawner), DebugHud(DebugHud), AudioCue(AudioCue), Story(Story), AppConfig(AppConfig), AnimationGraph(AnimationGraph), AnimationParams(AnimationParams), CharacterRig(CharacterRig), GroundProbes(GroundProbes), CameraProbe(CameraProbe), TextInput(TextInput), Behavior(Behavior), Variables(Variables), TriggerVolume(TriggerVolume), Hidden(Hidden), LoadingOverlay(LoadingOverlay), AudioOcclusionProbe(AudioOcclusionProbe), CharacterShape(CharacterShape),
}
Expand description

A loaded component of any registered type.

Variants§

§

Window(Window)

§

GraphicsConfig(GraphicsConfig)

§

Shader(Shader)

§

Camera3D(Camera3D)

§

FrameInput(FrameInput)

§

Prop(Prop)

§

RigidBody(RigidBody)

§

PropBody(PropBody)

§

Room(Room)

§

DirectionalLight(DirectionalLight)

§

PointLight(PointLight)

§

SpotLight(SpotLight)

§

RectAreaLight(RectAreaLight)

§

ProceduralMesh(ProceduralMesh)

§

Model(Model)

§

Scene(Scene)

§

TextLabel(TextLabel)

§

HitRegion(HitRegion)

§

File(File)

§

BlockType(BlockType)

§

VoxelChunk(VoxelChunk)

§

InstancedProp(InstancedProp)

§

PostProcessConfig(PostProcessConfig)

§

Animation(Animation)

§

SkeletonPose(SkeletonPose)

§

StreamingConfig(StreamingConfig)

§

VoxelWorld(VoxelWorld)

§

AudioEmitter(AudioEmitter)

§

Sprite(Sprite)

§

KeyBinding(KeyBinding)

§

Screen(Screen)

§

Decal(Decal)

§

VolumetricFog(VolumetricFog)

§

PhysicsJoint(PhysicsJoint)

§

ParticleEmitter(ParticleEmitter)

§

WaterSurface(WaterSurface)

§

SdfVolume(SdfVolume)

§

GlassPanel(GlassPanel)

§

LayoutContainer(LayoutContainer)

§

PhysicsConfig(PhysicsConfig)

§

FpsCounter(FpsCounter)

§

StatHud(StatHud)

§

ScrollPanel(ScrollPanel)

§

ReflectionProbe(ReflectionProbe)

§

Transform(Transform)

§

PropInstance(PropInstance)

§

MeshRenderer(MeshRenderer)

§

ModelRenderer(ModelRenderer)

§

Collider(Collider)

§

BodyDynamics(BodyDynamics)

§

Interactable(Interactable)

§

Pickup(Pickup)

§

Parent(Parent)

§

Children(Children)

§

SceneMember(SceneMember)

§

GlobalTransform(GlobalTransform)

§

RenderHandle(RenderHandle)

§

Held(Held)

§

Lifetime(Lifetime)

§

Spawner(Spawner)

§

DebugHud(DebugHud)

§

AudioCue(AudioCue)

§

Story(Story)

§

AppConfig(AppConfig)

§

AnimationGraph(AnimationGraph)

§

AnimationParams(AnimationParams)

§

CharacterRig(CharacterRig)

§

GroundProbes(GroundProbes)

§

CameraProbe(CameraProbe)

§

TextInput(TextInput)

§

Behavior(Behavior)

§

Variables(Variables)

§

TriggerVolume(TriggerVolume)

§

Hidden(Hidden)

§

LoadingOverlay(LoadingOverlay)

§

AudioOcclusionProbe(AudioOcclusionProbe)

§

CharacterShape(CharacterShape)

Implementations§

Source§

impl ComponentAsset

Source

pub fn from_baked(def: &BlobAssetDef) -> Result<ComponentAsset, CnResult>

Reconstruct a component from a blob def: dispatch on the tag and deserialize the runtime component via Component::from_baked (every record is baked – cook already ran the asset -> component translation).

Source

pub fn inject_locator(&mut self, locator: PayloadLocator)

Inject a payload locator into the component after construction. Delegates to Component::inject_locator; a no-op for types that don’t override that method.

Trait Implementations§

Source§

impl Debug for ComponentAsset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<Animation> for ComponentAsset

Source§

fn from(c: Animation) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AnimationGraph> for ComponentAsset

Source§

fn from(c: AnimationGraph) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AnimationParams> for ComponentAsset

Source§

fn from(c: AnimationParams) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AppConfig> for ComponentAsset

Source§

fn from(c: AppConfig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AudioCue> for ComponentAsset

Source§

fn from(c: AudioCue) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AudioEmitter> for ComponentAsset

Source§

fn from(c: AudioEmitter) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<AudioOcclusionProbe> for ComponentAsset

Source§

fn from(c: AudioOcclusionProbe) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Behavior> for ComponentAsset

Source§

fn from(c: Behavior) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<BlockType> for ComponentAsset

Source§

fn from(c: BlockType) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<BodyDynamics> for ComponentAsset

Source§

fn from(c: BodyDynamics) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Camera3D> for ComponentAsset

Source§

fn from(c: Camera3D) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<CameraProbe> for ComponentAsset

Source§

fn from(c: CameraProbe) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<CharacterRig> for ComponentAsset

Source§

fn from(c: CharacterRig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<CharacterShape> for ComponentAsset

Source§

fn from(c: CharacterShape) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Children> for ComponentAsset

Source§

fn from(c: Children) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Collider> for ComponentAsset

Source§

fn from(c: Collider) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<DebugHud> for ComponentAsset

Source§

fn from(c: DebugHud) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Decal> for ComponentAsset

Source§

fn from(c: Decal) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<DirectionalLight> for ComponentAsset

Source§

fn from(c: DirectionalLight) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<File> for ComponentAsset

Source§

fn from(c: File) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<FpsCounter> for ComponentAsset

Source§

fn from(c: FpsCounter) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<FrameInput> for ComponentAsset

Source§

fn from(c: FrameInput) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<GlassPanel> for ComponentAsset

Source§

fn from(c: GlassPanel) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<GlobalTransform> for ComponentAsset

Source§

fn from(c: GlobalTransform) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<GraphicsConfig> for ComponentAsset

Source§

fn from(c: GraphicsConfig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<GroundProbes> for ComponentAsset

Source§

fn from(c: GroundProbes) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Held> for ComponentAsset

Source§

fn from(c: Held) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Hidden> for ComponentAsset

Source§

fn from(c: Hidden) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<HitRegion> for ComponentAsset

Source§

fn from(c: HitRegion) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<InstancedProp> for ComponentAsset

Source§

fn from(c: InstancedProp) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Interactable> for ComponentAsset

Source§

fn from(c: Interactable) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<KeyBinding> for ComponentAsset

Source§

fn from(c: KeyBinding) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<LayoutContainer> for ComponentAsset

Source§

fn from(c: LayoutContainer) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Lifetime> for ComponentAsset

Source§

fn from(c: Lifetime) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<LoadingOverlay> for ComponentAsset

Source§

fn from(c: LoadingOverlay) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<MeshRenderer> for ComponentAsset

Source§

fn from(c: MeshRenderer) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Model> for ComponentAsset

Source§

fn from(c: Model) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<ModelRenderer> for ComponentAsset

Source§

fn from(c: ModelRenderer) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Parent> for ComponentAsset

Source§

fn from(c: Parent) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<ParticleEmitter> for ComponentAsset

Source§

fn from(c: ParticleEmitter) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PhysicsConfig> for ComponentAsset

Source§

fn from(c: PhysicsConfig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PhysicsJoint> for ComponentAsset

Source§

fn from(c: PhysicsJoint) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Pickup> for ComponentAsset

Source§

fn from(c: Pickup) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PointLight> for ComponentAsset

Source§

fn from(c: PointLight) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PostProcessConfig> for ComponentAsset

Source§

fn from(c: PostProcessConfig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<ProceduralMesh> for ComponentAsset

Source§

fn from(c: ProceduralMesh) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Prop> for ComponentAsset

Source§

fn from(c: Prop) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PropBody> for ComponentAsset

Source§

fn from(c: PropBody) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<PropInstance> for ComponentAsset

Source§

fn from(c: PropInstance) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<RectAreaLight> for ComponentAsset

Source§

fn from(c: RectAreaLight) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<ReflectionProbe> for ComponentAsset

Source§

fn from(c: ReflectionProbe) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<RenderHandle> for ComponentAsset

Source§

fn from(c: RenderHandle) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<RigidBody> for ComponentAsset

Source§

fn from(c: RigidBody) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Room> for ComponentAsset

Source§

fn from(c: Room) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Scene> for ComponentAsset

Source§

fn from(c: Scene) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<SceneMember> for ComponentAsset

Source§

fn from(c: SceneMember) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Screen> for ComponentAsset

Source§

fn from(c: Screen) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<ScrollPanel> for ComponentAsset

Source§

fn from(c: ScrollPanel) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<SdfVolume> for ComponentAsset

Source§

fn from(c: SdfVolume) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Shader> for ComponentAsset

Source§

fn from(c: Shader) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<SkeletonPose> for ComponentAsset

Source§

fn from(c: SkeletonPose) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Spawner> for ComponentAsset

Source§

fn from(c: Spawner) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<SpotLight> for ComponentAsset

Source§

fn from(c: SpotLight) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Sprite> for ComponentAsset

Source§

fn from(c: Sprite) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<StatHud> for ComponentAsset

Source§

fn from(c: StatHud) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Story> for ComponentAsset

Source§

fn from(c: Story) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<StreamingConfig> for ComponentAsset

Source§

fn from(c: StreamingConfig) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<TextInput> for ComponentAsset

Source§

fn from(c: TextInput) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<TextLabel> for ComponentAsset

Source§

fn from(c: TextLabel) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Transform> for ComponentAsset

Source§

fn from(c: Transform) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<TriggerVolume> for ComponentAsset

Source§

fn from(c: TriggerVolume) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Variables> for ComponentAsset

Source§

fn from(c: Variables) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<VolumetricFog> for ComponentAsset

Source§

fn from(c: VolumetricFog) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<VoxelChunk> for ComponentAsset

Source§

fn from(c: VoxelChunk) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<VoxelWorld> for ComponentAsset

Source§

fn from(c: VoxelWorld) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<WaterSurface> for ComponentAsset

Source§

fn from(c: WaterSurface) -> ComponentAsset

Converts to this type from the input type.
Source§

impl From<Window> for ComponentAsset

Source§

fn from(c: Window) -> ComponentAsset

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more