Trait bevy::ecs::prelude::Component

source ·
pub trait Component: Send + Sync + 'static {
    const STORAGE_TYPE: StorageType;

    // Provided method
    fn register_component_hooks(_hooks: &mut ComponentHooks) { ... }
}
Expand description

A data type that can be used to store data for an entity.

Component is a derivable trait: this means that a data type can implement it by applying a #[derive(Component)] attribute to it. However, components must always satisfy the Send + Sync + 'static trait bounds.

§Examples

Components can take many forms: they are usually structs, but can also be of every other kind of data type, like enums or zero sized types. The following examples show how components are laid out in code.

// A component can contain data...
#[derive(Component)]
struct LicensePlate(String);

// ... but it can also be a zero-sized marker.
#[derive(Component)]
struct Car;

// Components can also be structs with named fields...
#[derive(Component)]
struct VehiclePerformance {
    acceleration: f32,
    top_speed: f32,
    handling: f32,
}

// ... or enums.
#[derive(Component)]
enum WheelCount {
    Two,
    Three,
    Four,
}

§Component and data access

See the entity module level documentation to learn how to add or remove components from an entity.

See the documentation for Query to learn how to access component data from a system.

§Choosing a storage type

Components can be stored in the world using different strategies with their own performance implications. By default, components are added to the Table storage, which is optimized for query iteration.

Alternatively, components can be added to the SparseSet storage, which is optimized for component insertion and removal. This is achieved by adding an additional #[component(storage = "SparseSet")] attribute to the derive one:

#[derive(Component)]
#[component(storage = "SparseSet")]
struct ComponentA;

§Implementing the trait for foreign types

As a consequence of the orphan rule, it is not possible to separate into two different crates the implementation of Component from the definition of a type. This means that it is not possible to directly have a type defined in a third party library as a component. This important limitation can be easily worked around using the newtype pattern: this makes it possible to locally define and implement Component for a tuple struct that wraps the foreign type. The following example gives a demonstration of this pattern.

// `Component` is defined in the `bevy_ecs` crate.
use bevy_ecs::component::Component;

// `Duration` is defined in the `std` crate.
use std::time::Duration;

// It is not possible to implement `Component` for `Duration` from this position, as they are
// both foreign items, defined in an external crate. However, nothing prevents to define a new
// `Cooldown` type that wraps `Duration`. As `Cooldown` is defined in a local crate, it is
// possible to implement `Component` for it.
#[derive(Component)]
struct Cooldown(Duration);

§!Sync Components

A !Sync type cannot implement Component. However, it is possible to wrap a Send but not Sync type in SyncCell or the currently unstable Exclusive to make it Sync. This forces only having mutable access (&mut T only, never &T), but makes it safe to reference across multiple threads.

This will fail to compile since RefCell is !Sync.

#[derive(Component)]
struct NotSync {
   counter: RefCell<usize>,
}

This will compile since the RefCell is wrapped with SyncCell.

use bevy_utils::synccell::SyncCell;

// This will compile.
#[derive(Component)]
struct ActuallySync {
   counter: SyncCell<RefCell<usize>>,
}

Required Associated Constants§

source

const STORAGE_TYPE: StorageType

A constant indicating the storage type used for this component.

Provided Methods§

source

fn register_component_hooks(_hooks: &mut ComponentHooks)

