mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Struct RuntimeSunlightSettings

    Struct for storing directional sunlight settings stored in a scene.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Microsoft.MixedReality.Toolkit.SceneSystem
    Assembly: cs.temp.dll.dll
    Syntax
    public struct RuntimeSunlightSettings

    Fields

    Color

    Declaration
    public Color Color
    Field Value
    Type Description
    Color

    Color

    Declaration
    public Color Color
    Field Value
    Type Description
    Color

    Intensity

    Declaration
    public float Intensity
    Field Value
    Type Description
    Single

    Intensity

    Declaration
    public float Intensity
    Field Value
    Type Description
    Single

    UseSunlight

    Declaration
    public bool UseSunlight
    Field Value
    Type Description
    Boolean

    UseSunlight

    Declaration
    public bool UseSunlight
    Field Value
    Type Description
    Boolean

    XRotation

    Declaration
    public float XRotation
    Field Value
    Type Description
    Single

    XRotation

    Declaration
    public float XRotation
    Field Value
    Type Description
    Single

    YRotation

    Declaration
    public float YRotation
    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

    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

    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

    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
    In This Article
    • Fields
      • Color
      • Color
      • Intensity
      • Intensity
      • UseSunlight
      • UseSunlight
      • XRotation
      • XRotation
      • YRotation
      • YRotation
      • ZRotation
      • ZRotation
    • Methods
      • Black(RuntimeSunlightSettings)
      • Black(RuntimeSunlightSettings)
      • Lerp(RuntimeSunlightSettings, RuntimeSunlightSettings, Single)
      • Lerp(RuntimeSunlightSettings, RuntimeSunlightSettings, Single)
    Back to top Generated by DocFX