docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightUnitSlider

    Formats the provided descriptor into a linear slider with contextual slider markers, tooltips, and icons.

    Inheritance
    object
    LightUnitSlider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public class LightUnitSlider

    Constructors

    Name Description
    LightUnitSlider(LightUnitSliderUIDescriptor)

    Constructor with a LightUnitSliderUIDescriptor

    Fields

    Name Description
    m_Descriptor

    The LightUnitSliderUIDescriptor

    m_SerializedObject

    The SerializedObject that contains a Light

    Methods

    Name Description
    DoSlider(Rect, ref float, Vector2)

    Draws a linear slider mapped to the min/max value range. Override this for different slider behavior (texture background, power).

    DoSlider(Rect, ref float, Vector2, Vector2)

    Draws the slider

    Draw(Rect, SerializedProperty, ref float)

    Draws the slider in a given Rect

    GetLightUnitTooltip(string, float, string)

    Gets the tooltip

    GetPositionOnSlider(float)

    Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.

    GetPositionOnSlider(float, Vector2)

    Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.

    SetSerializedObject(SerializedObject)

    Modifies the SerializedObject for this Light slider

    SetValueToPreset(SerializedProperty, LightUnitSliderUIRange)

    The serialized property for color temperature is stored in the build-in light editor, and we need to use this object to apply the update.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)