AvatarMask
AvatarMask is used to mask out humanoid body parts and transforms.
Read time 4 minutesLast updated 4 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 |
|---|---|
| transformCount | Number of transforms. |
Methods
Method | Description |
|---|---|
| AddTransformPath | Adds a transform path into the AvatarMask. |
| GetHumanoidBodyPartActive | Returns true if the humanoid body part at the given index is active. |
| GetTransformActive | Returns true if the transform at the given index is active. |
| GetTransformPath | Returns the path of the transform at the given index. |
| RemoveTransformPath | Removes a transform path from the AvatarMask. |
| SetHumanoidBodyPartActive | Sets the humanoid body part at the given index to active or not. |
| SetTransformActive | Sets the tranform at the given index to active or not. |
| SetTransformPath | Sets the path of the transform at the given index. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |