bevy/errors
Joona Aalto 25bfa80e60
Migrate cameras to required components (#15641)
# Objective

Yet another PR for migrating stuff to required components. This time,
cameras!

## Solution

As per the [selected
proposal](https://hackmd.io/tsYID4CGRiWxzsgawzxG_g#Combined-Proposal-1-Selected),
deprecate `Camera2dBundle` and `Camera3dBundle` in favor of `Camera2d`
and `Camera3d`.

Adding a `Camera` without `Camera2d` or `Camera3d` now logs a warning,
as suggested by Cart [on
Discord](https://discord.com/channels/691052431525675048/1264881140007702558/1291506402832945273).
I would personally like cameras to work a bit differently and be split
into a few more components, to avoid some footguns and confusing
semantics, but that is more controversial, and shouldn't block this core
migration.

## Testing

I ran a few 2D and 3D examples, and tried cameras with and without
render graphs.

---

## Migration Guide

`Camera2dBundle` and `Camera3dBundle` have been deprecated in favor of
`Camera2d` and `Camera3d`. Inserting them will now also insert the other
components required by them automatically.
2024-10-05 01:59:52 +00:00
..
src Add a [lints] entry for workspace members missing it (#11900) 2024-02-19 17:09:47 +00:00
B0001.md Fix a few typos in error docs (#11709) 2024-02-05 04:39:45 +00:00
B0002.md Fix a few typos in error docs (#11709) 2024-02-05 04:39:45 +00:00
B0003.md fix B0003 example and update logs (#11162) 2024-01-10 21:40:24 +00:00
B0004.md Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
B0005.md Add some more docs for bevy_text. (#9873) 2023-10-27 18:53:57 +00:00
B0006.md Print warning when using llvmpipe (#13780) 2024-06-26 12:44:48 +00:00
Cargo.toml Generate links to definition in source code pages on docs.rs and dev-docs.bevyengine.org (#12965) 2024-07-29 23:10:16 +00:00
README.md Add readme to errors crate and clean up cargo files (#3125) 2021-11-13 23:06:48 +00:00

Bevy Error Codes

This crate lists and tests explanations and examples of Bevy's error codes.

For the latest Bevy release, you can find a rendered version of the error code descriptions at bevyengine.org/learn/errors.