bevy/examples/asset
Joona Aalto de888a373d
Migrate lights to required components (#15554)
# Objective

Another step in the migration to required components: lights!

Note that this does not include `EnvironmentMapLight` or reflection
probes yet, because their API hasn't been fully chosen yet.

## Solution

As per the [selected
proposals](https://hackmd.io/@bevy/required_components/%2FLLnzwz9XTxiD7i2jiUXkJg):

- Deprecate `PointLightBundle` in favor of the `PointLight` component
- Deprecate `SpotLightBundle` in favor of the `PointLight` component
- Deprecate `DirectionalLightBundle` in favor of the `DirectionalLight`
component

## Testing

I ran some examples with lights.

---

## Migration Guide

`PointLightBundle`, `SpotLightBundle`, and `DirectionalLightBundle` have
been deprecated. Use the `PointLight`, `SpotLight`, and
`DirectionalLight` components instead. Adding them will now insert the
other components required by them automatically.
2024-10-01 03:20:43 +00:00
..
files Add example for using .meta files (#12882) 2024-04-08 17:10:56 +00:00
processing Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
alter_mesh.rs Migrate lights to required components (#15554) 2024-10-01 03:20:43 +00:00
alter_sprite.rs Add sprite and mesh alteration examples (#15298) 2024-09-22 01:18:40 +00:00
asset_decompression.rs Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
asset_loading.rs Migrate lights to required components (#15554) 2024-10-01 03:20:43 +00:00
asset_settings.rs Fix unfinished sentence in a comment in asset_settings example (#13243) 2024-05-05 14:13:27 +00:00
custom_asset_reader.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
custom_asset.rs Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
embedded_asset.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
extra_source.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
hot_asset_reloading.rs Migrate lights to required components (#15554) 2024-10-01 03:20:43 +00:00
multi_asset_sync.rs Migrate lights to required components (#15554) 2024-10-01 03:20:43 +00:00
repeated_texture.rs Migrate lights to required components (#15554) 2024-10-01 03:20:43 +00:00