Class LightUnitSlider
Formats the provided descriptor into a linear slider with contextual slider markers, tooltips, and icons.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public class LightUnitSlider
Constructors
Name | Description |
---|---|
LightUnitSlider(LightUnitSliderUIDescriptor) | Constructor with a LightUnitSliderUIDescriptor |
Fields
Name | Description |
---|---|
m_Descriptor | |
m_SerializedObject | The SerializedObject that contains a Light |
Methods
Name | Description |
---|---|
DoSlider(Rect, ref float, Vector2) | Draws a linear slider mapped to the min/max value range. Override this for different slider behavior (texture background, power). |
DoSlider(Rect, ref float, Vector2, Vector2) | Draws the slider |
Draw(Rect, SerializedProperty, ref float) | Draws the slider in a given Rect |
GetLightUnitTooltip(string, float, string) | Gets the tooltip |
GetPositionOnSlider(float) | Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider. |
GetPositionOnSlider(float, Vector2) | Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider. |
SetSerializedObject(SerializedObject) | Modifies the SerializedObject for this Light slider |
SetValueToPreset(SerializedProperty, LightUnitSliderUIRange) | The serialized property for color temperature is stored in the build-in light editor, and we need to use this object to apply the update. |