Friday, December 9, 2022
HomeGame Developmentunity - How do I put 3 completely different tiles in the...

unity – How do I put 3 completely different tiles in the identical place?


I am attempting to make a Shade Rings sport. When I attempt to set 3 tiles (rings) in the identical cell of the board (identical X/Y coord), it exhibits me just one, the final one within the script. For instance, on this case:

tilemap.SetTile(Vector3Int.zero, red2);
tilemap.SetTile(Vector3Int.zero, red3);
tilemap.SetTile(Vector3Int.zero, red1);

You’ll be able to solely see the red1 tile. In the event you change the order and put say red2 in the long run you will note red2 and solely red2.
There is no manner they block one another, trigger you may see the board behind them within the central half.
What do I do mistaken?

That is how the sport ought to look:

enter image description here

And that is what I really get once I run:
enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments