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

The type or namespace name "Tilemap" could not be found

Discussion in 'Scripting' started by huguito2004, May 26, 2020.

  1. huguito2004

    huguito2004

    Joined:
    May 26, 2020
    Posts:
    4
    I am trying to make a procedurally generated wold using tilemaps, but when I try to reference a tilemap to set tiles in it I get the error:
    The type or namespace name "Tilemap" could not be found(are you missing a using directive or an assembly reference?)
    How can I fix this?
     
  2. Antistone

    Antistone

    Joined:
    Feb 22, 2014
    Posts:
    2,835
    Did you put "using UnityEngine.Tilemaps;" at the top of your file?
     
    okan-sen, xqy57 and micha_dev like this.
  3. racso21

    racso21

    Joined:
    Sep 6, 2022
    Posts:
    1
    Thanks! that worked.