Sort Sprites For Top Down Game
Configure Unity transparency sorting for top-down sprite scenes.
What It Does
- Sets
GraphicsSettings.transparencySortModetoCustomAxis. - Sets
GraphicsSettings.transparencySortAxisto(0, 1, 0).
This makes sprite rendering sort by Y axis, which is a common setup for top-down games.
Parameters
This action has no parameters.
Notes
- This changes global graphics settings for the project at runtime.
- Call it during initialization (for example, startup/boot state) so sorting is configured before gameplay.