docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SkySettings

    Base class for custom Sky Settings.

    Inheritance
    object
    Object
    ScriptableObject
    VolumeComponent
    SkySettings
    GradientSky
    HDRISky
    PhysicallyBasedSky
    Implements
    IApplyRevertPropertyContextMenuItemProvider
    Inherited Members
    VolumeComponent.active
    VolumeComponent.displayName
    VolumeComponent.parameters
    VolumeComponent.OnEnable()
    VolumeComponent.OnDisable()
    VolumeComponent.Override(VolumeComponent, float)
    VolumeComponent.SetAllOverridesTo(bool)
    VolumeComponent.AnyPropertiesIsOverridden()
    VolumeComponent.OnDestroy()
    VolumeComponent.Release()
    VolumeComponent.TryGetRevertMethodForFieldName(SerializedProperty, out Action<SerializedProperty>)
    VolumeComponent.GetSourceTerm()
    VolumeComponent.TryGetApplyMethodForFieldName(SerializedProperty, out Action<SerializedProperty>)
    VolumeComponent.GetSourceName(Component)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    public abstract class SkySettings : VolumeComponent, IApplyRevertPropertyContextMenuItemProvider

    Fields

    desiredLuxValue

    Absolute intensity (in lux) of the sky.

    Declaration
    [Tooltip("Sets the absolute intensity (in Lux) of the current HDR texture set in HDRI Sky. Functions as a Lux intensity multiplier for the sky.")]
    public FloatParameter desiredLuxValue
    Field Value
    Type Description
    FloatParameter

    exposure

    Exposure of the sky.

    Declaration
    [Tooltip("Sets the exposure of the sky in EV.")]
    public FloatParameter exposure
    Field Value
    Type Description
    FloatParameter

    includeSunInBaking

    True if the sun disk should be included in the baking information (where available).

    Declaration
    [Tooltip("When enabled, HDRP uses the Sun Disk in baked lighting.")]
    public BoolParameter includeSunInBaking
    Field Value
    Type Description
    BoolParameter

    multiplier

    Intensity Multipler of the sky.

    Declaration
    [Tooltip("Sets the intensity multiplier for the sky.")]
    public MinFloatParameter multiplier
    Field Value
    Type Description
    MinFloatParameter

    rotation

    Rotation of the sky.

    Declaration
    [Tooltip("Sets the rotation of the sky.")]
    public ClampedFloatParameter rotation
    Field Value
    Type Description
    ClampedFloatParameter

    skyIntensityMode

    Intensity mode of the sky.

    Declaration
    [Tooltip("Specifies the intensity mode HDRP uses for the sky.")]
    public SkyIntensityParameter skyIntensityMode
    Field Value
    Type Description
    SkyIntensityParameter

    updateMode

    Update mode of the sky.

    Declaration
    [Tooltip("Specifies when HDRP updates the environment lighting. When set to OnDemand, use HDRenderPipeline.RequestSkyEnvironmentUpdate() to request an update.")]
    public EnvUpdateParameter updateMode
    Field Value
    Type Description
    EnvUpdateParameter

    updatePeriod

    In case of real-time update mode, time between updates. 0 means every frame.

    Declaration
    [Tooltip("Sets the period, in seconds, at which HDRP updates the environment ligting (0 means HDRP updates it every frame).")]
    public MinFloatParameter updatePeriod
    Field Value
    Type Description
    MinFloatParameter

    upperHemisphereLuxColor

    Informative helper that displays Show the color of Shadow.

    Declaration
    [Tooltip("Informative helper that displays Show the color of Shadow.")]
    public Vector3Parameter upperHemisphereLuxColor
    Field Value
    Type Description
    Vector3Parameter

    upperHemisphereLuxValue

    Informative helper that displays the relative intensity (in Lux) for the current HDR texture set in HDRI Sky.

    Declaration
    [Tooltip("Informative helper that displays the relative intensity (in Lux) for the current HDR texture set in HDRI Sky.")]
    public MinFloatParameter upperHemisphereLuxValue
    Field Value
    Type Description
    MinFloatParameter

    Methods

    GetHashCode()

    Returns the hash code of the sky parameters. When used with PBR Sky please use the GetHashCode variant that takes a camera as parameter.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code of the sky parameters.

    Overrides
    UnityEngine.Rendering.VolumeComponent.GetHashCode()

    GetHashCode(Camera)

    Returns the hash code of the sky parameters.

    Declaration
    public virtual int GetHashCode(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera we want to use to compute the hash of the sky.

    Returns
    Type Description
    int

    The hash code of the sky parameters.

    GetIntensityFromSettings()

    Returns the sky intensity as determined by this SkySetting.

    Declaration
    public float GetIntensityFromSettings()
    Returns
    Type Description
    float

    The sky intensity.

    GetSkyRendererType()

    Returns the class type of the SkyRenderer associated with this Sky Settings.

    Declaration
    public abstract Type GetSkyRendererType()
    Returns
    Type Description
    Type

    The class type of the SkyRenderer associated with this Sky Settings.

    GetUniqueID(Type)

    Returns the sky type unique ID. Use this to override the skyType in the Visual Environment volume component.

    Declaration
    public static int GetUniqueID(Type type)
    Parameters
    Type Name Description
    Type type

    Type of the sky.

    Returns
    Type Description
    int

    The unique ID for the requested sky type.

    GetUniqueID<T>()

    Returns the sky type unique ID. Use this to override the skyType in the Visual Environment volume component.

    Declaration
    public static int GetUniqueID<T>()
    Returns
    Type Description
    int

    The unique ID for the requested sky type.

    Type Parameters
    Name Description
    T

    Type of the sky.

    SignificantlyDivergesFrom(SkySettings)

    Determines if the SkySettings is significantly divergent from another. This is going to be used to determine whether to reset completely the ambient probe instead of using previous one when waiting for current data upon changes. Override this to have a per-sky specific heuristic.

    Declaration
    public virtual bool SignificantlyDivergesFrom(SkySettings otherSettings)
    Parameters
    Type Name Description
    SkySettings otherSettings

    The settings to compare with.

    Returns
    Type Description
    bool

    Whether the settings are deemed very different.

    Implements

    IApplyRevertPropertyContextMenuItemProvider
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)