Learn how to use parameters to control animation.
- [Instructor] In the previous movie, … we saw how to configure the animator … so that the walk parameter here … could control the degree of blend inside our blend tree. … Changing from an idle state animation … to a walking state animation. … The value of zero, the floating point value of zero … represented the idle state. … And the floating point value of one … represented the walk state. … But one of the things … that we didn't see in the preceding movie … was how we could control … the value of that parameter from script. … And that's what I want to demonstrate here. … I'm going to move to the project panel … and right-click here and choose create … and then select C+ script. … I'm going to call this cha controller … and then drag and drop this script … onto our character Ethan, inside the Unity scene. … Having then attached the script to Ethan here, … I'm going to move to Visual Studio, … where we can create the code … to interact with this animation parameter. … I'm going to double-click the script file …
Released
5/21/2019- Animating with animation curves
- Working with animation events
- Importing rigged, animated characters
- Configuring Mecanim graphs
- Controlling animation with parameters
- Working with Cinemachine
Share this video
Embed this video
Video: Working with parameters