
Specifies the value to set the Speed Animator parameter to. The minimum and maximum value that the SpeedChangeMultiplier can change the InputVector value to. This value will affect the Character Locomotion’s Input Vector value. The speed multiplier when the ability is active. It doesn’t matter where this ability is placed within the list because it is a concurrent ability. Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.

This can also be used in reverse – if you’d like the character to sneak then the Speed Change Multiplier should be set to 0.5 so a sneaking animation can be added to the blend tree when the Horizontal or Forward Movement parameters have a value of 0.5. With this setup when the Horizontal or Forward Movement parameter has a value of -2 or 2 then the character will play the running animation. Notice for any of the running animations it blends based on a value of 2: For an example take a look at the Movement blend tree within the Base Layer -> Movement substate. When the Speed Change ability is active it will multiply the Horizontal and Forward Movement Animator parameters which will then allow the Animator to know that it should play an animation that has a different speed. When the character uses root motion the Speed Change ability doesn’t actually change the character’s speed – it is still up to the animation to change the character’s speed. This parameter can persist when other abilities are active so those abilities know that the character has a different speed. A Speed value of 0 indicates that the ability is not active. When the ability activates it will set the Speed Animator parameter.

This script sets the pitch of the audio at the start, and then gradually turns it down to. Choose an audio clip in the AudioClip field. The AudioSettings class contains various bits of global information relating to the sound system, but most importantly it contains API that allows resetting the audio system at runtime in order to change settings such as speaker mode, sample rate (if supported by the platform), DSP buffer size and real/virtual voice counts. Attach an AudioSource to your GameObject (Click Add Component and go to Audio > Audio Source ). This ability will most commonly be used for running but can be used for other speeds such as sneaking. Similarly decreasing the pitch less than one makes the clip sound lower. The Speed Change ability allows the character to change speeds.
