Version: 2020.3
言語: 日本語
public Vector3 transparencySortAxis ;

説明

An axis that describes the direction along which the distances of objects are measured for the purpose of sorting.

If the TransparencySortMode of the Camera or GraphicsSettings are set to TransparencySortMode.CustomAxis, the rendering pipeline evaluates the distance of the object along the axis specified by this property.

This is used for sorting Renderer components when other, higher priority, criterias fail to distinguish the render order.

This is a useful technique in 2.5D games or isometric games where the SpriteRenderers need to be sorted along the vertical screen axis. For this specific use case, set the TransparencySortMode to TransparencySortMode.CustomAxis and set the axis to (0.0f, 1.0f, 0.0f).

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961