Called when registering this component, allowing mutable access to its ComponentHooks.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Component for AppExit
where AppExit: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for DependencyLoadState
where DependencyLoadState: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for LoadState
where LoadState: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for RecursiveDependencyLoadState

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DepthOfFieldMode
where DepthOfFieldMode: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DepthOfFieldPipelines
where DepthOfFieldPipelines: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DebandDither
where DebandDither: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Tonemapping
where Tonemapping: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for HierarchyEvent
where HierarchyEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for GamepadEvent
where GamepadEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for GamepadRumbleRequest
where GamepadRumbleRequest: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for ClusterConfig
where ClusterConfig: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for LightEntity
where LightEntity: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ShadowFilteringMethod
where ShadowFilteringMethod: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Projection
where Projection: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Visibility
where Visibility: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Anchor
where Anchor: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ImageScaleMode
where ImageScaleMode: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for FocusPolicy
where FocusPolicy: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Interaction
where Interaction: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ZIndex
where ZIndex: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for AppLifecycle
where AppLifecycle: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for FileDragAndDrop
where FileDragAndDrop: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for Ime
where Ime: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WinitEvent
where WinitEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for AccessibilityNode
where AccessibilityNode: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ActionRequest
where ActionRequest: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for AnimationTransitions
where AnimationTransitions: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for AnimationPlayer
where AnimationPlayer: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for AnimationTarget
where AnimationTarget: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for UntypedAssetLoadFailedEvent

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for AudioSink
where AudioSink: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PlaybackSettings
where PlaybackSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpatialAudioSink
where SpatialAudioSink: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpatialListener
where SpatialListener: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Name
where Name: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for AutoExposureSettings
where AutoExposureSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for BloomSettings
where BloomSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ContrastAdaptiveSharpeningSettings

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DenoiseCAS
where DenoiseCAS: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewCASPipeline
where ViewCASPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewTransmissionTexture
where ViewTransmissionTexture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DeferredLightingIdDepthTexture

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for AuxiliaryDepthOfFieldTexture

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DepthOfFieldSettings
where DepthOfFieldSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DepthOfFieldUniform
where DepthOfFieldUniform: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewDepthOfFieldBindGroupLayouts

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TemporalAntiAliasSettings
where TemporalAntiAliasSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CameraFxaaPipeline
where CameraFxaaPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Fxaa
where Fxaa: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MotionBlurPipelineId
where MotionBlurPipelineId: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MotionBlur
where MotionBlur: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MsaaWritebackBlitPipeline
where MsaaWritebackBlitPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Camera2d
where Camera2d: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Camera3d
where Camera3d: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DeferredPrepass
where DeferredPrepass: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DepthPrepass
where DepthPrepass: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MotionVectorPrepass
where MotionVectorPrepass: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NormalPrepass
where NormalPrepass: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PreviousViewData
where PreviousViewData: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PreviousViewUniformOffset
where PreviousViewUniformOffset: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewPrepassTextures
where ViewPrepassTextures: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SmaaBindGroups
where SmaaBindGroups: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SmaaInfoUniformOffset
where SmaaInfoUniformOffset: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SmaaSettings
where SmaaSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SmaaTextures
where SmaaTextures: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewSmaaPipelines
where ViewSmaaPipelines: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Skybox
where Skybox: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewTonemappingPipeline
where ViewTonemappingPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewUpscalingPipeline
where ViewUpscalingPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ShowAabbGizmo
where ShowAabbGizmo: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ShowLightGizmo
where ShowLightGizmo: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GltfExtras
where GltfExtras: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GltfMaterialExtras
where GltfMaterialExtras: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GltfMeshExtras
where GltfMeshExtras: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GltfSceneExtras
where GltfSceneExtras: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Children
where Children: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Parent
where Parent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GamepadAxisChangedEvent
where GamepadAxisChangedEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for GamepadButtonChangedEvent
where GamepadButtonChangedEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for GamepadButtonInput
where GamepadButtonInput: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for GamepadConnectionEvent
where GamepadConnectionEvent: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for DoubleTapGesture
where DoubleTapGesture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for PanGesture
where PanGesture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for PinchGesture
where PinchGesture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for RotationGesture
where RotationGesture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for KeyboardFocusLost
where KeyboardFocusLost: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for KeyboardInput
where KeyboardInput: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for MouseButtonInput
where MouseButtonInput: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for MouseMotion
where MouseMotion: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for MouseWheel
where MouseWheel: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for TouchInput
where TouchInput: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for DeferredLightingPipeline
where DeferredLightingPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PbrDeferredLightingDepthId

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for EnvironmentMapLight
where EnvironmentMapLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for IrradianceVolume
where IrradianceVolume: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CascadeShadowConfig
where CascadeShadowConfig: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Cascades
where Cascades: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CascadesVisibleEntities
where CascadesVisibleEntities: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Clusters
where Clusters: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CubemapVisibleEntities
where CubemapVisibleEntities: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DirectionalLight
where DirectionalLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedClusterConfig
where ExtractedClusterConfig: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedClusterableObjects

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedDirectionalLight
where ExtractedDirectionalLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedPointLight
where ExtractedPointLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for FogSettings
where FogSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for LightProbe
where LightProbe: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Lightmap
where Lightmap: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MaterialBindGroupId
where MaterialBindGroupId: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MeshTransforms
where MeshTransforms: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MeshViewBindGroup
where MeshViewBindGroup: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NotShadowCaster
where NotShadowCaster: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NotShadowReceiver
where NotShadowReceiver: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PointLight
where PointLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PreprocessBindGroup
where PreprocessBindGroup: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PreviousGlobalTransform
where PreviousGlobalTransform: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ScreenSpaceAmbientOcclusionSettings

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ScreenSpaceAmbientOcclusionTextures

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ScreenSpaceReflectionsPipelineId

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ScreenSpaceReflectionsSettings

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ScreenSpaceReflectionsUniform

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ShadowView
where ShadowView: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpotLight
where SpotLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TransmittedShadowReceiver
where TransmittedShadowReceiver: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewClusterBindings
where ViewClusterBindings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewFogUniformOffset
where ViewFogUniformOffset: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewLightEntities
where ViewLightEntities: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewLightProbesUniformOffset

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewLightsUniformOffset
where ViewLightsUniformOffset: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewScreenSpaceReflectionsUniformOffset

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewShadowBindings
where ViewShadowBindings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewVolumetricFogPipeline
where ViewVolumetricFogPipeline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewVolumetricFogUniformOffset

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for VisibleClusterableObjects
where VisibleClusterableObjects: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for VolumetricFogSettings
where VolumetricFogSettings: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for VolumetricLight
where VolumetricLight: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NoWireframe
where NoWireframe: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Wireframe
where Wireframe: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for WireframeColor
where WireframeColor: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NoAutomaticBatching
where NoAutomaticBatching: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CameraMainTextureUsages
where CameraMainTextureUsages: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CameraRenderGraph
where CameraRenderGraph: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Exposure
where Exposure: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedCamera
where ExtractedCamera: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ManualTextureView
where ManualTextureView: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ManualTextureViewHandle
where ManualTextureViewHandle: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MipBias
where MipBias: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TemporalJitter
where TemporalJitter: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MeshMorphWeights
where MeshMorphWeights: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SkinnedMesh
where SkinnedMesh: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Camera
where Camera: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for InheritedVisibility
where InheritedVisibility: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for MorphWeights
where MorphWeights: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for OrthographicProjection
where OrthographicProjection: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for PerspectiveProjection
where PerspectiveProjection: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewVisibility
where ViewVisibility: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Aabb
where Aabb: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CascadesFrusta
where CascadesFrusta: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CubemapFrusta
where CubemapFrusta: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Frustum
where Frustum: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ColorGrading
where ColorGrading: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ExtractedView
where ExtractedView: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GpuCulling
where GpuCulling: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NoCpuCulling
where NoCpuCulling: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NoFrustumCulling
where NoFrustumCulling: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for RenderLayers
where RenderLayers: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewDepthTexture
where ViewDepthTexture: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewTarget
where ViewTarget: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ViewUniformOffset
where ViewUniformOffset: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for VisibilityRange
where VisibilityRange: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for VisibleEntities
where VisibleEntities: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SceneInstance
where SceneInstance: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SceneInstanceReady
where SceneInstanceReady: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for Material2dBindGroupId
where Material2dBindGroupId: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Mesh2d
where Mesh2d: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Mesh2dHandle
where Mesh2dHandle: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Mesh2dTransforms
where Mesh2dTransforms: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Mesh2dViewBindGroup
where Mesh2dViewBindGroup: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for NoWireframe2d
where NoWireframe2d: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Sprite
where Sprite: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpriteBatch
where SpriteBatch: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpriteSource
where SpriteSource: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for SpriteViewBindGroup
where SpriteViewBindGroup: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TextureAtlas
where TextureAtlas: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Wireframe2d
where Wireframe2d: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Wireframe2dColor
where Wireframe2dColor: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Text2dBounds
where Text2dBounds: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Text
where Text: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TextLayoutInfo
where TextLayoutInfo: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for GlobalTransform
where GlobalTransform: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Transform
where Transform: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for BackgroundColor
where BackgroundColor: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for BorderColor
where BorderColor: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for BorderRadius
where BorderRadius: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CalculatedClip
where CalculatedClip: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ContentSize
where ContentSize: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for DefaultCameraView
where DefaultCameraView: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for IsDefaultUiCamera
where IsDefaultUiCamera: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Node
where Node: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Outline
where Outline: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for RelativeCursorPosition
where RelativeCursorPosition: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Style
where Style: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TargetCamera
where TargetCamera: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for UiBatch
where UiBatch: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for UiImage
where UiImage: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Button
where Button: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for Label
where Label: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for TextFlags
where TextFlags: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for UiImageSize
where UiImageSize: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ClosingWindow
where ClosingWindow: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for CursorEntered
where CursorEntered: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for CursorLeft
where CursorLeft: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for CursorMoved
where CursorMoved: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for PrimaryWindow
where PrimaryWindow: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for RawHandleWrapper
where RawHandleWrapper: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for RawHandleWrapperHolder
where RawHandleWrapperHolder: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for ReceivedCharacter
where ReceivedCharacter: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for RequestRedraw
where RequestRedraw: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for Window
where Window: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl Component for WindowBackendScaleFactorChanged

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowCloseRequested
where WindowCloseRequested: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowClosed
where WindowClosed: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowClosing
where WindowClosing: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowCreated
where WindowCreated: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowDestroyed
where WindowDestroyed: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowFocused
where WindowFocused: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowMoved
where WindowMoved: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowOccluded
where WindowOccluded: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowResized
where WindowResized: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowScaleFactorChanged
where WindowScaleFactorChanged: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WindowThemeChanged
where WindowThemeChanged: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for WakeUp
where WakeUp: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for ObserverState

source§

const STORAGE_TYPE: StorageType = StorageType::SparseSet

source§

impl Component for RemovedComponentEntity
where RemovedComponentEntity: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for OnAdd
where OnAdd: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for OnInsert
where OnInsert: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl Component for OnRemove
where OnRemove: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl<A> Component for AssetEvent<A>
where A: Asset, AssetEvent<A>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl<A> Component for Handle<A>
where A: Asset, Handle<A>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl<A> Component for AssetLoadFailedEvent<A>
where A: Asset, AssetLoadFailedEvent<A>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl<C> Component for RenderViewLightProbes<C>

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl<C> Component for DynamicUniformIndex<C>
where C: Component, DynamicUniformIndex<C>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl<E, B> Component for Observer<E, B>
where E: Event, B: Bundle,

source§

const STORAGE_TYPE: StorageType = StorageType::SparseSet

source§

impl<M> Component for UiMaterialBatch<M>
where M: UiMaterial, UiMaterialBatch<M>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl<S> Component for StateScoped<S>
where S: States, StateScoped<S>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table

source§

impl<S> Component for StateTransitionEvent<S>
where S: States, StateTransitionEvent<S>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::SparseSet

source§

impl<T> Component for GpuArrayBufferIndex<T>
where T: GpuArrayBufferable, GpuArrayBufferIndex<T>: Send + Sync + 'static,

source§

const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table