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
impl ComponentAsset
Sourcepub fn from_baked(def: &BlobAssetDef) -> Result<Self, CnResult>
pub fn from_baked(def: &BlobAssetDef) -> Result<Self, 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).
Sourcepub fn inject_locator(&mut self, locator: PayloadLocator)
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
impl Debug for ComponentAsset
Source§impl From<Animation> for ComponentAsset
impl From<Animation> for ComponentAsset
Source§impl From<AnimationGraph> for ComponentAsset
impl From<AnimationGraph> for ComponentAsset
Source§fn from(c: AnimationGraph) -> Self
fn from(c: AnimationGraph) -> Self
Converts to this type from the input type.
Source§impl From<AnimationParams> for ComponentAsset
impl From<AnimationParams> for ComponentAsset
Source§fn from(c: AnimationParams) -> Self
fn from(c: AnimationParams) -> Self
Converts to this type from the input type.
Source§impl From<AppConfig> for ComponentAsset
impl From<AppConfig> for ComponentAsset
Source§impl From<AudioCue> for ComponentAsset
impl From<AudioCue> for ComponentAsset
Source§impl From<AudioEmitter> for ComponentAsset
impl From<AudioEmitter> for ComponentAsset
Source§fn from(c: AudioEmitter) -> Self
fn from(c: AudioEmitter) -> Self
Converts to this type from the input type.
Source§impl From<AudioOcclusionProbe> for ComponentAsset
impl From<AudioOcclusionProbe> for ComponentAsset
Source§fn from(c: AudioOcclusionProbe) -> Self
fn from(c: AudioOcclusionProbe) -> Self
Converts to this type from the input type.
Source§impl From<Behavior> for ComponentAsset
impl From<Behavior> for ComponentAsset
Source§impl From<BlockType> for ComponentAsset
impl From<BlockType> for ComponentAsset
Source§impl From<BodyDynamics> for ComponentAsset
impl From<BodyDynamics> for ComponentAsset
Source§fn from(c: BodyDynamics) -> Self
fn from(c: BodyDynamics) -> Self
Converts to this type from the input type.
Source§impl From<Camera3D> for ComponentAsset
impl From<Camera3D> for ComponentAsset
Source§impl From<CameraProbe> for ComponentAsset
impl From<CameraProbe> for ComponentAsset
Source§fn from(c: CameraProbe) -> Self
fn from(c: CameraProbe) -> Self
Converts to this type from the input type.
Source§impl From<CharacterRig> for ComponentAsset
impl From<CharacterRig> for ComponentAsset
Source§fn from(c: CharacterRig) -> Self
fn from(c: CharacterRig) -> Self
Converts to this type from the input type.
Source§impl From<CharacterShape> for ComponentAsset
impl From<CharacterShape> for ComponentAsset
Source§fn from(c: CharacterShape) -> Self
fn from(c: CharacterShape) -> Self
Converts to this type from the input type.
Source§impl From<Children> for ComponentAsset
impl From<Children> for ComponentAsset
Source§impl From<Collider> for ComponentAsset
impl From<Collider> for ComponentAsset
Source§impl From<DebugHud> for ComponentAsset
impl From<DebugHud> for ComponentAsset
Source§impl From<Decal> for ComponentAsset
impl From<Decal> for ComponentAsset
Source§impl From<DirectionalLight> for ComponentAsset
impl From<DirectionalLight> for ComponentAsset
Source§fn from(c: DirectionalLight) -> Self
fn from(c: DirectionalLight) -> Self
Converts to this type from the input type.
Source§impl From<File> for ComponentAsset
impl From<File> for ComponentAsset
Source§impl From<FpsCounter> for ComponentAsset
impl From<FpsCounter> for ComponentAsset
Source§fn from(c: FpsCounter) -> Self
fn from(c: FpsCounter) -> Self
Converts to this type from the input type.
Source§impl From<FrameInput> for ComponentAsset
impl From<FrameInput> for ComponentAsset
Source§fn from(c: FrameInput) -> Self
fn from(c: FrameInput) -> Self
Converts to this type from the input type.
Source§impl From<GlassPanel> for ComponentAsset
impl From<GlassPanel> for ComponentAsset
Source§fn from(c: GlassPanel) -> Self
fn from(c: GlassPanel) -> Self
Converts to this type from the input type.
Source§impl From<GlobalTransform> for ComponentAsset
impl From<GlobalTransform> for ComponentAsset
Source§fn from(c: GlobalTransform) -> Self
fn from(c: GlobalTransform) -> Self
Converts to this type from the input type.
Source§impl From<GraphicsConfig> for ComponentAsset
impl From<GraphicsConfig> for ComponentAsset
Source§fn from(c: GraphicsConfig) -> Self
fn from(c: GraphicsConfig) -> Self
Converts to this type from the input type.
Source§impl From<GroundProbes> for ComponentAsset
impl From<GroundProbes> for ComponentAsset
Source§fn from(c: GroundProbes) -> Self
fn from(c: GroundProbes) -> Self
Converts to this type from the input type.
Source§impl From<Held> for ComponentAsset
impl From<Held> for ComponentAsset
Source§impl From<Hidden> for ComponentAsset
impl From<Hidden> for ComponentAsset
Source§impl From<HitRegion> for ComponentAsset
impl From<HitRegion> for ComponentAsset
Source§impl From<InstancedProp> for ComponentAsset
impl From<InstancedProp> for ComponentAsset
Source§fn from(c: InstancedProp) -> Self
fn from(c: InstancedProp) -> Self
Converts to this type from the input type.
Source§impl From<Interactable> for ComponentAsset
impl From<Interactable> for ComponentAsset
Source§fn from(c: Interactable) -> Self
fn from(c: Interactable) -> Self
Converts to this type from the input type.
Source§impl From<KeyBinding> for ComponentAsset
impl From<KeyBinding> for ComponentAsset
Source§fn from(c: KeyBinding) -> Self
fn from(c: KeyBinding) -> Self
Converts to this type from the input type.
Source§impl From<LayoutContainer> for ComponentAsset
impl From<LayoutContainer> for ComponentAsset
Source§fn from(c: LayoutContainer) -> Self
fn from(c: LayoutContainer) -> Self
Converts to this type from the input type.
Source§impl From<Lifetime> for ComponentAsset
impl From<Lifetime> for ComponentAsset
Source§impl From<LoadingOverlay> for ComponentAsset
impl From<LoadingOverlay> for ComponentAsset
Source§fn from(c: LoadingOverlay) -> Self
fn from(c: LoadingOverlay) -> Self
Converts to this type from the input type.
Source§impl From<MeshRenderer> for ComponentAsset
impl From<MeshRenderer> for ComponentAsset
Source§fn from(c: MeshRenderer) -> Self
fn from(c: MeshRenderer) -> Self
Converts to this type from the input type.
Source§impl From<Model> for ComponentAsset
impl From<Model> for ComponentAsset
Source§impl From<ModelRenderer> for ComponentAsset
impl From<ModelRenderer> for ComponentAsset
Source§fn from(c: ModelRenderer) -> Self
fn from(c: ModelRenderer) -> Self
Converts to this type from the input type.
Source§impl From<Parent> for ComponentAsset
impl From<Parent> for ComponentAsset
Source§impl From<ParticleEmitter> for ComponentAsset
impl From<ParticleEmitter> for ComponentAsset
Source§fn from(c: ParticleEmitter) -> Self
fn from(c: ParticleEmitter) -> Self
Converts to this type from the input type.
Source§impl From<PhysicsConfig> for ComponentAsset
impl From<PhysicsConfig> for ComponentAsset
Source§fn from(c: PhysicsConfig) -> Self
fn from(c: PhysicsConfig) -> Self
Converts to this type from the input type.
Source§impl From<PhysicsJoint> for ComponentAsset
impl From<PhysicsJoint> for ComponentAsset
Source§fn from(c: PhysicsJoint) -> Self
fn from(c: PhysicsJoint) -> Self
Converts to this type from the input type.
Source§impl From<Pickup> for ComponentAsset
impl From<Pickup> for ComponentAsset
Source§impl From<PointLight> for ComponentAsset
impl From<PointLight> for ComponentAsset
Source§fn from(c: PointLight) -> Self
fn from(c: PointLight) -> Self
Converts to this type from the input type.
Source§impl From<PostProcessConfig> for ComponentAsset
impl From<PostProcessConfig> for ComponentAsset
Source§fn from(c: PostProcessConfig) -> Self
fn from(c: PostProcessConfig) -> Self
Converts to this type from the input type.
Source§impl From<ProceduralMesh> for ComponentAsset
impl From<ProceduralMesh> for ComponentAsset
Source§fn from(c: ProceduralMesh) -> Self
fn from(c: ProceduralMesh) -> Self
Converts to this type from the input type.
Source§impl From<Prop> for ComponentAsset
impl From<Prop> for ComponentAsset
Source§impl From<PropBody> for ComponentAsset
impl From<PropBody> for ComponentAsset
Source§impl From<PropInstance> for ComponentAsset
impl From<PropInstance> for ComponentAsset
Source§fn from(c: PropInstance) -> Self
fn from(c: PropInstance) -> Self
Converts to this type from the input type.
Source§impl From<RectAreaLight> for ComponentAsset
impl From<RectAreaLight> for ComponentAsset
Source§fn from(c: RectAreaLight) -> Self
fn from(c: RectAreaLight) -> Self
Converts to this type from the input type.
Source§impl From<ReflectionProbe> for ComponentAsset
impl From<ReflectionProbe> for ComponentAsset
Source§fn from(c: ReflectionProbe) -> Self
fn from(c: ReflectionProbe) -> Self
Converts to this type from the input type.
Source§impl From<RenderHandle> for ComponentAsset
impl From<RenderHandle> for ComponentAsset
Source§fn from(c: RenderHandle) -> Self
fn from(c: RenderHandle) -> Self
Converts to this type from the input type.
Source§impl From<RigidBody> for ComponentAsset
impl From<RigidBody> for ComponentAsset
Source§impl From<Room> for ComponentAsset
impl From<Room> for ComponentAsset
Source§impl From<Scene> for ComponentAsset
impl From<Scene> for ComponentAsset
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.
Source§impl From<Screen> for ComponentAsset
impl From<Screen> for ComponentAsset
Source§impl From<ScrollPanel> for ComponentAsset
impl From<ScrollPanel> for ComponentAsset
Source§fn from(c: ScrollPanel) -> Self
fn from(c: ScrollPanel) -> Self
Converts to this type from the input type.
Source§impl From<SdfVolume> for ComponentAsset
impl From<SdfVolume> for ComponentAsset
Source§impl From<Shader> for ComponentAsset
impl From<Shader> for ComponentAsset
Source§impl From<SkeletonPose> for ComponentAsset
impl From<SkeletonPose> for ComponentAsset
Source§fn from(c: SkeletonPose) -> Self
fn from(c: SkeletonPose) -> Self
Converts to this type from the input type.
Source§impl From<Spawner> for ComponentAsset
impl From<Spawner> for ComponentAsset
Source§impl From<SpotLight> for ComponentAsset
impl From<SpotLight> for ComponentAsset
Source§impl From<Sprite> for ComponentAsset
impl From<Sprite> for ComponentAsset
Source§impl From<StatHud> for ComponentAsset
impl From<StatHud> for ComponentAsset
Source§impl From<Story> for ComponentAsset
impl From<Story> for ComponentAsset
Source§impl From<StreamingConfig> for ComponentAsset
impl From<StreamingConfig> for ComponentAsset
Source§fn from(c: StreamingConfig) -> Self
fn from(c: StreamingConfig) -> Self
Converts to this type from the input type.
Source§impl From<TextInput> for ComponentAsset
impl From<TextInput> for ComponentAsset
Source§impl From<TextLabel> for ComponentAsset
impl From<TextLabel> for ComponentAsset
Source§impl From<Transform> for ComponentAsset
impl From<Transform> for ComponentAsset
Source§impl From<TriggerVolume> for ComponentAsset
impl From<TriggerVolume> for ComponentAsset
Source§fn from(c: TriggerVolume) -> Self
fn from(c: TriggerVolume) -> Self
Converts to this type from the input type.
Source§impl From<Variables> for ComponentAsset
impl From<Variables> for ComponentAsset
Source§impl From<VolumetricFog> for ComponentAsset
impl From<VolumetricFog> for ComponentAsset
Source§fn from(c: VolumetricFog) -> Self
fn from(c: VolumetricFog) -> Self
Converts to this type from the input type.
Source§impl From<VoxelChunk> for ComponentAsset
impl From<VoxelChunk> for ComponentAsset
Source§fn from(c: VoxelChunk) -> Self
fn from(c: VoxelChunk) -> Self
Converts to this type from the input type.
Source§impl From<VoxelWorld> for ComponentAsset
impl From<VoxelWorld> for ComponentAsset
Source§fn from(c: VoxelWorld) -> Self
fn from(c: VoxelWorld) -> Self
Converts to this type from the input type.
Source§impl From<WaterSurface> for ComponentAsset
impl From<WaterSurface> for ComponentAsset
Source§fn from(c: WaterSurface) -> Self
fn from(c: WaterSurface) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentAsset
impl RefUnwindSafe for ComponentAsset
impl Send for ComponentAsset
impl Sync for ComponentAsset
impl Unpin for ComponentAsset
impl UnsafeUnpin for ComponentAsset
impl UnwindSafe for ComponentAsset
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