Documentation

Unity Engine

Unity Engine

cameraPosition

Used to calculate the distance to objects.
Read time 1 minuteLast updated 2 months ago

Definition

public Vector3 cameraPosition { get; set; }

Remarks

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