Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

TransparencySortMode.CustomAxis

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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答