End(ref AnimationStream, in AnimationStream)
Finishes the mix and normalizes the result.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
End(AnimationStream, AnimationStream)
public void End(ref AnimationStream output, in AnimationStream defaultPoseStream)
Parameters
The stream that holds the mixed result. Use the same stream as in the calls to and .
BeginAddThe stream that fills the remaining weight when the weights of all added streams sum to less than 1. If this is a default stream, the mixer uses the default values from the rig definition.
Remarks
Call this method after the last call to Core.PoseMixer.Add. If the weights of the added streams sum to less than 1, it adds the default pose for the remaining weight. It then normalizes the rotations. The output stream isn't a valid pose until this method has run.