Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


value

This is the relative value that indicates the sort order of this layer relative to the other layers.
Read time 1 minuteLast updated 4 days ago

Definition

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

Remarks

You may use this to determine the sort order of the layer. Additional Resources: SortingLayer.GetLayerValueFromID.