Search Unity

Button Glitch in Screen Space - Camera

Discussion in 'UGUI & TextMesh Pro' started by Farage, Mar 26, 2017.

  1. Farage

    Farage

    Joined:
    Apr 25, 2014
    Posts:
    44
    So this has been happening for a while, and i cannot find a way to fix it. (other than setting my canvas to be into World Space)
    I can't figure out a way of explaining this bug, so i'll let the GIF speak for itself.

    As you can see, it seems like the pixels on the button are trying to adjust themselves constantly, and what this does is it not only creates this button glitch, but it also makes some images constantly shake on the screen
    Note: This only hapens in Screen Space - Camera
     
  2. Farage

    Farage

    Joined:
    Apr 25, 2014
    Posts:
    44
    So, to anyone wondering why this happens, i found out that it's because i need the Screen Space - Camera Canvas to be a Child of the Camera it's referencing to.
    Hope this helps anyone
     
  3. GetColor

    GetColor

    Joined:
    Aug 31, 2012
    Posts:
    1
    Thank you, Farage!

    I just spent 45 minutes trying to figure out why my buttons suddenly stopped working (or working half the time) when I switched my canvases to *screen space - camera*. Made them child objects to their respective cameras and problem solved.