文档

Unity Engine

Unity Engine

value

This is the relative value that indicates the sort order of this layer relative to the other layers.
阅读时间1 分钟最后更新于 1 个月前

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.