Documentation

Unity Engine

Download Unity

Unity Engine

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

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

EntityIdCountReturns number of entity ID channels.
FloatCountReturns number of float channels.
IntCountReturns number of int channels.
RotationCountReturns number of rotation channels.
ScaleCountReturns number of scale channels.
TranslationCountReturns number of translation channels.

Methods

Method

Description

CountChannelBitsReturns the number of channel bits that are set.
HasAllReturns true if all channel bits are set.
HasAnyReturns true if any channel bits are set.
HasNoneReturns true if no channel bits are set.
IsEntityIdSetReturns true if the specified entity ID channel bit is set, indicating this channel value has been animated.
IsFloatSetReturns true if the specified float channel bit is set, indicating this channel value has been animated.
IsIntSetReturns true if the specified integer channel bit is set, indicating this channel value has been animated.
IsRotationSetReturns true if the specified rotation channel bit is set, indicating this channel value has been animated.
IsScaleSetReturns true if the specified scale channel bit is set, indicating this channel value has been animated.
IsSetReturns true if the channel bit at specified position is set.
IsTranslationSetReturns true if the specified translation channel bit is set, indicating this channel value has been animated.