docs.unity3d.com
    Show / Hide Table of Contents

    Struct LightUnitSliderUIDescriptor

    Descriptor for Light Unit

    Namespace: UnityEditor.Rendering
    Syntax
    public struct LightUnitSliderUIDescriptor

    Constructors

    LightUnitSliderUIDescriptor(LightUnitSliderUIRange[], Single[], String, String, Boolean, Boolean)

    Constructor

    Declaration
    public LightUnitSliderUIDescriptor(LightUnitSliderUIRange[] valueRanges, float[] sliderDistribution, string cautionTooltip, string unitName, bool hasMarkers = true, bool clampValue = false)
    Parameters
    Type Name Description
    LightUnitSliderUIRange[] valueRanges

    The ranges that the value can have

    Single[] sliderDistribution

    The distribution

    String cautionTooltip

    Tooltip for caution

    String unitName

    The name of the unit

    Boolean hasMarkers

    If has markers

    Boolean clampValue

    If the value will be clamped to the valueRanges

    LightUnitSliderUIDescriptor(LightUnitSliderUIRange[], Single[], String, String, String, Boolean, Boolean)

    Constructor

    Declaration
    public LightUnitSliderUIDescriptor(LightUnitSliderUIRange[] valueRanges, float[] sliderDistribution, string belowRangeTooltip, string aboveRangeTooltip, string unitName, bool hasMarkers = true, bool clampValue = false)
    Parameters
    Type Name Description
    LightUnitSliderUIRange[] valueRanges

    The ranges that the value can have

    Single[] sliderDistribution

    The distribution

    String belowRangeTooltip

    The tooltip if the value goes below the range

    String aboveRangeTooltip

    The tooltip if the value goes above the range

    String unitName

    The name of the unit

    Boolean hasMarkers

    If has markers

    Boolean clampValue

    If the value will be clamped to the valueRanges

    Fields

    aboveRangeTooltip

    The tooltip if the value goes above the range

    Declaration
    public readonly string aboveRangeTooltip
    Field Value
    Type Description
    String

    belowRangeTooltip

    The tooltip if the value goes below the range

    Declaration
    public readonly string belowRangeTooltip
    Field Value
    Type Description
    String

    clampValue

    If the value needs to be clamp

    Declaration
    public readonly bool clampValue
    Field Value
    Type Description
    Boolean

    hasMarkers

    If has markers

    Declaration
    public readonly bool hasMarkers
    Field Value
    Type Description
    Boolean

    sliderDistribution

    The distribution

    Declaration
    public readonly float[] sliderDistribution
    Field Value
    Type Description
    Single[]

    sliderRange

    The ranges that the slider can have

    Declaration
    public readonly Vector2 sliderRange
    Field Value
    Type Description
    Vector2

    unitName

    The name of the unit

    Declaration
    public readonly string unitName
    Field Value
    Type Description
    String

    valueRanges

    The ranges that the value can have

    Declaration
    public readonly LightUnitSliderUIRange[] valueRanges
    Field Value
    Type Description
    LightUnitSliderUIRange[]

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023