Expand description
Provides 2D sprite functionality.
Modules§
- prelude
- The sprite prelude.
Structs§
- Anchor
- Normalized (relative to its size) offset of a 2d renderable entity from its
Transform
. - Border
Rect - Defines the extents of the border of a rectangle.
- Sprite
- Describes a sprite to be rendered to a 2D camera
- Sprite
Picking Camera bevy_sprite_picking_backend
- An optional component that marks cameras that should be used in the
SpritePickingPlugin
. - Sprite
Picking Plugin bevy_sprite_picking_backend
- Enables the sprite picking backend, allowing you to click on, hover over and drag sprites.
- Sprite
Picking Settings bevy_sprite_picking_backend
- Runtime settings for the
SpritePickingPlugin
. - Sprite
Plugin - Adds support for 2D sprites.
- Text2d
bevy_text
- The top-level 2D text component.
- Text2d
Shadow bevy_text
- Adds a shadow behind
Text2d
text - 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.
Enums§
- Scaling
Mode - Represents various modes for proportional scaling of a texture.
- 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 bevy_sprite_picking_backend
- How should the
SpritePickingPlugin
handle picking and how should it handle transparent pixels - Sprite
Systems - System set for sprite rendering.
Functions§
- calculate_
bounds_ 2d - System calculating and inserting an
Aabb
component to entities with either: - calculate_
bounds_ text2d bevy_text
- System calculating and inserting an
Aabb
component to entities with someTextLayoutInfo
andAnchor
components, and without aNoFrustumCulling
component. - update_
text2d_ layout bevy_text
- Updates the layout and size information whenever the text or style is changed.
This information is computed by the
TextPipeline
on insertion, then stored.
Type Aliases§
- Sprite
System Deprecated - Deprecated alias for
SpriteSystems
. - Text2d
Reader bevy_text
- 2d alias for
TextReader
. - Text2d
Writer bevy_text
- 2d alias for
TextWriter
.