- Home /
tilemap.SetTile makes invisible tiles
I'm trying to learn tileMaps to procedurally generate 100x100 tile levels with dynamically changing tile colors (from collisions, etc.). Past 50x50 using cube gameObjects drops FPS below 30.
Trying to generate 10x10 to start, this is what I get instead: https://imgur.com/SqRsEJm
I'm using tilemap.SetTile (new Vector3Int (x, 0, z), tile) in two loops for x and z, where "tile" is a black or white tile prefab. I should be getting alternating rows of white and black tiles but instead just get two rows of black and nothing else. Drawline shows that the tile positions are fine.
Am I missing something?
Your answer
Follow this Question
Related Questions
Best way to make a big 2D map as smooth as possible? 1 Answer
My randomize rooms script is giving an error. 0 Answers
2D: Best way to group a type of tile based on their neighbors similar type? 1 Answer
Getting cell position of a Tile from a reference to that Tile at runtime 0 Answers
How to get adjcent tiles (horizontal or vertical) in an isometric tilemap ? 1 Answer