Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AvatarMask

AvatarMask is used to mask out humanoid body parts and transforms.
Read time 4 minutesLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
  • Inherits from: Object
public sealed class AvatarMask : Object

Remarks

They can be used when importing animation or in an animator controller layer.

Constructors

Constructor

Description

AvatarMask()Creates a new AvatarMask.

Properties

Property

Description

transformCountNumber of transforms.

Methods

Method

Description

AddTransformPathAdds a transform path into the AvatarMask.
GetHumanoidBodyPartActiveReturns true if the humanoid body part at the given index is active.
GetTransformActiveReturns true if the transform at the given index is active.
GetTransformPathReturns the path of the transform at the given index.
RemoveTransformPathRemoves a transform path from the AvatarMask.
SetHumanoidBodyPartActiveSets the humanoid body part at the given index to active or not.
SetTransformActiveSets the tranform at the given index to active or not.
SetTransformPathSets the path of the transform at the given index.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.