Struct RuntimeSunlightSettings
Struct for storing directional sunlight settings stored in a scene.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SceneSystem
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public struct RuntimeSunlightSettings
Fields
Color
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
Intensity
Declaration
public float Intensity
Field Value
Type | Description |
---|---|
Single |
UseSunlight
Declaration
public bool UseSunlight
Field Value
Type | Description |
---|---|
Boolean |
XRotation
Declaration
public float XRotation
Field Value
Type | Description |
---|---|
Single |
YRotation
Declaration
public float YRotation
Field Value
Type | Description |
---|---|
Single |
ZRotation
Declaration
public float ZRotation
Field Value
Type | Description |
---|---|
Single |
Methods
Black(RuntimeSunlightSettings)
Sets continuous settings to 'black' without changing any discrete features.
Declaration
public static RuntimeSunlightSettings Black(RuntimeSunlightSettings source)
Parameters
Type | Name | Description |
---|---|---|
RuntimeSunlightSettings | source |
Returns
Type | Description |
---|---|
RuntimeSunlightSettings |
Lerp(RuntimeSunlightSettings, RuntimeSunlightSettings, Single)
Lerps between two settings
Declaration
public static RuntimeSunlightSettings Lerp(RuntimeSunlightSettings from, RuntimeSunlightSettings to, float t)
Parameters
Type | Name | Description |
---|---|---|
RuntimeSunlightSettings | from | |
RuntimeSunlightSettings | to | |
Single | t | Value from 0 to 1 |
Returns
Type | Description |
---|---|
RuntimeSunlightSettings |