Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Have Camera View Canvas Without Setting Canvas to Camera View

Discussion in 'General Graphics' started by themmasavarese, Jul 8, 2023.

  1. themmasavarese

    themmasavarese

    Joined:
    May 15, 2023
    Posts:
    4
    I wanted to make a screen shake animation with my camera in a unity project, but I can't get the camera to show my canvas by itself. It shows up if I set the canvas to the camera's view, but obviously that wouldn't let me do the screen shake animation, since if my camera was moving the canvas would just move with it. How would I go about showing it?
     
  2. karderos

    karderos

    Joined:
    Mar 28, 2023
    Posts:
    376
    why is it obvious that you cant screen shake?

    in camera space the canvas always moves with the camera so from the perspective of the player its always static

    unless you want the canvas to move around
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,468
    I'll move your post for you as this isn't a 2D feature issue.

    Please use the UGUI forum (Canvas) or General Graphics for Camera posts.

    Thanks.
     
  4. themmasavarese

    themmasavarese

    Joined:
    May 15, 2023
    Posts:
    4
    Yes, how would you get the canvas to move around instead?
     
  5. karderos

    karderos

    Joined:
    Mar 28, 2023
    Posts:
    376
    if you dont want the canvas to be glued to the camera you shouldnt make it a canvas, use sprite renderers