SortingSettings
This struct describes the methods to sort objects during rendering.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<SortingSettings>
public struct SortingSettings : IEquatable<SortingSettings>
Remarks
Additional Resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.
Constructors
Constructor | Description |
|---|---|
| SortingSettings(UnityEngine.Camera) | Create a sorting settings struct. |
Properties
Property | Description |
|---|---|
| cameraPosition | Used to calculate the distance to objects. |
| criteria | What kind of sorting to do while rendering. |
| customAxis | Used to calculate distance to objects, by comparing the positions of objects to this axis. |
| distanceMetric | Type of sorting to use while rendering. |
| worldToCameraMatrix | Used to calculate the distance to objects. |