This version of Unity is unsupported.

StateMachineBehaviourContext.layerIndex

public int layerIndex;

Description

The animator's layer index that owns this state machine behaviour.