Version: 2021.3
언어: 한국어

SortingCriteria

enumeration

매뉴얼로 전환

설명

How to sort objects during rendering.

Control the way Unity sorts objects before drawing them by using and combining these flags.

The basic flags are: SortingLayer, RenderQueue, BackToFront, QuantizedFrontToBack, OptimizeStateChanges, CanvasOrder. Multiple flags, when combined, are applied in the above order.

Some commonly-used sorting combinations are provided for convenience. Use CommonOpaque for opaque objects. This combination of flags includes optimization for reducing draw state changes and draws roughly front-to-back to reduce drawing over the same pixels many times. Use CommonTransparent for transparent objects, which need to be sorted from back to front before being drawn for them all to be visible.

See Also: DrawingSettings.sorting, ScriptableRenderContext.DrawRenderers.

변수

NoneDo not sort objects.
SortingLayerSort by renderer sorting layer.
RenderQueueSort by material render queue.
BackToFrontSort objects back to front.
QuantizedFrontToBackSort objects in rough front-to-back buckets.
OptimizeStateChangesSort objects to reduce draw state changes.
CanvasOrderSort renderers taking canvas order into account.
RendererPrioritySorts objects by renderer priority.
CommonOpaqueTypical sorting for opaque objects.
CommonTransparentTypical sorting for transparencies.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961