This version of Unity is unsupported.

Animator.avatar

Switch to Manual
public Avatar avatar;

Description

Gets/Sets the current Avatar.

Changing the avatar at runtime is not fully supported. Use it at your own risk.