This version of Unity is unsupported.

AnimatorControllerPlayable.SetLayerWeight

public void SetLayerWeight(int layerIndex, float weight);

Parameters

layerIndexThe layer index.
weightThe new layer weight.

Description

Sets the weight of the layer at the given index.