Skip to main content

AtmosphereSet

A class in Root.Township, Alta.Environmental.Atmosphere.

An asset listing which atmosphere plugins (sky, fog, ambient audio) to turn on or off for an area. Applied by AtmosphereManager.ReadAtmosphereSet.

Constructors​

MemberWhat it is
AtmosphereSet()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
List<int> disabledIndicesPlugin indexes to turn off when disableEverythingElse is off.
bool disableEverythingElseTurns off every plugin not in enabledIndices.
List<int> enabledIndicesPlugin indexes to turn on.
2 private and internal fields
MemberWhat it is
private AuxBus atmosphereAuxBusBacking field for AtmosphereAuxBus, a Wwise aux bus.
private int targetAudioSourceHash of the atmosphere plugin that plays audio. -1 means the first enabled plugin.

Properties​

MemberWhat it is
AuxBus AtmosphereAuxBus { get; }Wwise aux bus for this atmosphere.
bool HasOverridenAmbience { get; set; }Set by the manager when this set was applied with an ambient colour override.

Methods​

MemberWhat it is
AtmospherePlugin GetAudioPlayer(IList<AtmospherePlugin> plugins)The plugin to play ambient audio from: the target one if set, else the first enabled one. Null on headless.

Used in​

Members of other types that take, return or hold a AtmosphereSet: