BlendAdditive
Blend stream with an additive stream using a blend weight value.
Read time 2 minutesLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
BlendAdditive(AnimationStream, AnimationStream, float)
Blend stream with an additive stream using a blend weight value.
public static void BlendAdditive(this ref AnimationStream stream, in AnimationStream additive, float weight)
Parameters
The stream to modify. The method stores the result in this stream.
The additive stream to blend.
The weight of the additive stream in the blend.
Remarks
If is greater than 0, the method sets the pass and frame flags of the channels that sets. If is 0 or less, the flags of the stream don't change. Flags that are already set in the stream stay set.
weightadditiveweightBlendAdditive(AnimationStream, AnimationStream, float, AnimationStreamMask)
Blend stream with an additive stream using a blend weight value and stream weight mask.
public static void BlendAdditive(this ref AnimationStream stream, in AnimationStream additive, float weight, in AnimationStreamMask mask)
Parameters
The stream to modify. The method stores the result in this stream.
The additive stream to blend.
The weight of the additive stream in the blend.
The mask that scales the weight of each channel.
Remarks
The method sets the pass and frame flags of a channel that sets only if the weight of the channel in , multiplied by , is greater than 0. Channels with a combined weight of 0 keep their flags. Flags that are already set in the stream stay set.
additivemaskweightBlendAdditive(AnimationStream, AnimationStream, AnimationStream, float)
Blends an input stream with an additive stream using a blend weight value. The result is stored in the animation stream.
public static void BlendAdditive(this ref AnimationStream stream, in AnimationStream input, in AnimationStream additive, float weight)
Parameters
The stream that receives the result. The method overwrites its previous contents.
The stream to blend.
The additive stream to blend.
The weight of the additive stream in the blend.
Remarks
The pass and frame flags of the stream are the flags of , plus the flags of if is greater than 0.
inputadditiveweightBlendAdditive(AnimationStream, AnimationStream, AnimationStream, float, AnimationStreamMask)
Blends an input stream with an additive stream using a blend weight value and stream weight masks. The result is stored in the animation stream.
public static void BlendAdditive(this ref AnimationStream stream, in AnimationStream input, in AnimationStream additive, float weight, in AnimationStreamMask mask)
Parameters
The stream that receives the result. The method overwrites its previous contents.
The stream to blend.
The additive stream to blend.
The weight of the additive stream in the blend.
The mask that scales the weight of each channel.
Remarks
The pass and frame flags of the stream are the flags of , plus the flags of for the channels where the weight of the channel in , multiplied by , is greater than 0.
inputadditivemaskweight