Experimental: this API is experimental and might be changed or removed in the future.

DrawRendererSortSettings.cameraCustomSortAxis

Switch to Manual
public Vector3 cameraCustomSortAxis ;

Description

Used to calculate distance to objects, by comparing the positions of objects to this axis.

When the sorting mode is set to Custom Axis, use this together with worldToCameraMatrix and cameraPosition to determine the distances to objects for sorting.

See Also: DrawRendererSettings, RenderLoop.DrawRenderers.