- Home /
Prefab to a tile script
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
Follow this Question
Related Questions
8-directional orientation, top down 2D, seperate from movement 0 Answers
Reusing tilemap segments 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
How to duplicate several layers in a tilemap?,How to duplicate layered tilemaps? 0 Answers