bevy/examples/mobile
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
..
android_basic Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
android_example Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
android_example_native Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
bevy_mobile_example.xcodeproj daily job running mobile example on real devices (#8216) 2023-03-28 23:16:07 +00:00
ios-src IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
src Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
.gitignore Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
build_rust_deps.sh Fix alignment on ios simulator (#10178) 2023-10-21 22:19:46 +00:00
Cargo.toml Add features to switch NativeActivity and GameActivity usage (#12095) 2024-10-01 22:23:48 +00:00
Makefile Improve selection of iOS device in mobile example (#9282) 2023-10-08 20:57:41 +00:00