Hello, please give me an advice, I am trying to get every TileMap (object) from parent and i want them stored in one Tilemap field. I need this in Start method. Thank You
Hello, please give me an advice, I am trying to get every TileMap (object) from parent and i want them stored in one Tilemap field. I need this in Start method. Thank You
The advice is to describe more clealy what you mean. For instance, what does “one tilemap field” mean? Are you asking about an array?
Your question seems like it’s just a beginners scripting question (for the scripting forum) and nothing to do with Tilemaps or anything 2D but it’s not clear really.
I am sorry, well one tilemap, i want to test every tile on coordinates, to find place for my enemy spawn. So i generate random coord, then check every tilemap and decide if enemy can spawn here or not.
Sorry, I’m just not following you. I don’t see what the above has to do with the first question.
Im very sorry… well i have enemyspawner, and these tilemaps, and in script i have field of every tilemap in game, and i have defined that, enemy spawns on grass only, so if grass tilemap on random coord is true … it is great and if in the layer path for example is path … enemy cant spawn here. And i dont want to fill every layer in field by hand… but i want it by script.