Search Results for

    Show / Hide Table of Contents

    Class AudioController

    The AudioController is a behaviour automatically attached to a TrainAR Object on conversion. It triggers its sounds for selection, deselection, grabbing, releasing and correct/incorrect interactions/combinations specific to this object.

    When attached, it holds default sounds. Those can be replaced in the Unity Editor Inspector.

    Inheritance
    System.Object
    AudioController
    Namespace: Interaction
    Assembly: Assembly-CSharp.dll
    Syntax
    public class AudioController : MonoBehaviour

    Fields

    | Improve this Doc View Source

    CombineSound

    The audioclip that is played when a TrainAR Object is combined with. This only plays when the statemachine accepts the statechange.

    Declaration
    public AudioClip CombineSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    DeselectSound

    The audioclip that is played when a TrainAR Object is deselected.

    Declaration
    public AudioClip DeselectSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    ErrorSound

    The audioclip that is played when a requested interaction with this object was denied by the statemachine.

    Declaration
    public AudioClip ErrorSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    GrabSound

    The audioclip that is played when a TrainAR Object is grabbed.

    Declaration
    public AudioClip GrabSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    InteractSound

    The audioclip that is played when a TrainAR Object is interacted with. This only plays when the statemachine accepts the statechange.

    Declaration
    public AudioClip InteractSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    ReleaseSound

    The audioclip that is played when a TrainAR Object is released.

    Declaration
    public AudioClip ReleaseSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    | Improve this Doc View Source

    SelectSound

    The audioclip that is played when a TrainAR Object is selected.

    Declaration
    public AudioClip SelectSound
    Field Value
    Type Description
    AudioClip

    Default clip is referenced. If none is referenced it gets ignored.

    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation