Expand description
Re-exports§
pub use scroll_view::ScrollViewBuilder;pub use scroll_view::ScrollView;pub use scroll_view::ScrollConfig;pub use scroll_view::ScrollDirection;pub use scroll_view::ScrollViewPlugin;pub use scroll_view::scroll_view;pub use relationships::BelongsToDialog;pub use relationships::DialogElements;pub use relationships::SliderPart;pub use relationships::SliderParts;pub use relationships::BelongsToForm;pub use relationships::FormFields;pub use relationships::InButtonGroup;pub use relationships::ButtonGroupMembers;pub use relationships::PanelContent;pub use relationships::PanelContents;pub use relationships::TextInputPart;pub use relationships::TextInputParts;pub use relationships::ProgressBarPart;pub use relationships::ProgressBarParts;pub use relationships::UIRelationshipsPlugin;pub use button::ButtonBuilder;pub use button::StyledButton;pub use slider::SliderBuilder;pub use slider::SliderBuilderWithMarker;pub use slider::Slider;pub use slider::SliderHandle;pub use slider::SliderTrack;pub use slider::ValueFormat;pub use form::FormBuilder;pub use form::FieldType;pub use form::ValidationRule;pub use dialog::DialogBuilder;pub use dialog::DialogButtonEvent;pub use dialog::DialogType;pub use dialog::DialogOverlay;pub use dialog::DialogButtonMarker;pub use dialog::ConfirmButton;pub use dialog::CancelButton;pub use dialog::SaveButton;pub use dialog::DiscardButton;pub use dialog::OkButton;pub use dialog::YesButton;pub use dialog::NoButton;pub use dialog::ExitConfirmationDialog;pub use dialog::UnsavedChangesDialog;pub use dialog::ResolutionDialog;pub use dialog::ErrorDialog;pub use dialog::InfoDialog;pub use dialog::WarningDialog;pub use dialog::SuccessDialog;pub use text_input::TextInputBuilder;pub use text_input::InputFilter;pub use text_input::InputTransform;pub use text_input::FocusGroupId;pub use text_input::text_input;pub use progress::ProgressBarBuilder;pub use progress::ProgressBar;pub use progress::ProgressBarStyle;pub use progress::progress;pub use label::LabelBuilder;pub use label::Label;pub use label::LabelStyle;pub use label::label;pub use panel::PanelBuilder;pub use panel::Panel;pub use panel::PanelStyle;pub use panel::panel;pub use separator::SeparatorBuilder;pub use separator::Separator;pub use separator::SeparatorStyle;pub use separator::Orientation;pub use separator::separator;
Modules§
- adaptors
- Adaptors used by the Curve API for transforming and combining curves together.
- button
- Button module - Gateway only
- colors
- Color constants and utilities for consistent theming
- cores
- Core data structures to be used internally in Curve implementations, encapsulating storage and access patterns for reuse.
- derivatives
- This module holds traits related to extracting derivatives from curves. In
applications, the derivatives of interest are chiefly the first and second;
in this module, these are provided by the traits
CurveWithDerivativeandCurveWithTwoDerivatives. - dialog
- Dialog module - Gateway only
- dimensions
- Dimension constants for consistent spacing and sizing
- easing
- Module containing different easing functions to control the transition between two values and
the
EasingCurvestruct to make use of them. - form
- Form module - PURE GATEWAY (exports only)
- interval
- The
Intervaltype for nonempty intervals used by theCurvetrait. - iterable
- Iterable curves, which sample in the form of an iterator in order to support
Vec-like output whose length cannot be known statically. - label
- Label module - Gateway only
- light_
consts - Constants for operating with the light units: lumens, and lux.
- ops
- This mod re-exports the correct versions of floating-point operations with
unspecified precision in the standard library depending on whether the
libmcrate feature is enabled. - panel
- Panel module - Gateway only
- prelude
- Prelude module for convenient imports
- progress
- Progress bar module - Gateway only
- relationships
- Custom UI relationships for Bevy 0.16
- sample_
curves - Sample-interpolated curves constructed using the
CurveAPI. - scroll_
view - ScrollView module - Gateway only
- separator
- Separator module - Gateway only
- slider
- Slider module - Gateway only
- text_
input - Text input module - Gateway only
- vec
- A contiguous growable array type with heap-allocated contents, written
Vec<T>.
Macros§
- children
- Returns a
SpawnRelatedBundlethat will insert theChildrencomponent, spawn aSpawnableListof entities with given bundles that relate to theChildrenentity via theChildOfcomponent, and reserve space in theChildrenfor each spawned entity. - debug
- Constructs an event at the debug level.
- debug_
once - Call
debug!once per call site. - debug_
span - Constructs a span at the debug level.
- error
- Constructs an event at the error level.
- error_
once - Call
error!once per call site. - error_
span - Constructs a span at the error level.
- format
- Creates a
Stringusing interpolation of runtime expressions. - info
- Constructs an event at the info level.
- info_
once - Call
info!once per call site. - info_
span - Constructs a span at the info level.
- once
- Call some expression only once per call site.
- related
- Returns a
SpawnRelatedBundlethat will insert the givenRelationshipTarget, spawn aSpawnableListof entities with given bundles that relate to theRelationshipTargetentity via theRelationshipTarget::Relationshipcomponent, and reserve space in theRelationshipTargetfor each spawned entity. - trace
- Constructs an event at the trace level.
- trace_
once - Call
trace!once per call site. - trace_
span - Constructs a span at the trace level.
- vec
- Creates a
Veccontaining the arguments. - warn
- Constructs an event at the warn level.
- warn_
once - Call
warn!once per call site. - warn_
span - Constructs a span at the warn level.
Structs§
- Aabb
Gizmo Config Group - The
GizmoConfigGroupused for debug visualizations ofAabbcomponents on entities - Added
- A filter on a component that only retains results the first time after they have been added.
- Ambient
Light - An ambient light, which lights the entire scene equally.
- Animatable
Curve - This type allows the conversion of a curve valued in the property type of an
AnimatablePropertyinto anAnimationCurvewhich animates that property. - Animatable
Curve Evaluator - An
AnimatableCurveEvaluatorforAnimatablePropertyinstances. - Animatable
Keyframe Curve - A curve defined by keyframes with values in an animatable type.
- Animated
Field - A
Componentfield that can be animated, defined by a function that reads the component and returns the accessed field / property. - Animation
Clip - A list of
VariableCurves and theAnimationTargetIds to which they apply. - Animation
Graph - A graph structure that describes how animation clips are to be blended together.
- Animation
Graph Asset Loader - An
AssetLoaderthat can loadAnimationGraphs as assets. - Animation
Graph Handle - A
Handleto theAnimationGraphto be used by theAnimationPlayeron the same entity. - Animation
Graph Node - An individual node within an animation graph.
- Animation
Player - Animation controls.
- Animation
Plugin - Adds animation support to an app
- Animation
Transition - An animation that is being faded out as part of a transition
- Animation
Transitions - Manages fade-out of animation blend factors, allowing for smooth transitions between animations.
- Annulus
- A primitive shape formed by the region between two circles, also known as a ring.
- AnyOf
- The
AnyOfquery parameter fetches entities with any of the component types included in T. - App
Appis the primary API for writing user applications. It automates the setup of a standard lifecycle and provides interface glue for plugins.- AppType
Registry - A
ResourcestoringTypeRegistryfor type registrations relevant to a whole app. - Apply
Deferred - A special
Systemthat instructs the executor to callSystem::apply_deferredon the systems that have run but not applied theirDeferredsystem parameters (likeCommands) or other system buffers. - Arc2d
- A primitive representing an arc between two points on a circle.
- Asset
Changed - Filter that selects entities with an
Afor an asset that changed after the system last ran, whereAis a component that implementsAsAssetId. - Asset
Plugin - Provides “asset” loading and processing functionality. An
Assetis a “runtime value” that is loaded from anAssetSource, which can be something like a filesystem, a network, etc. - Asset
Server - Loads and tracks the state of
Assetvalues from a configuredAssetReader. This can be used to kick off new asset loads and retrieve their current load states. - Assets
- Stores
Assetvalues identified by theirAssetId. - Audio
Player - A component for playing a sound.
- Audio
Sink - Used to control audio during playback.
- Audio
Source - A source of audio data
- Axis
- Stores the position data of the input devices of type
T. - BVec2
- A 2-dimensional
boolvector mask. - BVec3
- A 3-dimensional
boolvector mask. - BVec4
- A 4-dimensional
boolvector mask. - BVec3A
- A 3-dimensional SIMD vector mask.
- BVec4A
- A 4-dimensional SIMD vector mask.
- Background
Color - The background color of the node
- Bevy
Error - The built in “universal” Bevy error type. This has a blanket
Fromimpl for any type that implements Rust’sError, meaning it can be used as a “catch all” error. - Blend
Input - An individual input for
Animatable::blend. - Border
Color - The border color of the UI node.
- Border
Radius - Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners or specify different radii for each corner. If a given radius exceeds half the length of the smallest dimension between the node’s height or width, the radius will calculated as half the smallest dimension.
- Border
Rect - Defines the extents of the border of a rectangle.
- Box
- A pointer type that uniquely owns a heap allocation of type
T. - BoxShadow
- List of shadows to draw for a
Node. - BoxShadow
Samples - Number of shadow samples. A larger value will result in higher quality shadows. Default is 4, values higher than ~10 offer diminishing returns.
- Boxed
Polygon - A polygon with a variable number of vertices, allocated on the heap
in a
Box<[Vec2]>. - Boxed
Polyline2d - A series of connected line segments in 2D space, allocated on the heap
in a
Box<[Vec2]>. - Boxed
Polyline3d - A series of connected line segments in 3D space, allocated on the heap
in a
Box<[Vec3]>. - Button
- Marker struct for buttons
- Button
Input - A “press-able” input of type
T. - Calculated
Clip - The calculated clip of the node
- Camera
- The defining
Componentfor camera entities, storing information about how and what to render through this camera. - Camera2d
- A 2D camera component. Enables the 2D render graph for a
Camera. - Camera3d
- A 3D camera component. Enables the main 3D render graph for a
Camera. - Cancel
- Fires when a pointer is canceled, and its current interaction state is dropped.
- Capsule2d
- A 2D capsule primitive, also known as a stadium or pill shape.
- Capsule3d
- A 3D capsule primitive centered on the origin A three-dimensional capsule is defined as a surface at a distance (radius) from a line
- Chain
Curve - The curve that results from chaining one curve with another. The second curve is effectively reparametrized so that its start is at the end of the first.
- Changed
- A filter on a component that only retains results the first time after they have been added or mutably dereferenced.
- ChildOf
- Stores the parent entity of this child entity with this component.
- Children
- Tracks which entities are children of this parent entity.
- Circle
- A circle primitive, representing the set of points some distance from the origin
- Circular
Sector - A primitive representing a circular sector: a pie slice of a circle.
- Circular
Segment - A primitive representing a circular segment: the area enclosed by the arc of a circle and its chord (the line between its endpoints).
- Clear
Color - A
Resourcethat stores the color that is used to clear the screen between frames. - Click
- Fires when a pointer sends a pointer pressed event followed by a pointer released event, with the same
targetentity for both events. - Color
Material - A 2d material that renders 2d meshes with a texture tinted by a uniform color
- Commands
- A
Commandqueue to perform structural changes to theWorld. - Computed
Node - Provides the computed size and layout properties of the node.
- Computed
Node Target - Derived information about the camera target for this UI node.
- Cone
- A cone primitive centered on the midpoint between the tip of the cone and the center of its base.
- Conical
Frustum - A conical frustum primitive. A conical frustum can be created by slicing off a section of a cone.
- Constant
Curve - A curve with a constant value over its domain.
- Continuation
Curve - The curve that results from chaining two curves.
- Convex
Polygon - A convex polygon with
Nvertices. - CubicB
Spline - A spline interpolated continuously across the nearest four control points. The curve does not necessarily pass through any of the control points.
- Cubic
Bezier - A spline composed of a single cubic Bezier curve.
- Cubic
Cardinal Spline - A spline interpolated continuously across the nearest four control points, with the position of
the curve specified at every control point and the tangents computed automatically. The associated
CubicCurvehas one segment between each pair of adjacent control points. - Cubic
Curve - A collection of
CubicSegments chained into a single parametric curve. It is aCurvewith domain[0, N], whereNis its number of segments. - Cubic
Hermite - A spline interpolated continuously between the nearest two control points, with the position and velocity of the curve specified at both control points. This curve passes through all control points, with the specified velocity which includes direction and parametric speed.
- Cubic
Nurbs - Non-uniform Rational B-Splines (NURBS) are a powerful generalization of the
CubicBSplinewhich can represent a much more diverse class of curves (like perfect circles and ellipses). - Cubic
Segment - A segment of a cubic curve, used to hold precomputed coefficients for fast interpolation.
It is a
Curvewith domain[0, 1]. - Cuboid
- A cuboid primitive, which is like a cube, except that the x, y, and z dimensions are not required to be the same.
- Cursor
Entered - An event that is sent whenever the user’s cursor enters a window.
- Cursor
Left - An event that is sent whenever the user’s cursor leaves a window.
- Cursor
Moved - An event reporting that the mouse cursor has moved inside a window.
- Curve
Reparam Curve - A curve that has been reparametrized by another curve, using that curve to transform the
sample times before sampling. Curves of this type are produced by
CurveExt::reparametrize_by_curve. - Cylinder
- A cylinder primitive centered on the origin
- Default
Gizmo Config Group - The default gizmo config group.
- Default
Picking Plugins - One plugin that contains the
PointerInputPlugin,PickingPluginand theInteractionPlugin, this is probably the plugin that will be most used. - Default
Plugins - This plugin group will add all the default plugins for a Bevy application:
- Default
UiCamera - Deferred
- A
SystemParamthat stores a buffer which gets applied to theWorldduringApplyDeferred. This is used internally byCommandsto deferWorldmutations. - Dir2
- A normalized vector pointing in a direction in 2D space
- Dir3
- A normalized vector pointing in a direction in 3D space
- Dir3A
- A normalized SIMD vector pointing in a direction in 3D space.
- Directional
Light - A Directional light.
- Distance
Fog - Configures the “classic” computer graphics distance fog effect,
in which objects appear progressively more covered in atmospheric haze the further away they are from the camera.
Affects meshes rendered via the PBR
StandardMaterial. - Drag
- Fires while the
targetentity is being dragged. - Drag
Drop - Fires when a pointer drops the
droppedentity onto thetargetentity. - DragEnd
- Fires when a pointer is dragging the
targetentity and a pointer released event is received. - Drag
Enter - Fires when a pointer dragging the
draggedentity enters thetargetentity. - Drag
Entry - Dragging state.
- Drag
Leave - Fires when a pointer dragging the
draggedentity leaves thetargetentity. - Drag
Over - Fires while the
draggedentity is being dragged over thetargetentity. - Drag
Start - Fires when the
targetentity receives a pointer pressed event followed by a pointer move event. - Dynamic
Scene - A collection of serializable resources and dynamic entities.
- Dynamic
Scene Builder - A
DynamicScenebuilder, used to build a scene from aWorldby extracting some entities and resources. - Dynamic
Scene Root - Adding this component will spawn the scene as a child of that entity.
Once it’s spawned, the entity will have a
SceneInstancecomponent. - Dynamic
Texture Atlas Builder - Helper utility to update
TextureAtlasLayouton the fly. - Easing
Curve - A
Curvethat is defined by - Ellipse
- An ellipse primitive, which is like a circle, but the width and height can be different
- Enter
Schedules - System set that runs enter schedule(s) for state
S. - Entity
- Lightweight identifier of an entity.
- Entity
Commands - A list of commands that will be run to modify an
Entity. - Entity
Mut - Provides mutable access to a single entity and all of its components.
- Entity
Ref - A read-only reference to a particular
Entityand all of its components. - Entity
World Mut - A mutable reference to a particular
Entity, and the entire world. - Environment
MapLight - A pair of cubemap textures that represent the surroundings of a specific area in space.
- Even
Core - The data core of a curve derived from evenly-spaced samples. The intention is to use this
in addition to explicit or inferred interpolation information in user-space in order to
implement curves using
domainandsample_with. - Event
Mutator - Mutably reads events of type
Tkeeping track of which events have already been read by each system allowing multiple systems to read the same events. Ideal for chains of systems that all want to modify the same events. - Event
Reader - Reads events of type
Tin order and tracks which events have already been read. - Event
Writer - Sends events of type
T. - Events
- An event collection that represents the events that occurred within the last two
Events::updatecalls. Events can be written to using anEventWriterand are typically cheaply read using anEventReader. - Exit
Schedules - System set that runs exit schedule(s) for state
S. - Extract
Schedule - Schedule which extract data from the main world and inserts it into the render world.
- Extrusion
- A 3D shape representing an extruded 2D
base_shape. - Filtered
Resources - Provides read-only access to a set of
Resources defined by the containedAccess. - Filtered
Resources Mut - Provides mutable access to a set of
Resources defined by the containedAccess. - First
- Runs first in the schedule.
- Fixed
- The fixed timestep game clock following virtual time.
- Fixed
First - Runs first in the
FixedMainschedule. - Fixed
Last - The schedule that runs last in
FixedMain - Fixed
Post Update - The schedule that runs after the
FixedUpdateschedule, for reacting to changes made in the main update logic. - Fixed
PreUpdate - The schedule that contains logic that must run before
FixedUpdate. - Fixed
Update - The schedule that contains most gameplay logic, which runs at a fixed rate rather than every render frame.
For logic that should run once per render frame, use the
Updateschedule instead. - Font
- An
Assetthat contains the data for a loaded font, if loaded as an asset. - Forever
Curve - The curve that results from repeating a curve forever.
- Function
Curve - A curve defined by a function together with a fixed domain.
- Gamepad
- Stores a connected gamepad’s metadata such as the name and its
GamepadButtonandGamepadAxis. - Gamepad
Settings - Gamepad settings component.
- Gilrs
Plugin - Plugin that provides gamepad handling to an
App. - Gizmo
- A component that draws the gizmos of a
GizmoAsset. - Gizmo
Asset - A collection of gizmos.
- Gizmo
Config - A struct that stores configuration for gizmos.
- Gizmo
Config Store - A
ResourcestoringGizmoConfigandGizmoConfigGroupstructs - Gizmo
Line Config - A struct that stores configuration for gizmos.
- Gizmos
- A
SystemParamfor drawing gizmos. - Global
Transform GlobalTransformis an affine transformation from entity-local coordinates to worldspace coordinates.- Global
Volume - Use this
Resourceto control the global volume of all audio. - GlobalZ
Index GlobalZIndexallows aNodeentity anywhere in the UI hierarchy to escape the implicit draw ordering of the UI’s layout tree and be rendered above or below other UI nodes. Nodes with aGlobalZIndexof greater than 0 will be drawn on top of nodes without aGlobalZIndexor nodes with a lowerGlobalZIndex. Nodes with aGlobalZIndexof less than 0 will be drawn below nodes without aGlobalZIndexor nodes with a greaterGlobalZIndex.- Gltf
- Representation of a loaded glTF file.
- Gltf
Extras - Additional untyped data that can be present on most glTF types at the primitive level.
- Graph
Curve - A curve that is the graph of another curve over its parameter space. Curves of this type are
produced by
CurveExt::graph. - Grid
Placement - Represents the position of a grid item in a single axis.
- Grid
Track - A
GridTrackis a Row or Column of a CSS Grid. This struct specifies what size the track should be. See below for the different “track sizing functions” you can specify. - Has
- Returns a bool that describes if an entity has the component
T. - Hover
Plugin - Hsla
- Color in Hue-Saturation-Lightness (HSL) color space with alpha. Further information on this color model can be found on Wikipedia.
- Hsva
- Color in Hue-Saturation-Value (HSV) color space with alpha. Further information on this color model can be found on Wikipedia.
- Hwba
- Color in Hue-Whiteness-Blackness (HWB) color space with alpha. Further information on this color model can be found on Wikipedia.
- IRect
- A rectangle defined by two opposite corners.
- IVec2
- A 2-dimensional vector.
- IVec3
- A 3-dimensional vector.
- IVec4
- A 4-dimensional vector.
- Image
- Image
Node - A UI Node that renders an image.
- Image
Plugin - Adds the
Imageas an asset and makes sure that they are extracted and prepared for the GPU. - In
- A
SystemInputtype which denotes that aSystemreceives an input value of typeTfrom its caller. - InMut
- A
SystemInputtype which denotes that aSystemreceives a mutable reference to a value of typeTfrom its caller. - InRef
- A
SystemInputtype which denotes that aSystemreceives a read-only reference to a value of typeTfrom its caller. - Infinite
Plane3d - An unbounded plane in 3D space. It forms a separating surface through the origin, stretching infinitely far
- Inherited
Visibility - Whether or not an entity is visible in the hierarchy.
This will not be accurate until
VisibilityPropagateruns in thePostUpdateschedule. - Interaction
Plugin - Generates
Pointerevents and handles event bubbling. - Interval
- A nonempty closed interval, possibly unbounded in either direction.
- IsDefault
UiCamera - Marker used to identify default cameras, they will have priority over the
PrimaryWindowcamera. - Isometry2d
- An isometry in two dimensions, representing a rotation followed by a translation. This can often be useful for expressing relative positions and transformations from one position to another.
- Isometry3d
- An isometry in three dimensions, representing a rotation followed by a translation. This can often be useful for expressing relative positions and transformations from one position to another.
- Laba
- Color in LAB color space, with alpha
- Last
- Runs last in the schedule.
- Layout
Config - This component can be added to any UI node to modify its layout behavior.
- Lcha
- Color in LCH color space, with alpha
- Light
Gizmo Config Group - The
GizmoConfigGroupused to configure the visualization of lights. - Light
Probe - A marker component for a light probe, which is a cuboid region that provides global illumination to all fragments inside it.
- Line2d
- An infinite line going through the origin along a direction in 2D space.
- Line3d
- An infinite line going through the origin along a direction in 3D space.
- Linear
Reparam Curve - A curve that has had its domain changed by a linear reparameterization (stretching and scaling).
Curves of this type are produced by
CurveExt::reparametrize_linear. - Linear
Rgba - Linear RGB color with alpha.
- Local
- A system local
SystemParam. - Main
- The schedule that contains the app logic that is evaluated each tick of
App::update(). - MapCurve
- A curve whose samples are defined by mapping samples from another curve through a
given function. Curves of this type are produced by
CurveExt::map. - Mat2
- A 2x2 column major matrix.
- Mat3
- A 3x3 column major matrix.
- Mat4
- A 4x4 column major matrix.
- Mat3A
- A 3x3 column major matrix.
- Material
Node - Material
Plugin - Adds the necessary ECS resources and render logic to enable rendering entities using the given
Materialasset type. - Mesh
- A 3D object made out of vertices representing triangles, lines, or points, with “attribute” values for each vertex.
- Mesh2d
- A component for 2D meshes. Requires a
MeshMaterial2dto be rendered, commonly using aColorMaterial. - Mesh3d
- A component for 3D meshes. Requires a
MeshMaterial3dto be rendered, commonly using aStandardMaterial. - Mesh
Material2d - A material used for rendering a
Mesh2d. - Mesh
Material3d - A material used for rendering a
Mesh3d. - Mesh
Picking Camera - An optional component that marks cameras that should be used in the
MeshPickingPlugin. - Mesh
Picking Plugin - Adds the mesh picking backend to your app.
- Mesh
Picking Settings - Runtime settings for the
MeshPickingPlugin. - Mesh
RayCast - Add this ray casting
SystemParamto your system to cast rays into the world with an immediate-mode API. Callcast_rayto immediately perform a ray cast and get a result. - Mesh
RayCast Settings - Settings for a ray cast.
- Minimal
Plugins - This plugin group will add the minimal plugins for a Bevy application:
- Morph
Weights - Controls the morph targets for all child
Mesh3dentities. In most cases,MorphWeightsshould be considered the “source of truth” when writing morph targets for meshes. However you can choose to write childMeshMorphWeightsif your situation requires more granularity. Just note that if you setMorphWeights, it will overwrite childMeshMorphWeightsvalues. - Move
- Fires while a pointer is moving over the
targetentity. - Mut
- Unique mutable borrow of an entity’s component or of a resource.
- Name
- Component used to identify an entity. Stores a hash for faster comparisons.
- Name
OrEntity - Convenient query for giving a human friendly name to an entity.
- Node
- The base component for UI entities. It describes UI layout and style properties.
- NonSend
- Shared borrow of a non-
Sendresource. - NonSend
Marker - A dummy type that is
!Send, to force systems to run on the main thread. - NonSend
Mut - Unique borrow of a non-
Sendresource. - Observer
- An
Observersystem. Add thisComponentto anEntityto turn it into an “observer”. - Oklaba
- Color in Oklab color space, with alpha
- Oklcha
- Color in Oklch color space, with alpha
- OnAdd
- Trigger emitted when a component is inserted onto an entity that does not already have that
component. Runs before
OnInsert. Seecrate::component::ComponentHooks::on_addfor more information. - OnEnter
- The label of a
Schedulethat only runs wheneverState<S>enters the provided state. - OnExit
- The label of a
Schedulethat only runs wheneverState<S>exits the provided state. - OnInsert
- Trigger emitted when a component is inserted, regardless of whether or not the entity already
had that component. Runs after
OnAdd, if it ran. Seecrate::component::ComponentHooks::on_insertfor more information. - OnRemove
- Trigger emitted when a component is removed from an entity, and runs before the component is
removed, so you can still access the component data.
See
crate::component::ComponentHooks::on_removefor more information. - OnReplace
- Trigger emitted when a component is inserted onto an entity that already has that component.
Runs before the value is replaced, so you can still access the original component data.
See
crate::component::ComponentHooks::on_replacefor more information. - OnTransition
- The label of a
Schedulethat only runs wheneverState<S>exits AND enters the providedexitedandenteredstates. - Or
- A filter that tests if any of the given filters apply.
- Orthographic
Projection - Project a 3D space onto a 2D surface using parallel lines, i.e., unlike
PerspectiveProjection, the size of objects remains the same regardless of their distance to the camera. - Out
- Fires when a the pointer crosses out of the bounds of the
targetentity. - Outline
- The
Outlinecomponent adds an outline outside the edge of a UI node. Outlines do not take up space in the layout. - Over
- Fires when a the pointer crosses into the bounds of the
targetentity. - Overflow
- Whether to show or hide overflowing items
- Overflow
Clip Margin - The bounds of the visible area when a UI node is clipped.
- Parallel
Commands - An alternative to
Commandsthat can be used in parallel contexts, such as those inQuery::par_iter. - Param
Set - A collection of potentially conflicting
SystemParams allowed by disjoint access. - Perspective
Projection - A 3D camera projection in which distant objects appear smaller than close objects.
- Pickable
- An optional component that marks an entity as usable by a backend, and overrides default picking behavior for an entity.
- Picking
Event Writers - A helper system param for accessing the picking event writers.
- Picking
Plugin - This plugin sets up the core picking infrastructure. It receives input events, and provides the shared types used by other picking plugins.
- Ping
Pong Curve - The curve that results from chaining a curve with its reversed version. The transition point is guaranteed to make no jump.
- Pitch
- A source of sine wave sound
- Plane2d
- An unbounded plane in 2D space. It forms a separating surface through the origin, stretching infinitely far
- Plane3d
- A bounded plane in 3D space. It forms a surface starting from the origin with a defined height and width.
- Playback
Settings - Initial settings to be used when audio starts playing.
- Point
Light - A light that emits light in all directions from a central point.
- Pointer
- Stores the common data needed for all pointer events.
- Pointer
Button State - An entry in the cache that drives the
pointer_eventssystem, storing additional data about pointer button presses. - Pointer
Input Plugin - Adds mouse and touch inputs for picking pointers to your app. This is a default input plugin, that you can replace with your own plugin as needed.
- Pointer
State - State for all pointers.
- Pointer
Traversal - A traversal query (i.e. it implements
Traversal) intended for use withPointerevents. - Pointer
Traversal Item - Automatically generated
WorldQueryitem type forPointerTraversal, returned when iterating over query results. - Polygon
- A polygon with N vertices.
- Polyline2d
- A series of connected line segments in 2D space.
- Polyline3d
- A series of connected line segments in 3D space.
- Populated
- System parameter that works very much like
Queryexcept it always contains at least one matching entity. - Post
Startup - The schedule that runs once after
Startup. - Post
Update - The schedule that contains logic that must run after
Update. For example, synchronizing “local transforms” in a hierarchy to “global” absolute transforms. This enables thePostUpdatetransform-sync system to react to “local transform” changes inUpdatewithout theUpdatesystems needing to know about (or add scheduler dependencies for) the “global transform sync system”. - PreStartup
- The schedule that runs before
Startup. - PreUpdate
- The schedule that contains logic that must run before
Update. For example, a system that reads raw keyboard input OS events into anEventsresource. This enables systems inUpdateto consume the events from theEventsresource without actually knowing about (or taking a direct scheduler dependency on) the “os-level keyboard event system”. - Pressed
- Fires when a pointer button is pressed over the
targetentity. - Quat
- A quaternion representing an orientation.
- Query
- A system parameter that provides selective access to the
Componentdata stored in aWorld. - Query
Builder - Builder struct to create
QueryStateinstances at runtime. - Query
State - Provides scoped access to a
Worldstate according to a givenQueryDataandQueryFilter. - Rational
Curve - A collection of
RationalSegments chained into a single parametric curve. It is aCurvewith domain[0, N], whereNis the number of segments. - Rational
Segment - A segment of a rational cubic curve, used to hold precomputed coefficients for fast interpolation.
It is a
Curvewith domain[0, 1]. - Ray2d
- An infinite half-line starting at
originand going indirectionin 2D space. - Ray3d
- An infinite half-line starting at
originand going indirectionin 3D space. - RayCast
Backfaces - Disables backface culling for ray casts on this entity.
- Real
- Real time clock representing elapsed wall clock time.
- Rect
- A rectangle defined by two opposite corners.
- Rectangle
- A rectangle primitive, which is like a square, except that the width and height can be different
- Ref
- Shared borrow of an entity’s component with access to change detection.
Similar to
Mutbut is immutable and so doesn’t require unique access. - Reflect
Component - A struct used to operate on reflected
Componenttrait of a type. - Reflect
Default - A struct used to provide the default value of a type.
- Reflect
Deserialize - A struct used to deserialize reflected instances of a type.
- Reflect
Freely Mutable State - A struct used to operate on the reflected
FreelyMutableStatetrait of a type. - Reflect
From Reflect - Type data that represents the
FromReflecttrait and allows it to be used dynamically. - Reflect
From World - A struct used to operate on the reflected
FromWorldtrait of a type. - Reflect
Resource - A struct used to operate on reflected
Resourceof a type. - Reflect
Serialize - A struct used to serialize reflected instances of a type.
- Reflect
State - A struct used to operate on the reflected
Statestrait of a type. - Regular
Polygon - A polygon centered on the origin where all vertices lie on a circle, equally far apart.
- Released
- Fires when a pointer button is released over the
targetentity. - Removed
Components - A
SystemParamthat yields entities that had theirTComponentremoved or have been despawned with it. - Reparam
Curve - A curve whose sample space is mapped onto that of some base curve’s before sampling.
Curves of this type are produced by
CurveExt::reparametrize. - Repeat
Curve - The curve that results from repeating a curve
Ntimes. - Repeated
Grid Track - Represents a possibly repeated
GridTrack. - Res
- Shared borrow of a
Resource. - ResMut
- Unique mutable borrow of a
Resource. - Resolved
Border Radius - Represents the resolved border radius values for a UI node.
- Reverse
Curve - The curve that results from reversing another.
- Rhombus
- A rhombus primitive, also known as a diamond shape. A four sided polygon, centered on the origin, where opposite sides are parallel but without requiring right angles.
- Rot2
- A counterclockwise 2D rotation.
- Rumble
System - Updates the running gamepad rumble effects.
- RunFixed
Main Loop - Runs the
FixedMainschedule in a loop according until all relevant elapsed time has been “consumed”. - Sample
Auto Curve - A curve that is defined by neighbor interpolation over a set of evenly-spaced samples, interpolated automatically using a particularly well-behaved interpolation.
- Sample
Curve - A curve that is defined by explicit neighbor interpolation over a set of evenly-spaced samples.
- Scene
- A composition of
Worldobjects. - Scene
Root - Adding this component will spawn the scene as a child of that entity.
Once it’s spawned, the entity will have a
SceneInstancecomponent. - Scene
Spawner - Handles spawning and despawning scenes in the world, either synchronously or batched through the
scene_spawner_system. - Schedule
- A collection of systems, and the metadata and executor needed to run them in a certain order under certain conditions.
- Schedules
- Resource that stores
Schedules mapped toScheduleLabels excluding the current runningSchedule. - Screen
Space Ambient Occlusion Plugin - Plugin for screen space ambient occlusion.
- Scroll
- Fires while a pointer is scrolling over the
targetentity. - Scroll
Position - The scroll position of the node.
- Segment2d
- A line segment defined by two endpoints in 2D space.
- Segment3d
- A line segment defined by two endpoints in 3D space.
- Serialized
Animation Graph - A version of
AnimationGraphsuitable for serializing as an asset. - Serialized
Animation Graph Node - A version of
AnimationGraphNodesuitable for serializing as an asset. - Shader
- A shader, as defined by its
ShaderSourceandShaderStageThis is an “unprocessed” shader. It can contain preprocessor directives. - Shadow
Style - Show
Aabb Gizmo - Add this
Componentto an entity to draw itsAabbcomponent. - Show
Light Gizmo - Add this
Componentto an entity to draw any of its lights components (PointLight,SpotLightandDirectionalLight). - Single
- System parameter that provides access to single entity’s components, much like
Query::single/Query::single_mut. - Spatial
Audio Sink - Used to control spatial audio during playback.
- Spatial
Listener - Settings for the listener for spatial audio sources.
- Spawn
- A wrapper over a
Bundleindicating that an entity should be spawned with thatBundle. This is intended to be used for hierarchical spawning via traits likeSpawnableListandSpawnRelated. - Spawn
Scene - The schedule that contains scene spawning.
- Sphere
- A sphere primitive, representing the set of all points some distance from the origin
- Spot
Light - A light that emits light in a given direction from a central point.
- Sprite
- Describes a sprite to be rendered to a 2D camera
- Sprite
Picking Camera - An optional component that marks cameras that should be used in the
SpritePickingPlugin. - Sprite
Picking Plugin - Enables the sprite picking backend, allowing you to click on, hover over and drag sprites.
- Sprite
Picking Settings - Runtime settings for the
SpritePickingPlugin. - Srgba
- Non-linear standard RGB with alpha.
- Standard
Material - A material with “standard” properties used in PBR lighting. Standard property values with pictures here: https://google.github.io/filament/Material%20Properties.pdf.
- Startup
- The schedule that runs once when the app starts.
- State
- A finite-state machine whose transitions have associated schedules
(
OnEnter(state)andOnExit(state)). - State
Scoped - Entities marked with this component will be removed when the world’s state of the matching type no longer matches the supplied value.
- State
Transition - Runs state transitions.
- State
Transition Event - Event sent when any state transition of
Shappens. This includes identity transitions, whereexitedandenteredhave the same value. - String
- A UTF-8–encoded, growable string.
- SubApp
- A secondary application with its own
World. These can run independently of each other. - Task
Pool Options - Helper for configuring and creating the default task pools. For end-users who want full control,
set up
TaskPoolPlugin - Task
Pool Plugin - Setup of default task pools:
AsyncComputeTaskPool,ComputeTaskPool,IoTaskPool. - Tetrahedron
- A tetrahedron primitive.
- Text
- The top-level UI text component.
- Text2d
- The top-level 2D text component.
- Text
Color - The color of the text for this section.
- Text
Font TextFontdetermines the style of a text span within aComputedTextBlock, specifically the font face, the font size, and the color.- Text
Layout - Component with text format settings for a block of text.
- Text
Shadow - Adds a shadow behind text
- Text
Span - A span of text in a tree of spans.
- Texture
Atlas - An index into a
TextureAtlasLayout, which corresponds to a specific section of a texture. - Texture
Atlas Builder - A builder which is used to create a texture atlas from many individual sprites.
- Texture
Atlas Layout - Stores a map used to lookup the position of a texture in a
TextureAtlas. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet. - Texture
Atlas Sources - Stores a mapping from sub texture handles to the related area index.
- Texture
Slice - Single texture slice, representing a texture rect to draw in a given area
- Texture
Slicer - Slices a texture using the 9-slicing technique. This allows to reuse an image at various sizes without needing to prepare multiple assets. The associated texture will be split into nine portions, so that on resize the different portions scale or tile in different ways to keep the texture in proportion.
- Threaded
Animation Graph - An acceleration structure for an animation graph that allows Bevy to evaluate it quickly.
- Threaded
Animation Graphs - Acceleration structures for animation graphs that allows Bevy to evaluate them quickly.
- Time
- A generic clock resource that tracks how much it has advanced since its previous update and since its creation.
- Timer
- Tracks elapsed time. Enters the finished state once
durationis reached. - Torus
- A torus primitive, often representing a ring or donut shape The set of points some distance from a circle centered at the origin
- Touch
Input - A touch input event.
- Touches
- A collection of
Touches. - Transform
- Describe the position of an entity. If the entity has a parent, the position is relative to its parent position.
- Transform
Helper - System parameter for computing up-to-date
GlobalTransforms. - Transform
Plugin - The base plugin for handling
Transformcomponents - Transform
Tree Changed - An optimization for transform propagation. This ZST marker component uses change detection to
mark all entities of the hierarchy as “dirty” if any of their descendants have a changed
Transform. If this component is not markedis_changed(), propagation will halt. - Transition
Schedules - System set that runs transition schedule(s) for state
S. - Triangle2d
- A triangle in 2D space
- Triangle3d
- A 3D triangle primitive.
- Trigger
- Type containing triggered
Eventinformation for a given run of anObserver. This contains theEventdata itself. If it was triggered for a specificEntity, it includes that as well. It also contains event propagation information. SeeTrigger::propagatefor more information. - URect
- A rectangle defined by two opposite corners.
- UVec2
- A 2-dimensional vector.
- UVec3
- A 3-dimensional vector.
- UVec4
- A 4-dimensional vector.
- UiBuilder
Plugin - UiMaterial
Key - UiMaterial
Plugin - Adds the necessary ECS resources and render logic to enable rendering entities using the given
UiMaterialasset type (which includesUiMaterialtypes). - UiPicking
Camera - An optional component that marks cameras that should be used in the
UiPickingPlugin. - UiPicking
Plugin - A plugin that adds picking support for UI nodes.
- UiPicking
Settings - Runtime settings for the
UiPickingPlugin. - UiRect
- A type which is commonly used to define margins, paddings and borders.
- UiScale
- The current scale of the UI.
- UiTarget
Camera - Indicates that this root
Nodeentity should be rendered to a specific camera. - Uneven
Core - The data core of a curve defined by unevenly-spaced samples or keyframes. The intention is to
use this in concert with implicitly or explicitly-defined interpolation in user-space in
order to implement the curve interface using
domainandsample_with. - Uneven
Sample Auto Curve - A curve that is defined by interpolation over unevenly spaced samples, interpolated automatically using a particularly well-behaved interpolation.
- Uneven
Sample Curve - A curve that is defined by interpolation over unevenly spaced samples with explicit interpolation.
- Update
- The schedule that contains any app logic that must run once per render frame.
For most gameplay logic, consider using
FixedUpdateinstead. - Variable
Curve - Contains an animation curve which is used to animate a property of an entity.
- Vec
- A contiguous growable array type, written as
Vec<T>, short for ‘vector’. - Vec2
- A 2-dimensional vector.
- Vec3
- A 3-dimensional vector.
- Vec4
- A 4-dimensional vector.
- Vec3A
- A 3-dimensional vector.
- View
Visibility - Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
- Virtual
- The virtual game clock representing game time.
- Weights
Curve - This type allows an
IterableCurvevalued inf32to be used as anAnimationCurvethat animates morph weights. - Window
- The defining
Componentfor window entities, storing information about how it should appear and behave. - Window
Moved - An event that is sent when a window is repositioned in physical pixels.
- Window
Plugin - A
Pluginthat defines an interface for windowing support in Bevy. - Window
Resize Constraints - The size limits on a
Window. - With
- Filter that selects entities with a component
T. - Without
- Filter that selects entities without a component
T. - World
- Stores and exposes operations on entities, components, resources, and their associated metadata.
- Xyza
- CIE 1931 color space, also known as XYZ, with an alpha channel.
- ZIndex
- Indicates that this
Nodeentity’s front-to-back ordering is not controlled solely by its location in the UI hierarchy. A node with a higher z-index will appear on top of sibling nodes with a lower z-index. - ZipCurve
- A curve that combines the output data from two constituent curves into a tuple output. Curves
of this type are produced by
CurveExt::zip.
Enums§
- Align
Content - Used to control how items are distributed.
- Align
Items - Used to control how each individual item is aligned by default within the space they’re given.
- Align
Self - Used to control how the specified item is aligned within the space it’s given.
- Alpha
Mode - Sets how a material’s base color alpha channel is used for transparency.
- Animation
Graph Load Error - Various errors that can occur when serializing or deserializing animation graphs to and from RON, respectively.
- Animation
Node Type - Animation node data specific to the type of node (clip, blend, or add).
- AppExit
- An event that indicates the
Appshould exit. If one or more of these are present at the end of an update, the runner will end and (maybe) return control to the caller. - Asset
Event - Events that occur for a specific loaded
Asset, such as “value changed” events and “dependency” events. - AssetId
- A unique runtime-only identifier for an
Asset. This is cheap toCopy/Cloneand is not directly tied to the lifetime of the Asset. This means it can point to anAssetthat no longer exists. - Asset
Mode - Controls whether or not assets are pre-processed before being loaded.
- BoxSizing
- Which part of a Node’s box length styles like width and height control
- Button
Size - Button size variants
- Button
Style - Button style variants for consistent theming
- Chain
Error - An error indicating that an end-to-end composition couldn’t be performed because of malformed inputs.
- Clear
Color Config - For a camera, specifies the color used to clear the viewport before rendering.
- Color
- An enumerated type that can represent any of the color types in this crate.
- Convex
Polygon Error - An error that happens when creating a
ConvexPolygon. - Cubic
Nurbs Error - Error during construction of
CubicNurbs - Display
- Defines the layout model used by this node.
- Ease
Function - Curve functions over the unit interval, commonly used for easing transitions.
- Euler
Rot - Euler rotation sequences.
- Evaluator
Id - The
EvaluatorIdis used to look up theAnimationCurveEvaluatorfor anAnimatableProperty. For a given animated property, this ID should always be the same to allow things like animation blending to occur. - File
Drag AndDrop - Events related to files being dragged and dropped on a window.
- Flex
Direction - Defines how flexbox items are ordered within a flexbox
- Flex
Wrap - Defines if flexbox items appear on a single line or on multiple lines
- FogFalloff
- Allows switching between different fog falloff modes, and configuring their parameters.
- Gamepad
Axis - Represents gamepad input types that are mapped in the range [-1.0, 1.0].
- Gamepad
Button - Represents gamepad input types that are mapped in the range [0.0, 1.0].
- Gizmo
Line Joint - An enum configuring how line joints will be drawn.
- Gizmo
Line Style - An enum used to configure the style of gizmo lines, similar to CSS line-style
- Gltf
Asset Label - Labels that can be used to load part of a glTF
- Grid
Auto Flow - Controls whether grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used.
- Grid
Placement Error - Errors that occur when setting constraints for a
GridPlacement - Grid
Track Repetition - How many times to repeat a repeated grid track
- Handle
- A handle to a specific
Assetof typeA. Handles act as abstract “references” to assets, whose data are stored in theAssets<A>resource, avoiding the need to store multiple copies of the same data. - HexColor
Error - Error returned if a hex string could not be parsed as a color.
- Image
Format - Ime
- An Input Method Editor event.
- Interaction
- Describes what type of input interaction has occurred for a UI node.
- JumpAt
- Configuration options for the
EaseFunction::Stepscurves. This closely replicates the CSS step function specification. - Justify
Content - Used to control how items are distributed.
- Justify
Items - Used to control how each individual item is aligned by default within the space they’re given.
- Justify
Self - Used to control how the specified item is aligned within the space it’s given.
- Justify
Text - Describes the horizontal alignment of multiple lines of text relative to each other.
- KeyCode
- The key code of a
KeyboardInput. - Light
Gizmo Color - Configures how a color is attributed to a light gizmo.
- Line
Break - Determines how lines will be broken when preventing text from running out of bounds.
- Linear
Reparam Error - An error indicating that a linear reparameterization couldn’t be performed because of malformed inputs.
- MaxTrack
Sizing Function - MinTrack
Sizing Function - Monitor
Selection - References a screen monitor.
- Mouse
Button - A button on a mouse device.
- Msaa
- Component for configuring the number of samples for Multi-Sample Anti-Aliasing
for a
Camera. - Next
State - The next state of
State<S>. - Node
Image Mode - Controls how the image is altered to fit within the layout and how the layout algorithm determines the space in the layout for the image
- Overflow
Axis - Whether to show or hide overflowing items
- Overflow
Clip Box - Used to determine the bounds of the visible area when a UI node is clipped.
- Parallax
Mapping Method - The parallax mapping method to use to compute depth based on the
material’s
depth_map. - Ping
Pong Error - An error indicating that a ping ponging of a curve couldn’t be performed because of malformed inputs.
- Pointer
Button - The button that was just pressed or released
- Position
Type - The strategy used to position this node
- Projection
- Component that defines how to compute a
Camera’s projection matrix. - RayCast
Visibility - How a ray cast should handle
Visibility. - Repeat
Error - An error indicating that a repetition of a curve couldn’t be performed because of malformed inputs.
- Resampling
Error - An error indicating that a resampling operation could not be performed because of malformed inputs.
- Reverse
Error - An error indicating that a reversion of a curve couldn’t be performed because of malformed inputs.
- RunFixed
Main Loop System - Set enum for the systems that want to run inside
RunFixedMainLoop, but before or after the fixed update logic. Systems in this set will run exactly once per frame, regardless of the number of fixed updates. They will also run under a variable timestep. - Scaling
Mode - Represents various modes for proportional scaling of a texture.
- Scene
Filter - A filter used to control which types can be added to a
DynamicScene. - Serialized
Animation Clip - A version of
Handle<AnimationClip>suitable for serializing as an asset. - Serialized
Animation Node Type - A version of
AnimationNodeTypesuitable for serializing as part of aSerializedAnimationGraphNodeasset. - Slice
Scale Mode - Defines how a texture slice scales when resized
- Sprite
Image Mode - Controls how the image is altered when scaled.
- Sprite
Picking Mode - How should the
SpritePickingPluginhandle picking and how should it handle transparent pixels - Text
Error - Errors related to the textsystem
- Texture
Error - An error that occurs when loading a texture.
- Timer
Mode - Specifies
Timerbehavior. - Torus
Kind - The type of torus determined by the minor and major radii
- Transform
System - Set enum for the systems relating to transform propagation
- UiAnti
Alias - Marker for controlling whether Ui is rendered with or without anti-aliasing in a camera. By default, Ui is always anti-aliased.
- Untyped
Handle - An untyped variant of
Handle, which internally stores theAssettype information at runtime as aTypeIdinstead of encoding it in the compile-time type. This allows handles acrossAssettypes to be stored together and compared. - Val
- Represents the possible value types for layout properties.
- ValArithmetic
Error - ValParse
Error - Video
Mode Selection - References an exclusive fullscreen video mode.
- Visibility
- User indication of whether an entity is visible. Propagates down the entity hierarchy.
- Winding
Order - The winding order for a set of points
- Window
Position - Defines where a
Windowshould be placed on the screen.
Constants§
- apply_
deferred Deprecated - See
ApplyDeferred.
Traits§
- Alpha
- Methods for manipulating alpha values.
- Animatable
- An animatable value type.
- Animatable
Property - A trait for exposing a value in an entity so that it can be animated.
- Animation
Compatible Curve - This trait collects the additional requirements on top of
Curve<T>needed for a curve to be used as anAnimationCurve. - Animation
Curve - A low-level trait that provides control over how curves are actually applied to entities by the animation system.
- Animation
Curve Evaluator - A low-level trait for use in
crate::VariableCurvethat provides fine control over how animations are evaluated. - AppExt
States - State installation methods for
AppandSubApp. - AppGizmo
Builder - A extension trait adding
App::init_gizmo_groupandApp::insert_gizmo_config. - Asset
- Declares that this type is an asset,
which can be loaded and managed by the
AssetServerand stored inAssetscollections. - Asset
App - Adds asset-related builder methods to
App. - Audio
Sink Playback - Common interactions with an audio sink.
- Build
Children Transform Ext - Collection of methods similar to the built-in parenting methods on
EntityWorldMutandEntityCommands, but preserving each entity’sGlobalTransform. - Bundle
- The
Bundletrait enables insertion and removal ofComponents from an entity. - Color
ToComponents - Trait with methods for converting colors to non-color types
- Color
ToPacked - Trait with methods for converting colors to packed non-color types
- Command
- A
Worldmutation. - Commands
States Ext - Extension trait for
Commandsaddingbevy_statehelpers. - Component
- A data type that can be used to store data for an entity.
- Computed
States - A state whose value is automatically computed based on the values of other
States. - Condition
- A system that determines if one or more scheduled systems should run.
- Contains
Entity - A trait for types that contain an
Entity. - Cubic
Generator - Implement this on cubic splines that can generate a cubic curve from their spline parameters.
- Curve
- A trait for a type that can represent values of type
Tparametrized over a fixed interval. - Curve
Ext - Extension trait implemented by curves, allowing access to a number of adaptors and convenience methods.
- Curve
Resample Ext - Extension trait implemented by curves, allowing access to generic resampling methods as well as those based on stable interpolation.
- Cyclic
Cubic Generator - Implement this on cubic splines that can generate a cyclic cubic curve from their spline parameters.
- Decodable
- A type implementing this trait can be converted to a
rodio::Sourcetype. - Detect
Changes - Types that can read change detection information.
This change detection is controlled by
DetectChangesMuttypes such asResMut. - Detect
Changes Mut - Types that implement reliable change detection.
- Direct
Asset Access Ext - An extension trait for methods for working with assets directly from a
World. - Ease
- A type whose values can be eased between.
- Entity
Command - A command which gets executed for a given
Entity. - Entity
Mapper - An implementor of this trait knows how to map an
Entityinto anotherEntity. - Event
- Something that “happens” and might be read / observed by app logic.
- Float
Ext - A trait for extending
f32andf64with extra methods. - From
Reflect - A trait that enables types to be dynamically constructed from reflected data.
- FromRng
- Ergonomics trait for a type with a
Standarddistribution, allowing values to be generated uniformly from anRngby a method in its own namespace. - From
World - Creates an instance of the type this trait is implemented for
using data from the supplied
World. - GetField
- A convenience trait which combines fetching and downcasting of struct fields.
- GetPath
- A trait which allows nested
Reflectvalues to be retrieved with path strings. - GetTuple
Struct Field - A convenience trait which combines fetching and downcasting of tuple struct fields.
- Gizmo
Config Group - A trait used to create gizmo configs groups.
- Gizmo
Primitive2d - A trait for rendering 2D geometric primitives (
P) withGizmoBuffer. - Gizmo
Primitive3d - A trait for rendering 3D geometric primitives (
P) withGizmoBuffer. - Gray
- Trait for returning a grayscale color of a provided lightness.
- Hue
- Trait for manipulating the hue of a color.
- Into
Schedule Configs - Types that can convert into a
ScheduleConfigs. - Into
System - Conversion trait to turn something into a
System. - Into
System Set - Types that can be converted into a
SystemSet. - Luminance
- Methods for changing the luminance of a color. Note that these methods are not guaranteed to produce consistent results across color spaces, but will be within a given space.
- Material
- Materials are used alongside
MaterialPlugin,Mesh3d, andMeshMaterial3dto spawn entities that are rendered with a specificMaterialtype. They serve as an easy to use high level way to renderMesh3dentities with custom shader logic. - Measured2d
- A trait for getting measurements of 2D shapes
- Measured3d
- A trait for getting measurements of 3D shapes
- Mesh
Builder - A trait used to build
Meshes from a configuration - Meshable
- A trait for shapes that can be turned into a
Mesh. - Mix
- Linear interpolation of two colors within a given color space.
- Partial
Reflect - The foundational trait of
bevy_reflect, used for accessing and modifying data dynamically. - Plugin
- A collection of Bevy app logic and configuration.
- Plugin
Group - Combines multiple
Plugins into a single unit. - Primitive2d
- A marker trait for 2D primitives
- Primitive3d
- A marker trait for 3D primitives
- Rational
Generator - Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.
- Read
Only System Systemtypes that do not modify theWorldwhen run. This is implemented for any systems whose parameters all implementReadOnlySystemParam.- Reflect
- A core trait of
bevy_reflect, used for downcasting to concrete types. - Reflect
Path - Something that can be interpreted as a reflection path in
GetPath. - Relationship
Target - A
Componentcontaining the collection of entities that relate to thisEntityvia the associatedRelationshiptype. See theRelationshipdocumentation for more information. - Resource
- A type that can be inserted into a
Worldas a singleton. - Saturation
- Trait for manipulating the saturation of a color.
- Shape
Sample - Exposes methods to uniformly sample a variety of primitive shapes.
- Spawn
Related RelationshipTargetmethods that create aBundlewith aDynamicBundle::Effectthat:- Stable
Interpolate - A type with a natural interpolation that provides strong subdivision guarantees.
- State
Scoped Events AppExt - Extension trait for
Appadding methods for registering state scoped events. - State
Set - A
Statestype or tuple of types which implementStates. - States
- Types that can define world-wide states in a finite-state machine.
- Struct
- A trait used to power struct-like operations via reflection.
- SubStates
- A sub-state is a state that exists only when the source state meet certain conditions,
but unlike
ComputedStates- while they exist they can be manually modified. - System
- An ECS system that can be added to a
Schedule - System
Input - Trait for types that can be used as input to
Systems. - System
Param Builder - A builder that can create a
SystemParam. - System
Param Function - A trait implemented for all functions that can be used as
Systems. - System
Set - Types that identify logical groups of systems.
- ToOwned
- A generalization of
Cloneto borrowed data. - ToString
- A trait for converting a value to a
String. - Transform
Point - A trait for point transformation methods.
- Tuple
Struct - A trait used to power tuple struct-like operations via reflection.
- Type
Path - A static accessor to type paths and names.
- UiMaterial
- Materials are used alongside
UiMaterialPluginandMaterialNodeto spawn entities that are rendered with a specificUiMaterialtype. They serve as an easy to use high level way to renderNodeentities with custom shader logic. - Vec2
Swizzles - Vec3
Swizzles - Vec4
Swizzles - _
Functions§
- advance_
transitions - A system that alters the weight of currently-playing transitions based on the current time and decline amount.
- any_
component_ removed - A
Condition-satisfying system that returnstrueif there are any entity with a component of the given type removed. - any_
match_ filter - A
Condition-satisfying system that returnstrueif there are any entities that match the givenQueryFilter. - any_
with_ component - A
Condition-satisfying system that returnstrueif there are any entities with the given component type. - bvec2
- Creates a 2-dimensional
boolvector mask. - bvec3
- Creates a 3-dimensional
boolvector mask. - bvec4
- Creates a 4-dimensional
boolvector mask. - bvec3a
- Creates a 3-dimensional
boolvector mask. - bvec4a
- Creates a 4-dimensional
boolvector mask. - condition_
changed - Generates a
Conditionthat returns true when the passed one changes. - condition_
changed_ to - Generates a
Conditionthat returns true when the result of the passed one went from false to true since the last time this was called. - default
- An ergonomic abbreviation for
Default::default()to make initializing structs easier. - despawn_
entities - Generic system to despawn all entities with a specific component.
- despawn_
ui_ entities - Convenience alias for UI-specific cleanup.
- expire_
completed_ transitions - A system that removed transitions that have completed from the
AnimationTransitionsobject. - in_
state - Generates a
Condition-satisfying closure that returnstrueif the state machine is currently instate. - interpolate_
with_ cubic_ bezier - Evaluates a cubic Bézier curve at a value
t, given two endpoints and the derivatives at those endpoints. - interval
- Create an
Intervalwith a givenstartandend. Alias ofInterval::new. - ivec2
- Creates a 2-dimensional vector.
- ivec3
- Creates a 3-dimensional vector.
- ivec4
- Creates a 4-dimensional vector.
- last_
transition - Returns the latest state transition event of type
S, if any are available. - mat2
- Creates a 2x2 matrix from two column vectors.
- mat3
- Creates a 3x3 matrix from three column vectors.
- mat4
- Creates a 4x4 matrix from four column vectors.
- mat3a
- Creates a 3x3 matrix from three column vectors.
- not
- Generates a
Conditionthat inverses the result of passed one. - on_
event - A
Condition-satisfying system that returnstrueif there are any new events of the given type since it was last called. - pointer_
events - Dispatches interaction events to the target entities.
- quat
- Creates a quaternion from
x,y,zandwvalues. - resource_
added - A
Condition-satisfying system that returnstrueif the resource of the given type has been added since the condition was last checked. - resource_
changed - A
Condition-satisfying system that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - resource_
changed_ or_ removed - A
Condition-satisfying system that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - resource_
equals - Generates a
Condition-satisfying closure that returnstrueif the resource is equal tovalue. - resource_
exists - A
Condition-satisfying system that returnstrueif the resource exists. - resource_
exists_ and_ changed - A
Condition-satisfying system that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - resource_
exists_ and_ equals - Generates a
Condition-satisfying closure that returnstrueif the resource exists and is equal tovalue. - resource_
removed - A
Condition-satisfying system that returnstrueif the resource of the given type has been removed since the condition was last checked. - run_
once - A
Condition-satisfying system that returnstrueon the first time the condition is run and false every time after. - state_
changed - A
Condition-satisfying system that returnstrueif the state machine changed state. - state_
exists - A
Condition-satisfying system that returnstrueif the state machine exists. - uvec2
- Creates a 2-dimensional vector.
- uvec3
- Creates a 3-dimensional vector.
- uvec4
- Creates a 4-dimensional vector.
- vec2
- Creates a 2-dimensional vector.
- vec3
- Creates a 3-dimensional vector.
- vec4
- Creates a 4-dimensional vector.
- vec3a
- Creates a 3-dimensional vector.
Type Aliases§
- Animation
DiGraph - A type alias for the
petgraphdata structure that defines the animation graph. - Animation
Mask - The type of an animation mask bitfield.
- Animation
Node Index - The index of either an animation or blend node in the animation graph.
- Child
Spawner - A type alias over
RelatedSpawnerused to spawn child entities containing aChildOfrelationship. - Child
Spawner Commands - A type alias over
RelatedSpawnerCommandsused to spawn child entities containing aChildOfrelationship. - Result
- A result type for use in fallible systems, commands and observers.
- System
In - Shorthand way to get the
System::Infor aSystemas aSystemInput::Inner. - Text2d
Reader - 2d alias for
TextReader. - Text2d
Writer - 2d alias for
TextWriter. - Text
UiReader - UI alias for
TextReader. - Text
UiWriter - UI alias for
TextWriter.
Attribute Macros§
- bevy_
main - reflect_
trait - A macro that automatically generates type data for traits, which their implementors can then register.
Derive Macros§
- Asset
- Bundle
- Component
- Deref
- Implements
Dereffor structs. This is especially useful when utilizing the newtype pattern. - Deref
Mut - Implements
DerefMutfor structs. This is especially useful when utilizing the newtype pattern. - Event
- From
Reflect - Derives the
FromReflecttrait. - From
World - Gizmo
Config Group - Implements the
GizmoConfigGrouptrait for a gizmo config group type. - Reflect
- The main derive macro used by
bevy_reflectfor deriving itsReflecttrait. - Resource
- States
- SubStates
- System
Set - Derive macro generating an impl of the trait
SystemSet. - Type
Path - Derives the
TypePathtrait, providing a stable alternative to [std::any::type_name].