Class DayNight
Toggles lights and particle systems, switch emission maps color according to day time.
Assembly: Assembly-CSharp.dll
Syntax
[HelpURL("http://www.dfworkshop.net/projects/daggerfall-unity/modding/models-flats/#daynight")]
public class DayNight : MonoBehaviour
Fields
|
Improve this Doc
View Source
dayColor
Declaration
[ColorUsage(false, true)]
public Color dayColor
Field Value
|
Improve this Doc
View Source
emissionColors
Declaration
[Header("Windows Emission Map")]
[Tooltip("Apply colors to the emission map according to day time.")]
public DayNight.EmissionColors emissionColors
Field Value
|
Improve this Doc
View Source
lights
Declaration
[Tooltip("This light will be enabled only at night.")]
public Light[] lights
Field Value
|
Improve this Doc
View Source
materialIndex
Declaration
[Tooltip("Index of emissive material for the MeshRender.")]
public uint materialIndex
Field Value
|
Improve this Doc
View Source
nightColor
Declaration
[ColorUsage(false, true)]
public Color nightColor
Field Value
|
Improve this Doc
View Source
particles
Declaration
[Tooltip("This particle system will emit only at night.")]
public ParticleSystem[] particles
Field Value
|
Improve this Doc
View Source
toggleLighting
Declaration
[Header("Lighting")]
[Tooltip("Disable lights and particles at day time.")]
public DayNight.LightingSelection toggleLighting
Field Value
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)