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[] |