Forum rules - please read before posting.

Layers: Lighting layers, Sorting maps, Order in Layer

edited August 30 in Technical Q&A

By default, I've put everything on the same sorting layer, and used the sorting maps "order in layer" to have Player walk in front, behind objects/doors, etc. Perfect!

However, if I want to apply different lighting to layers, this seems to require using "lighting layers", e.g. Background 3, 2, 1, PLAYER, Foreground 1, 2, 3, etc.

This is where I get confused... how do I then use a sorting map's order in layer to control which layer is in front/behind the player as they move through a scene? They can't be jumping across from Background 1 to Foreground 1 because then their lighting is affected?

Comments

  • The use of Sorting Maps to control sprite layers / orders are generally not necessary anymore. They're still useful for affecting character speeds/scales are they move around, but the sprite sorting is best handled by Unity, which has since been updated to provide better control options.

    You typically just need to set your project's Transparency Sort Axis to (0,1,0), and sort your sprites by Pivot Point. A tutorial on this topic can be found here.

  • omg! This solved so many of my issues with sorting, sizing, lighting, thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.