Search Unity

Unity UI Text not showing on camera

Discussion in 'UGUI & TextMesh Pro' started by sartorihenry, Aug 9, 2020.

  1. sartorihenry

    sartorihenry

    Joined:
    Aug 4, 2020
    Posts:
    2
    I noticed that when trying to do a simple camera shake script.
    If my canvas is set to ScreenSpace - Camera, my canvas move along the camera (which is normal)
    If my canvas is set to ScreenSpace - Overlay, I can move my camera and it moves the canvas, but no the text.

    I tried everything I could, changing Rect Transform, changing Font Size, changing text mode to Overlay
    None of it seems to work.

    I'll link some images explaining what is happening.

    Scene View:
    upload_2020-8-9_5-3-12.png
    (notice the camera position, it's supposed to move things to the right)

    Game View:
    upload_2020-8-9_5-3-37.png
    (notice how my sprites moved while the Text is fixed to the camera)

    What should I do to fix this? I did a lot of searching and trial and error and nothing seemed to work.
    I just want the Text to move along with other UI elements on the canvas, so I can shake the camera properly.

    Print of both my Canvas and Camera properties:
    canvas.png camera.png

    The fact that my text is not showing on camera:
    cameraview.png
     
  2. sartorihenry

    sartorihenry

    Joined:
    Aug 4, 2020
    Posts:
    2
  3. paulusuluap

    paulusuluap

    Joined:
    May 12, 2020
    Posts:
    4
    upload_2020-11-17_23-7-15.png

    For me, this settings is working
    1. on Canvas, i changed from Screen Space - Overlay to Screen Space - Camera
    2. on Canvas - Render Camera, I dragged my camera to the blank.
     
    Ferhell likes this.