bevy/examples/asset
Joona Aalto 39d6a745d2
Migrate visibility to required components (#15474)
# Objective

The next step in the migration to required components: Deprecate
`VisibilityBundle` and make `Visibility` require `InheritedVisibility`
and `ViewVisibility`, as per the [chosen
proposal](https://hackmd.io/@bevy/required_components/%2FcO7JPSAQR5G0J_j5wNwtOQ).

## Solution

Deprecate `VisibilityBundle` and make `Visibility` require
`InheritedVisibility` and `ViewVisibility`.

I chose not to deprecate `SpatialBundle` yet, as doing so would mean
that we need to manually add `Visibility` to a bunch of places. It will
be nicer once meshes, sprites, lights, fog, and cameras have been
migrated, since they will require `Transform` and `Visibility` and
therefore not need manually added defaults for them.

---

## Migration Guide

Replace all insertions of `VisibilityBundle` with the `Visibility`
component. The other components required by it will now be inserted
automatically.
2024-09-27 19:06:16 +00:00
..
files Add example for using .meta files (#12882) 2024-04-08 17:10:56 +00:00
processing Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
alter_mesh.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
alter_sprite.rs Add sprite and mesh alteration examples (#15298) 2024-09-22 01:18:40 +00:00
asset_decompression.rs Migrate visibility to required components (#15474) 2024-09-27 19:06:16 +00:00
asset_loading.rs Reccomend using AssetPlugin.file_path instead of CARGO_MANIFEST_DIR (#15176) 2024-09-13 16:16:23 +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.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
custom_asset_reader.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +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 glTF labels: add enum to avoid misspelling and keep up-to-date list documented (#13586) 2024-05-31 23:25:57 +00:00
multi_asset_sync.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
repeated_texture.rs Example with repeated texture (#13176) 2024-05-05 17:29:26 +00:00