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
Namespace: Interaction
Assembly: Assembly-CSharp.dll
Syntax
public class AudioController : MonoBehaviour
Fields
| Improve this Doc View SourceCombineSound
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. |
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. |
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. |
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. |
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. |
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. |
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. |