-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to choose the default ui camera #11377
Comments
Could this also be fixed by not having a default ui camera at all? I feel like it might lead to a clearer, more explicit API if you just always need to declare a camera for each UI root. |
I was aware of this approach, but if the |
# Objective - Resolves #11377 ## Solution - Add marker component `IsDefaultUiCamera` that will be choosen first as the default camera. If you want the IsDefaultUiCamera default camera to be in another window, thats now possible. - `IsDefaultUiCamera` is expected to be within a single Camera, if that assertion fails, one PrimaryWindow Camera will be choosen. --- ## Changelog ### Added - Added `IsDefaultUiCamera` marker component. --------- Co-authored-by: Mateusz Wachowiak <[email protected]>
# Objective - Resolves bevyengine#11377 ## Solution - Add marker component `IsDefaultUiCamera` that will be choosen first as the default camera. If you want the IsDefaultUiCamera default camera to be in another window, thats now possible. - `IsDefaultUiCamera` is expected to be within a single Camera, if that assertion fails, one PrimaryWindow Camera will be choosen. --- ## Changelog ### Added - Added `IsDefaultUiCamera` marker component. --------- Co-authored-by: Mateusz Wachowiak <[email protected]>
What problem does this solve or what need does it fill?
There is an example of a problem that this can lead in #11237, where we cannot spawn a new Camera in the same window as primary window without possible problems appearing (Debug camera interpolating with Ui camera)
What solution would you like?
TargetCamera
, the DefaultCamera param will give priority to this component.What alternative(s) have you considered?
UiCameraOptions
, an component that marks if the Camera should show ui or not (I think we don't need this anymore)Aditional Context
but using the order can conflict if the user is building an debug camera (That generally will be above others)
The text was updated successfully, but these errors were encountered: