cameraPosition
Used to calculate the distance to objects.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public Vector3 cameraPosition { get; set; }
Remarks
Together with SortingSettings.worldToCameraMatrix, this is used to determine distances to objects for sorting.
Additional Resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.