Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

tilemapRender error??

Discussion in 'Scripting' started by fikiy, Jul 29, 2018.

  1. fikiy

    fikiy

    Joined:
    Jul 17, 2018
    Posts:
    5
    My script gives me this error, is tilemapRenderer no longer supported? How do I access the tilemap renderer then??
     

    Attached Files:

  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    It is not called tilemapRenderer, but TilemapRenderer, with a capital T at the beginning.
    https://docs.unity3d.com/ScriptReference/Tilemaps.TilemapRenderer.html

    It's also in the UnityEngine.Tilemaps namespace, as you can see in the documentation. Depending on whether you use an using UnityEngine.Tilemaps clause, you might need to specify:
    Code (CSharp):
    1. GetComponent<UnityEngine.Tilemaps.TilemapRenderer>()
     
  3. fikiy

    fikiy

    Joined:
    Jul 17, 2018
    Posts:
    5
    Thx! Got it working