Search Unity

How to get Tilemap by script from prefab

Discussion in '2D' started by M3ME5, Oct 3, 2019.

  1. M3ME5

    M3ME5

    Joined:
    Sep 18, 2019
    Posts:
    2
    Hi,
    So i am trying to access a TileMap called "Tilemap_Ground" by script from prefab. As it is a prefab I can't assign the Tilemap by dragging it into the inspector so I am looking for a solution to do it in the script.

    Hope you can help :)
     
    Last edited: Oct 3, 2019