SurfaceAudio MotionGraphBehaviour
Overview
The SurfaceAudio behaviour plays an audio clip based on the current ground surface.
Inspector

Properties
| Name | Type | Description |
|---|---|---|
| Audio Data | SurfaceAudioData | The surface audio library for the audio clips. |
| When | Dropdown | When should the audio be played. Options are EnterAndExit, EnterOnly, ExitOnly. |
| Cast Direction | Dropdown | The direction to perform the footstep surface check. Available options are:
|
| Cast Vector | Vector3 | The direction to cast in for footstep surface checks. |
| Vector Parameter | VectorParameter | A vector parameter containing the direction vector to cast in for footstep surface checks. |
| Max Ray Distance | Float | The downward raycast length for the ground surface test. |