Table of Contents

Class AudioController

Namespace
Interaction

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.

public class AudioController : MonoBehaviour
Inheritance
object
AudioController

Fields

CombineSound

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

public AudioClip CombineSound

Field Value

AudioClip

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

DeselectSound

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

public AudioClip DeselectSound

Field Value

AudioClip

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

ErrorSound

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

public AudioClip ErrorSound

Field Value

AudioClip

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

GrabSound

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

public AudioClip GrabSound

Field Value

AudioClip

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

InteractSound

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

public AudioClip InteractSound

Field Value

AudioClip

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

ReleaseSound

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

public AudioClip ReleaseSound

Field Value

AudioClip

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

SelectSound

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

public AudioClip SelectSound

Field Value

AudioClip

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