Version: 2017.2

Animator.GetLayerName

切换到手册
public string GetLayerName (int layerIndex);