SortingSettings.cameraPosition

public Vector3 cameraPosition;

Description

Used to calculate the distance to objects.

Together with worldToCameraMatrix, this is used to determine distances to objects for sorting.

Additional resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.


Did you find this page useful? Please give it a rating: