AmbienceAudio
A class in Root.Township, the global namespace.
A sound source for ambience that applies its own volume through the AmbienceManager volume RTPC and can be muted. Client side; a component on ambience objects.
- Listed in Global namespace: A to B
- Inherits or implements
SoundSource
Constructors
| Member | What it is |
|---|---|
AmbienceAudio() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Properties
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void AssignVolumeProperty() | Runs on play: creates the volume RTPC value from AmbienceManager if needed and adds it to the sound's properties. |
private void Awake() | Hooks AssignVolumeProperty to the play event. |
private void OnDestroy() | Unhooks the play event and stops the sound. |
Used in
Members of other types that take, return or hold a AmbienceAudio: