AvatarMask
class in UnityEngine
/
Inherits from:Object
/
Implemented in:UnityEngine.AnimationModule
Switch to Manual
Description 描述
AvatarMask is used to mask out humanoid body parts and transforms.
They can be used when importing animation or in an animator controller layer.
Properties 属性
| transformCount | Number of transforms. |
Constructors
| AvatarMask | Creates a new AvatarMask. |
Public Methods 公共方法
| 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. |
Inherited Members 继承成员
Properties 属性
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? | ||
| name | The name of the object. |
Public Methods 公共方法
| GetInstanceID | Returns the instance id of the object. | ||
| ToString | Returns the name of the object. |
Static Methods 静态方法
| Destroy | Removes a GameObject, component or asset. | ||
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. | ||
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. | ||
| FindObjectOfType | Returns the first active loaded object of Type type. | ||
| FindObjectsOfType | Returns a list of all active loaded objects of Type type. | ||
| Instantiate | Clones the object original and returns the clone. |
Operators 运算符
Operators 运算符
Operators 运算符
| bool | Does the object exist? | ||
| operator != | Compares if two objects refer to a different object. | ||
| operator == | Compares two object references to see if they refer to the same object. |