bevy/examples/animation
Emerson Coskey 7d40e3ec87
Migrate bevy_sprite to required components (#15489)
# Objective

Continue migration of bevy APIs to required components, following
guidance of https://hackmd.io/@bevy/required_components/

## Solution

- Make `Sprite` require `Transform` and `Visibility` and
`SyncToRenderWorld`
- move image and texture atlas handles into `Sprite`
- deprecate `SpriteBundle`
- remove engine uses of `SpriteBundle`

## Testing

ran cargo tests on bevy_sprite and tested several sprite examples.

---

## Migration Guide

Replace all uses of `SpriteBundle` with `Sprite`. There are several new
convenience constructors: `Sprite::from_image`,
`Sprite::from_atlas_image`, `Sprite::from_color`.

WARNING: use of `Handle<Image>` and `TextureAtlas` as components on
sprite entities will NO LONGER WORK. Use the fields on `Sprite` instead.
I would have removed the `Component` impls from `TextureAtlas` and
`Handle<Image>` except it is still used within ui. We should fix this
moving forward with the migration.
2024-10-09 16:17:26 +00:00
..
animated_fox.rs Rename App/World::observe to add_observer, EntityWorldMut::observe_entity to observe. (#15754) 2024-10-09 15:39:29 +00:00
animated_transform.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animated_ui.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_events.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_graph.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
animation_masks.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00
color_animation.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
custom_skinned_mesh.rs Vary transforms for custom_skinned_mesh example (#15710) 2024-10-08 12:37:46 +00:00
eased_motion.rs Simplified easing curves (#15711) 2024-10-08 19:45:13 +00:00
easing_functions.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
gltf_skinned_mesh.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
morph_targets.rs Replace Handle<AnimationGraph> component with a wrapper (#15742) 2024-10-08 22:41:24 +00:00