Struct LightUnitSliderUIRange
The UI range of the slider
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public struct LightUnitSliderUIRange
Constructors
LightUnitSliderUIRange(Texture2D, string, Vector2)
Constructor
Declaration
public LightUnitSliderUIRange(Texture2D icon, string tooltip, Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | icon | The icon |
string | tooltip | The tooltip |
Vector2 | value | The min and max values |
LightUnitSliderUIRange(Texture2D, string, Vector2, float)
Constructor
Declaration
public LightUnitSliderUIRange(Texture2D icon, string tooltip, Vector2 value, float presetValue)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | icon | The icon |
string | tooltip | The tooltip |
Vector2 | value | The min and max values |
float | presetValue | The value given by the preset |
Fields
content
The content
Declaration
public GUIContent content
Field Value
Type | Description |
---|---|
GUIContent |
presetValue
The value of the preset
Declaration
public float presetValue
Field Value
Type | Description |
---|---|
float |
value
The value
Declaration
public Vector2 value
Field Value
Type | Description |
---|---|
Vector2 |
Methods
CautionRange(string, float)
Constructor
Declaration
public static LightUnitSliderUIRange CautionRange(string tooltip, float value)
Parameters
Type | Name | Description |
---|---|---|
string | tooltip | The tooltip |
float | value | The min and max values |
Returns
Type | Description |
---|---|
LightUnitSliderUIRange |