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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Tilemap not showing up in main camera

Discussion in '2D' started by mpodlesny, Jul 21, 2020.

  1. mpodlesny

    mpodlesny

    Joined:
    Jun 29, 2020
    Posts:
    43
    I am new to Unity and am creating a Tilemap game. However my tiles that I have as my background do not show up in the main camera. I am using version 2019.4.4f1

    Any ideas?

     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Could you share screenshots of your Tilemap Grid, Background and Foreground GameObjects in the inspector? It could be possible that they are behind the Main Camera, but in front of the camera used for the Scene view.
     
  3. mpodlesny

    mpodlesny

    Joined:
    Jun 29, 2020
    Posts:
    43
    I changed my Near setting from 0.3 to 0 and it now can see it on camera
     
  4. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    I guess the Grid and Tilemap GameObject have the z position of 0? If it does, the Camera's near plane at 0.3 would have clipped it out. The Camera only renders items in its view between the near and far clipping planes. An alternative would be to set the Camera GameObject's z position to -10 (which is our 2D Camera's default).
     
  5. Peanut8

    Peanut8

    Joined:
    May 17, 2018
    Posts:
    10
    I think the Problem is that your Camera has a Z Value of 0 normally its on -10. Try the default value
     
  6. heh_7w7

    heh_7w7

    Joined:
    Jan 7, 2022
    Posts:
    1
    I have the same problems but your solution isn't working
     
    tranquoclong-t1 and Kori_Green like this.