customAxis
Used to calculate distance to objects, by comparing the positions of objects to this axis.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public Vector3 customAxis { get; set; }
Remarks
When the sorting mode is set to Custom Axis, use this together with SortingSettings.worldToCameraMatrix and SortingSettings.cameraPosition to determine the distances to objects for sorting.
Additional Resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.