Skip to main content

SpaceDefinedAtmosphere

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

Blends between atmosphere sets using placed ambience points: the closer point pair and progress between them decide the ambient colour and audio.

Constructors​

MemberWhat it is
SpaceDefinedAtmosphere()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private AmbienceSpacePoint[] ambientPointsSerialized ambience points.

Properties​

MemberWhat it is
override IEnumerable<AmbienceSpacePoint> Points { get; }The ambience points.

Methods​

MemberWhat it is
protected override void ExitArea()On leaving the area, applies whichever set of the closest point pair the player was nearer.
protected override void SendNewCloserPoint(AmbienceSpacePoint from, AmbienceSpacePoint to, float progress)Blends ambient colour between the two sets and crossfades their ambience audio by progress.