Skip to content

Conversation

@mockersf
Copy link
Member

@mockersf mockersf commented Dec 3, 2020

Just something that irked me for a while, but not sure if it's worthy of a breaking change...

Basically, it's renaming UiCameraBundle to CameraUiBundle, to be aligned with Camera2dBundle and Camera3dBundle

While at it I also changed a few internals const/strings to be coherent

Feel free to close, I can live with it...

Copy link
Contributor

@ambeeeeee ambeeeeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the renaming is good for consistency reasons, especially the underscores in the consts.

@cart
Copy link
Member

cart commented Dec 3, 2020

Yeah consistency is good. My rationale for them being different was:

  1. I would prefer the XCamera naming convention (ex: UiCamera)
  2. Rust doesn't allow type names to start with numbers (ex: 2dCamera is invalid)
  3. The "preferred" XCamera is the "default", which we override when rust's rules get in our way

I'm cool with these changes though.

@cart cart merged commit 59d98de into bevyengine:master Dec 3, 2020
@fopsdev fopsdev mentioned this pull request Jan 24, 2021
@mockersf mockersf deleted the camera branch April 27, 2021 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants