Unity Engine documentationScript ReferenceUnityEngineAnimatorlayerCountReturns the number of layers in the controller.Read time 1 minuteLast updated 4 days agoDefinition Type: Property Namespace: UnityEngine Assembly: UnityEngine.AnimationModule public int layerCount { get; }