- Home /
Is it possible to instantiate a prefabe on tilemap!?
So I'm working on a 2d top down game where the maps are generated randomly, I basically created prefabs of my elements ( player, bombs ,ground ,walls, ets..) the game generator works fine it just place cloned objects from prefabs to specific positions, now I want to do the same thing but on a tile, I heard about the tilemapes new work flow when you can use prefab brush, but is that possible with scripting, in other way, I want to replace the code line "Game object go = (GameObject) Initantiate(prefabe, new Vector3(x,y,0) , Quaternion.identity); By a line that intentiate the prefab on the tile map Is that possible !? If possible how!? Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220612195458im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Prefab to a tile script 0 Answers
Prefab Brush from 2d-extras not working in tilemap 7 Answers
2D Tilemap prefab brush doesn't paint the tile in the right place 0 Answers
[Tilemap] Can you spawn a Prefab (with colliter) together with a tile when placing it? 0 Answers
Trouble with tilemaps as prefabs for 2D plattformer 1 Answer