2D Lightweight Render Pipeline + Camera settings not working

Hey
My project is in 2D from a top down view, so i used Transparency Sort Mode → Custom Mode(0, 0, 1).
Then I added a Render Pipeline for 2D Lighting and stuff and the camera settings disappeared and didn’t work anymore.
Is there a way to customize the Camera Transparency Sort Mode without removing the Render Pipeline 2D?
Thank u!
Timo

You have to change it via code, I had the same issue.

Camera.main.transparencySortMode = TransparencySortMode.CustomAxis;
Camera.main.transparencySortAxis = new Vector3(0f, 0f, 1f);
2 Likes

where should I put this code?

In any script that loads when the scene is loaded so it affects the camera for that scene. I put it in its own script in Awake and attached it to the camera in the scene.

2 Likes

For those coming here for an answer, Unity has added these settings to the SRP asset to effect all camera’s globally. If you only want it per camera the above code will work fine.