Show / Hide Table of Contents

Class SunlightManager

Changes angle of directional light to simulate sunrise through sunset.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
SunlightManager
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(Light))]
public class SunlightManager : MonoBehaviour

Fields

| Improve this Doc View Source

Angle

Declaration
public float Angle
Field Value
Type Description
Single
| Improve this Doc View Source

defaultScaleFactor

Declaration
public const float defaultScaleFactor = 1F
Field Value
Type Description
Single
| Improve this Doc View Source

defaultShadowStrength

Declaration
public const float defaultShadowStrength = 1F
Field Value
Type Description
Single
| Improve this Doc View Source

IndirectLight

Declaration
public Light IndirectLight
Field Value
Type Description
Light
| Improve this Doc View Source

LightCurve

Declaration
public AnimationCurve LightCurve
Field Value
Type Description
AnimationCurve
| Improve this Doc View Source

LocalPlayer

Declaration
public GameObject LocalPlayer
Field Value
Type Description
GameObject
| Improve this Doc View Source

OtherLights

Declaration
public Light[] OtherLights
Field Value
Type Description
Light[]
| Improve this Doc View Source

ScaleFactor

Declaration
[Range(0F, 1F)]
public float ScaleFactor
Field Value
Type Description
Single
| Improve this Doc View Source

ShadowStrength

Declaration
[Range(0F, 1F)]
public float ShadowStrength
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

DaylightScale

Gets daylight light scale which peaks at midday and wanes at dusk at dawn.

Declaration
public float DaylightScale { get; }
Property Value
Type Description
Single

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
  • Fields
    • Angle
    • defaultScaleFactor
    • defaultShadowStrength
    • IndirectLight
    • LightCurve
    • LocalPlayer
    • OtherLights
    • ScaleFactor
    • ShadowStrength
  • Properties
    • DaylightScale
  • Extension Methods
Back to top Generated by DocFX