Question by
unity_29Qxk36fJEbvAw · Feb 04, 2019 at 12:24 PM ·
2d gameprefabstilemap
Tilemap prefab returns null
I'm working on a match 3 tile based game using a tilemap and prefab brushes to create the animals inside a tilemap. The goal is to match groups of 3 animals of the same kind until there's no animals left.
The problem is that I can't identify if there's a prefab in a specific tilemap position.
For example, if I run tilemap.GetTile(position), I can see the tile information if there's a common brush painted in that position, but if there's a prefab inside it instead, it returns a null value. What am I missing?
I'm running Unity 2018.3.02 (C#)
Comment
Your answer
Follow this Question
Related Questions
How do you assign multiple prefabs to a prefab brush? 0 Answers
Scripts randomly getting disabled 0 Answers
Destroy a specific tile from a tilemap 0 Answers
2D map generation from tiles 0 Answers