Skip to content
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

Add component to control UI camera position #5243

Closed
wants to merge 4 commits into from

Commits on Jul 7, 2022

  1. Rename CameraUi

    In bevy 0.7, `CameraUi` was a component specifically added to cameras
    that display the UI. Since camera-driven rendering was merged, it
    actually does the opposite! This will make it difficult for current
    users to adapt to 0.8.
    
    To avoid unnecessary confusion, we rename `CameraUi` into
    `CameraUiConfig`.
    nicopap committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    9608cb9 View commit details
    Browse the repository at this point in the history
  2. Add component to control UI camera position

    Extend `CameraUiConfig` to include info about the UI camera position in
    the "ui world". This allows fancy effects like moving UI, which was
    possible before the migration to camera-driven rendering.
    
    This reverts the regression caused by bevyengine#4765 preventing users from moving
    the UI camera.
    nicopap committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    5f297a4 View commit details
    Browse the repository at this point in the history
  3. Use arrow key in ui example

    nicopap committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    8301ddc View commit details
    Browse the repository at this point in the history
  4. Merge CameraUiRenderInfo and CameraUiConfig

    Having them separate caused update delay, so we remove them.
    nicopap committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    b57f562 View commit details
    Browse the repository at this point in the history