bevy/examples/animation
Tim 3da0ef048e
Remove the Component trait implementation from Handle (#15796)
# Objective

- Closes #15716
- Closes #15718

## Solution

- Replace `Handle<MeshletMesh>` with a new `MeshletMesh3d` component
- As expected there were some random things that needed fixing:
- A couple tests were storing handles just to prevent them from being
dropped I believe, which seems to have been unnecessary in some.
- The `SpriteBundle` still had a `Handle<Image>` field. I've removed
this.
- Tests in `bevy_sprite` incorrectly added a `Handle<Image>` field
outside of the `Sprite` component.
- A few examples were still inserting `Handle`s, switched those to their
corresponding wrappers.
- 2 examples that were still querying for `Handle<Image>` were changed
to query `Sprite`

## Testing

- I've verified that the changed example work now

## Migration Guide

`Handle` can no longer be used as a `Component`. All existing Bevy types
using this pattern have been wrapped in their own semantically
meaningful type. You should do the same for any custom `Handle`
components your project needs.

The `Handle<MeshletMesh>` component is now `MeshletMesh3d`.

The `WithMeshletMesh` type alias has been removed. Use
`With<MeshletMesh3d>` instead.
2024-10-09 21:10:01 +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 Rename TextBlock to TextLayout (#15797) 2024-10-09 20:58:27 +00:00
animation_events.rs Text rework (#15591) 2024-10-09 18:35:36 +00:00
animation_graph.rs Rename TextBlock to TextLayout (#15797) 2024-10-09 20:58:27 +00:00
animation_masks.rs Rename TextBlock to TextLayout (#15797) 2024-10-09 20:58:27 +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 Remove the Component trait implementation from Handle (#15796) 2024-10-09 21:10:01 +00:00
easing_functions.rs Text rework (#15591) 2024-10-09 18:35:36 +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