bevy/examples/2d
Andrew 24e8e67b91
text2d example: animate_scale no longer unnecessarily performs the same translation at each Update (#11936)
# Objective

- The `transform.translation` of a `TextBundle` in this example is
unnecessarily set to the same constant position over and over in each
`Update`. Newbies might be confused as to why this translation is being
performed over and over.

## Solution

- perform the translation only once, when the `Text2dBundle` is
instantiated
2024-02-19 00:38:49 +00:00
..
2d_gizmos.rs Dedicated primitive example (#11697) 2024-02-14 16:55:44 +00:00
2d_shapes.rs Un-hardcode positions and colors in 2d_shapes example (#11867) 2024-02-14 23:36:18 +00:00
2d_viewport_to_world.rs Add example for Camera::viewport_to_world (#7179) 2023-09-11 18:52:11 +00:00
bloom_2d.rs Deprecate shapes in bevy_render::mesh::shape (#11773) 2024-02-08 18:01:34 +00:00
bounding_2d.rs Add example for bounding volumes and intersection tests (#11666) 2024-02-03 17:11:01 +00:00
custom_gltf_vertex_attribute.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
mesh2d.rs Deprecate shapes in bevy_render::mesh::shape (#11773) 2024-02-08 18:01:34 +00:00
mesh2d_manual.rs Mesh insert indices (#11745) 2024-02-06 23:31:48 +00:00
mesh2d_vertex_color_texture.rs Deprecate shapes in bevy_render::mesh::shape (#11773) 2024-02-08 18:01:34 +00:00
move_sprite.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
pixel_grid_snap.rs Deprecate shapes in bevy_render::mesh::shape (#11773) 2024-02-08 18:01:34 +00:00
rotation.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
sprite.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
sprite_flipping.rs Update color and naming for consistency (#10367) 2023-11-04 02:09:23 +00:00
sprite_sheet.rs Call a TextureAtlasLayout a layout and not an atlas (#11783) 2024-02-13 16:08:03 +00:00
sprite_slice.rs Optional ImageScaleMode (#11780) 2024-02-09 20:36:32 +00:00
sprite_tile.rs Optional ImageScaleMode (#11780) 2024-02-09 20:36:32 +00:00
text2d.rs text2d example: animate_scale no longer unnecessarily performs the same translation at each Update (#11936) 2024-02-19 00:38:49 +00:00
texture_atlas.rs Call a TextureAtlasLayout a layout and not an atlas (#11783) 2024-02-13 16:08:03 +00:00
transparency_2d.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00