Skip to content

Add marker components for different camera types #1854

@alice-i-cecile

Description

@alice-i-cecile

What problem does this solve or what need does it fill?

Selecting particular camera types is frustrating, relying on checking the name field within a system.

What solution would you like?

Add a simple marker components for UiCamera and GameplayCamera.

Various rendering systems should use this mechanism, instead of the camera's name.

What alternative(s) have you considered?

Users can add their own marker components manually.

Only tag UiCamera and use Without<UiCamera>.

Add a unique marker component for each of 2dCamera, 3dCamera and so on. This is less clear, and it seems extremely rare that you will have more than one different type of gameplay camera at once.

Additional context

Example of this problem in #help

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions