Really simple code here:
obj.animation[animationClip.name].wrapMode = animationWrapMode;
obj.animation[animationClip.name].weight = animationWeight;
obj.animation[animationClip.name].speed = animationSpeed;
For the inspector on this script I allow for slotting in the object you want animated (obj) the clip you want to play on that object, picking the wrapmode of the animation from a dropdown, and then setting floats for both weight and speed.
The object plays the animation just fine, and the speed and wrap mode options work perfectly. The weight option doesn’t seem to have any effect on the playback of the clip at all. I have a character just looking straight to the right, and it seems like if I set the weight on that clip to 0.5 they should only look halfway to the right. But they don’t, they still look all the way to the right.
Any thoughts on this?