Unity - Scripting API: AnimationStream
struct in UnityEngine.Animations
/
Implemented in:UnityEngine.AnimationModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
The stream of animation data passed from one Playable to another.
Properties
| Property | Description |
|---|---|
| angularVelocity | Gets or sets the avatar angular velocity for the evaluated frame. |
| deltaTime | Gets the delta time for the evaluated frame. (Read Only) |
| inputStreamCount | Gets the number of input streams. (Read Only) |
| isHumanStream | Returns true if the stream is from a humanoid avatar; false otherwise. (Read Only) |
| isValid | Returns true if the stream is valid; false otherwise. (Read Only) |
| rootMotionPosition | Gets the root motion position for the evaluated frame. (Read Only) |
| rootMotionRotation | Gets the root motion rotation for the evaluated frame. (Read Only) |
| velocity | Gets or sets the avatar velocity for the evaluated frame. |
Public Methods
| Method | Description |
|---|---|
| AsHuman | Gets the same stream, but as an AnimationHumanStream. |
| CopyAnimationStreamMotion | Deep copies motion from a source animation stream to the current animation stream. |
| GetInputStream | Gets the AnimationStream of the playable input at index. |
| GetInputWeight | Gets the weight of the Playable connected at a specific input index. |