Tuesday, July 19, 2022
HomeGame Developmentunity - Y sorting with a number of tilemaps

unity – Y sorting with a number of tilemaps


I’m attempting to attain Y sorting on my 2D topdown sport with a sprite and a number of tilemaps.

Let me clarify, I designed my degree with 2 tilemaps : Partitions and design

Partitions

Walls tilemap

Design

Design tilemap

I put my participant and the two tilemaps on the identical sorting layer and the identical sorting order

On the two tilemaps I set the tilemap renderer mode to : particular person

On tasks settings > Graphics I set the transparency type mode to Customized axis and Transparency type axis to (0,1,0)

The partitions tilemap is rendered on prime of the design tilemap

enter image description here

But when I alter the sorting layer or the order in layer to make the design layer to be rendered on prime of the partitions layer, it’ll at all times be on prime of the participant too and the y sorting wont work

So my questions are :

  • how can I make the design tilemap to be rendered on prime of the partitions tilemap with out altering their Sorting layer or order in layer ?

  • Is there some other methods to attain y sorting ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments