# Referencing Tilemap inside Grid Prefab

I have a prefab of a grid which contains 3 different tilemaps:

Main, Foreground, & Background

I want to reference the tilemaps inside a script of the prefab but can't figure out how to do that... I just need to edit the tiles in the tilemaps located inside the prefab.

I figured it out! Rather than pre-creating the tilemaps inside of the prefab, You just have to add the tilemaps after the prefab was created (in the game).

You can add the 3 tilemaps to the grid in the awake function and use their variables:

    GameObject go = new GameObject("Main");