Documentation

Unity Engine

Unity Engine

layers

Returns all the layers defined in this project.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static SortingLayer[] layers { get; }

Remarks

Additional Resources: Tags and Layers.