bevy/examples/asset
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
..
files Add example for using .meta files (#12882) 2024-04-08 17:10:56 +00:00
processing bevy_asset: Improve NestedLoader API (#15509) 2024-10-01 14:14:04 +00:00
alter_mesh.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
alter_sprite.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
asset_decompression.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
asset_loading.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
asset_settings.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
custom_asset.rs Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
custom_asset_reader.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
embedded_asset.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
extra_source.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
hot_asset_reloading.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
multi_asset_sync.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
repeated_texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00