Version: 2018.4
LanguageEnglish
  • C#

TransparencySortMode.CustomAxis

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Sort objects based on distance along a custom axis.

Transparent objects are sorted based on distance along a custom axis. For example, you could specify this mode and the axis to be (0.0f, 1.0f, 0.0f). This will effectively make renderers sorted to the back as they go up in Y. This is a common feature of 2.5D games.

Note: This has a lower priority compared to other sorting criterias such as SortingLayer.

See Also: Camera.transparencySortMode, Camera.transparencySortAxis, GraphicsSettings.transparencySortMode.