Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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.