ChannelMask
Information about which channels of an animation stream have been animated, read through AnimationStream.FrameMask or AnimationStream.PassMask.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Struct
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public readonly ref struct ChannelMask
Remarks
This struct references a memory block in the ECS component store, so its life cycle is limited to a local scope.
Properties
Property | Description |
|---|---|
| EntityIdCount | Returns number of entity ID channels. |
| FloatCount | Returns number of float channels. |
| IntCount | Returns number of int channels. |
| RotationCount | Returns number of rotation channels. |
| ScaleCount | Returns number of scale channels. |
| TranslationCount | Returns number of translation channels. |
Methods
Method | Description |
|---|---|
| CountChannelBits | Returns the number of channel bits that are set. |
| HasAll | Returns true if all channel bits are set. |
| HasAny | Returns true if any channel bits are set. |
| HasNone | Returns true if no channel bits are set. |
| IsEntityIdSet | Returns true if the specified entity ID channel bit is set, indicating this channel value has been animated. |
| IsFloatSet | Returns true if the specified float channel bit is set, indicating this channel value has been animated. |
| IsIntSet | Returns true if the specified integer channel bit is set, indicating this channel value has been animated. |
| IsRotationSet | Returns true if the specified rotation channel bit is set, indicating this channel value has been animated. |
| IsScaleSet | Returns true if the specified scale channel bit is set, indicating this channel value has been animated. |
| IsSet | Returns true if the channel bit at specified position is set. |
| IsTranslationSet | Returns true if the specified translation channel bit is set, indicating this channel value has been animated. |