docs.unity.cn
    Show / Hide Table of Contents

    Struct LightUnitSliderUIDescriptor

    Descriptor for Light Unit

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 21 July 2023