Animator BindStreamTransform is a class in Unity's Animation package that allows you to bind a stream transform to an Animator. This means that changes made to the stream transform will be reflected in the Animator, making it a useful tool for creating dynamic animations.
Code Examples:
1. Bind a stream transform to an Animator:
Animator anim = GetComponent(); StreamTransform streamTransform = new StreamTransform(); Animator.BindStreamTransform(streamTransform);
This example binds a stream transform to an Animator component. The stream transform can now be manipulated and its changes will be reflected in the Animator.
2. Bind multiple stream transforms to an Animator:
Animator anim = GetComponent(); StreamTransform streamTransform1 = new StreamTransform(); StreamTransform streamTransform2 = new StreamTransform(); Animator.BindStreamTransforms(new StreamTransform[] { streamTransform1, streamTransform2 });
This example binds multiple stream transforms to an Animator component. Any changes made to these stream transforms will be reflected in the Animator.
Package Library:
The Animator BindStreamTransform class is part of Unity's Animation package, which is included in the Unity engine.
C# (CSharp) Animator.BindStreamTransform - 24 examples found. These are the top rated real world C# (CSharp) examples of Animator.BindStreamTransform from package unity3xGameDevelopmentEssentials extracted from open source projects. You can rate examples to help us improve the quality of examples.