So the documentation for the locomotion system says this:
"In your own scripts the Locomotion System can be blended in and out by using a motion group name as an animation name, for example:
This will fade the Locomotion System in over half a second."
This doesn't actually seem to work. When I try to do this exact thing with any of the locomotion groups I have setup Unity reports a null reference error like this:
"The animation state LocomotionAgitated could not be played because it couldn't be found! Please attach an animation clip with the name 'LocomotionAgitated' or call this function only for existing animations."
asked Jan 25 '12 at 06:09 PM
I figured this out - the locomotion system takes some time when the game is initialized to populate the clips that are generated, if you want to change the animation via script this method works, you just need to make sure it's not done right in the Start function.
answered Jan 28 '12 at 05:00 PM