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 |
---|---|
Light |
Constructor with a Light |
Fields
Name | Description |
---|---|
m_Descriptor | |
m_Serialized |
The Serialized |
Methods
Name | Description |
---|---|
Do |
Draws a linear slider mapped to the min/max value range. Override this for different slider behavior (texture background, power). |
Do |
Draws the slider |
Draw(Rect, Serialized |
Draws the slider in a given Rect |
Get |
Gets the tooltip |
Get |
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. |
Get |
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. |
Set |
Modifies the Serialized |
Set |
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. |