Skip to main content
added 38 characters in body
Source Link

UPDATE: doesn't work entierly!

I solved this by setting the camera's transparency sort mode to orthgraphic:

Camera.main.transparencySortMode = TransparencySortMode.Orthographic;

Works for both LineRenderer or using a deformed cube.

https://docs.unity3d.com/ScriptReference/TransparencySortMode.html

I solved this by setting the camera's transparency sort mode to orthgraphic:

Camera.main.transparencySortMode = TransparencySortMode.Orthographic;

Works for both LineRenderer or using a deformed cube.

https://docs.unity3d.com/ScriptReference/TransparencySortMode.html

UPDATE: doesn't work entierly!

I solved this by setting the camera's transparency sort mode to orthgraphic:

Camera.main.transparencySortMode = TransparencySortMode.Orthographic;

Works for both LineRenderer or using a deformed cube.

https://docs.unity3d.com/ScriptReference/TransparencySortMode.html

Source Link

I solved this by setting the camera's transparency sort mode to orthgraphic:

Camera.main.transparencySortMode = TransparencySortMode.Orthographic;

Works for both LineRenderer or using a deformed cube.

https://docs.unity3d.com/ScriptReference/TransparencySortMode.html