Class AudioCue

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

A sound hook: one of several clips played with a random pitch. Empty cues are silent, so every slot is optional. Cues are routed through TDMaker.Unity.View.AudioCuePlayer (pooled AudioSources).

public sealed class AudioCue
Inheritance
AudioCue
Inherited Members

Constructors

AudioCue()

public AudioCue()

Fields

clips

Candidate clips; one is picked at random per play.

public List<AudioClip> clips

Field Value

List<AudioClip>

minInterval

Minimum real seconds between two plays of this cue (prevents stacking when many units fire at once).

[Min(0)]
public float minInterval

Field Value

float

pitchMax

Highest random pitch.

[Range(0.1, 3)]
public float pitchMax

Field Value

float

pitchMin

Lowest random pitch.

[Range(0.1, 3)]
public float pitchMin

Field Value

float

spatialBlend

0 = 2D, 1 = fully positional.

[Range(0, 1)]
public float spatialBlend

Field Value

float

volume

Playback volume.

[Range(0, 1)]
public float volume

Field Value

float

Properties

HasClips

Whether the cue has at least one clip.

public bool HasClips { get; }

Property Value

bool