Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


sortingLayerID

Unique ID of the Renderer's sorting layer.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int sortingLayerID { get; set; }

Remarks

ID of the default sorting layer is always 0.