Skip to main content

LightSettings

A class in Root.Township, the global namespace.

Applies a skybox and ambient colour when enabled, and deactivates the previously active LightSettings object.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Color ambienceAmbient light colour to apply.
private static LightSettings currentThe settings object applied last.
private Material skyboxSkybox material to apply.

Methods​

1 private and internal method
MemberWhat it is
private void OnEnable()Deactivates the last active settings object and applies this one's skybox and ambient light.