⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    SurfaceAudio MotionGraphBehaviour

    Overview

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

    Inspector

    SurfaceAudio

    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:
    • Down casts downwards (based on the character up vector).
    • LocalVector casts based on the Cast Vector property in local space.
    • WorldVector casts based on the Cast Vector property in world space.
    • WorldParameter casts based on the vector value of the Vector Parameter property in world space.
    • WorldParameterInverse casts based on the flipped vector value of the Vector Parameter property in world space.
    • LocalParameter casts based on the vector value of the Vector Parameter property in local space.
    • LocalParameterInverse casts based on the flipped vector value of the Vector Parameter property in local space.
    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.

    See Also

    Surfaces

    Audio Systems

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX