# 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. |
||
|---|---|---|
| .. | ||
| files | ||
| processing | ||
| alter_mesh.rs | ||
| alter_sprite.rs | ||
| asset_decompression.rs | ||
| asset_loading.rs | ||
| asset_settings.rs | ||
| custom_asset_reader.rs | ||
| custom_asset.rs | ||
| embedded_asset.rs | ||
| extra_source.rs | ||
| hot_asset_reloading.rs | ||
| multi_asset_sync.rs | ||
| repeated_texture.rs | ||