Search Unity

Question Input field is not visible to Main Camera (2d).

Discussion in 'Input System' started by Mzryc, Mar 24, 2023.

  1. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    I need help. I have created an input field but it is not visible to the Main Camera. It has the same z value of other gameobjects that are visible and I have triple checked that in 3d. Can someone help?
    upload_2023-3-23_20-39-46.png
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,427
    can camera see that layer?
    is it worldspace UI?
     
    Mzryc likes this.
  3. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    Does the main camera only see gameobjects within its layer, in layers above or layers below it?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,427
    camera can see all the layers checked here:
    upload_2023-3-25_21-17-13.png

    can you screenshot your canvas inspector, to see whats there.
     
    Mzryc likes this.
  5. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    Thank you for replying! I can only reply with my unity project in 3 hours. I’ll work with you when I can
     
  6. tv_Never

    tv_Never

    Joined:
    Nov 11, 2021
    Posts:
    11
    I'm going to assume that your UI canvas is too close to the camera
     
    Mzryc likes this.
  7. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    What do you mean? Isn’t the canvas 2d?
     
  8. tv_Never

    tv_Never

    Joined:
    Nov 11, 2021
    Posts:
    11
    If your game is 3d and your camera is set to world space then the camera can only see what is in front of it by 0.2

    Show me your Camera settings
     
    Mzryc likes this.
  9. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    My game is in 2d
     

    Attached Files:

  10. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    My game is in 2d
     

    Attached Files:

  11. Mzryc

    Mzryc

    Joined:
    Feb 28, 2023
    Posts:
    7
    tv_Never likes this.