Your controller and game
Responsive FX doesn't move your character and doesn't need to know how it moves, so it fits most games as they are. This page covers the cases that need one extra setting or one line of code.
Which "Steps come from" to pick #
| Your character | Pick | Why |
|---|---|---|
| First person, or any controller without foot animation | Automatic | A step every stride from the movement. Nothing to set up. |
| Animated, and its clips already have footstep events (Starter Assets, many animation packs) | Animation Events | Steps land exactly when the foot does. |
| Animated humanoid without events | Foot Bones | Responsive FX watches each foot come down. |
| Special movement with its own timing (a mech, a horse, network events) | Manual | Your code calls Step(), Jump() and Land(). |
Any character controller #
Put Surface Footsteps on the object that moves, or on the model under it. When it sits on the model and the controller is on a parent (a Character Controller, or a Rigidbody with a capsule), Responsive FX treats the whole character as its own body: none of its colliders count as ground.
Most controller packs (and Unity's Starter Assets) can play footsteps of their own. Turn those off, or every step is heard twice. The Setup Wizard silences Starter Assets for you, and Why No Footstep? warns when another script on the character looks like it plays footsteps.
- Walk, run and sprint come from the speed. If your run speed isn't the usual one, set Run Speed and Sprint Speed in the profile to match your controller.
- Crouching is found when the capsule shrinks. If your controller crouches without shrinking it, set Crouch Detection
to Manual and call
SetCrouching(true)/SetCrouching(false). - Root motion moves the object, so Automatic works. For exact timing use Animation Events.
- Big or tiny characters: strides are in metres. Use Stride Scale on the character, and raise Check Height and Check Depth for a giant.
Swimming, ladders, sliding, riding, cutscenes #
Call Pause Auto Steps when the special movement starts and Resume Auto Steps when it ends. Both are in the UnityEvent list, so a trigger or your controller's events can call them without code:
footsteps.SetAutoStepsPaused(true); // into the water, onto the ladder
footsteps.Step(Foot.Left, FootstepMovement.Walk); // your own steps still play (a rung, a stroke)
footsteps.SetAutoStepsPaused(false); // back on the ground: no stray landing
Teleports, respawns and pooled characters #
A jump of more than 4 m in one frame is never a step. For anything shorter (a respawn nearby, a pooled NPC reused),
call footsteps.ResetMotion() right after moving it. Disabling and enabling the component resets it too.
Pause and slow motion #
With Time.timeScale at 0 nothing plays. Slow motion slows the steps with the movement, because steps follow distance.
Responsive FX's sounds are normal Audio Sources, so AudioListener.pause pauses them like the rest of your game's sound, and
the profile's Audio Mixer Group sends them to your mixer.
Your own audio system (FMOD, Wwise, an audio manager) #
Put a component that implements IFootstepSoundPlayer in Sound Player. Responsive FX still finds the surface, effects,
footprints and AI noise, and hands each sound to your component instead of playing it. See Extending.
Multiplayer #
Responsive FX has no network code and needs none. Pick one of these per character, not both:
- Every client plays steps from what it sees (simplest): put Surface Footsteps on every player and NPC with Automatic. Remote players' movement plays their steps on each client.
- Steps follow the owner's events: use Manual on remote copies and call
Step()when your network event arrives.
Give the local player Spatial: Flat and remote players Full 3D.
Split screen #
Unity hears through one Audio Listener. With two players on one screen, use 3D sound with a generous Max Distance in the profile, or play local players' steps flat.
Many NPCs #
Each character does one short ground check a frame and makes up to four Audio Sources when it first steps. For crowds:
- turn off Effects and Footprints on background NPCs (This character: Off),
- use a profile with a smaller Max Distance and a lower Priority for NPCs than for the player,
- disable Surface Footsteps on NPCs far from the camera, and enable it again when they come close.
Terrain #
Terrain layers are read once, when the scene starts, in small pieces so even big terrains don't hitch. Several terrains
side by side work: each step reads the terrain it hit, and holes are respected. Painted at runtime? Call
library.RefreshTerrain(terrainData). Loaded a terrain at runtime? Call library.PrewarmTerrains().
Terrain shaders that blend by vertex colour or inside the shader (some MicroSplat and Polybrush setups) can't be read from the terrain's layers. Use Surface Zones for those areas, Surface Tags on objects, or map the terrain's layers that still exist.
Levels built at runtime and Addressables #
Nothing needs to be set up in advance: the first step on a new collider works out its surface, and the answer is
remembered. If you change a material or tag from code, call SurfaceCacheVersion.Bump().
Ask Responsive FX what a surface is #
Bullets, dropped items, tyres: use the same answer a footstep gets, zones included.
if (library.TryResolveAt(position, out var result)) PlayImpact(result.surface);
var fromHit = library.ResolveHit(hit);