Struct LightUnitSliderUIDescriptor
Descriptor for Light Unit
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public struct LightUnitSliderUIDescriptor
Constructors
LightUnitSliderUIDescriptor(LightUnitSliderUIRange[], float[], string, string, bool, bool)
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 |
float[] | sliderDistribution | The distribution |
string | cautionTooltip | Tooltip for caution |
string | unitName | The name of the unit |
bool | hasMarkers | If has markers |
bool | clampValue | If the value will be clamped to the valueRanges |
LightUnitSliderUIDescriptor(LightUnitSliderUIRange[], float[], string, string, string, bool, bool)
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 |
float[] | 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 |
bool | hasMarkers | If has markers |
bool | 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 |
---|---|
bool |
hasMarkers
If has markers
Declaration
public readonly bool hasMarkers
Field Value
Type | Description |
---|---|
bool |
sliderDistribution
The distribution
Declaration
public readonly float[] sliderDistribution
Field Value
Type | Description |
---|---|
float[] |
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[] |