Show / Hide Table of Contents

Class DayNight

Toggles lights and particle systems, switch emission maps color according to day time.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
DayNight
Namespace: DaggerfallWorkshop.Utility.AssetInjection
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
Type Description
Color
| 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
Type Description
DayNight.EmissionColors
| Improve this Doc View Source

lights

Declaration
[Tooltip("This light will be enabled only at night.")]
public Light[] lights
Field Value
Type Description
Light[]
| Improve this Doc View Source

materialIndex

Declaration
[Tooltip("Index of emissive material for the MeshRender.")]
public uint materialIndex
Field Value
Type Description
UInt32
| Improve this Doc View Source

nightColor

Declaration
[ColorUsage(false, true)]
public Color nightColor
Field Value
Type Description
Color
| Improve this Doc View Source

particles

Declaration
[Tooltip("This particle system will emit only at night.")]
public ParticleSystem[] particles
Field Value
Type Description
ParticleSystem[]
| Improve this Doc View Source

toggleLighting

Declaration
[Header("Lighting")]
[Tooltip("Disable lights and particles at day time.")]
public DayNight.LightingSelection toggleLighting
Field Value
Type Description
DayNight.LightingSelection

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX