Class LightUI
Contains a set of methods to help render the inspectors of Lights across SRP's
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public class LightUI
Methods
DrawColor(ISerializedLight, Editor)
Draws the color temperature for a serialized light
Declaration
public static void DrawColor(ISerializedLight serialized, Editor owner)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializedLight | serialized | The serizalized light |
| Editor | owner | The editor |
DrawIntensity(ISerializedLight, Editor)
Draws the intensity field and slider, including the light unit dropdown for a serialized light.
Declaration
public static void DrawIntensity(ISerializedLight serialized, Editor owner)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializedLight | serialized | The serialized light. |
| Editor | owner | The editor. |
DrawIntensityModifiers(ISerializedLight, bool)
Draws additional light intensity modifiers, depending on light type/unit for a serialized light.
Declaration
public static void DrawIntensityModifiers(ISerializedLight serialized, bool hideReflector = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializedLight | serialized | The serialized light. |
| bool | hideReflector | If true, the reflector checkbox will be hidden. |
DrawLightIntensityUnitPopup(Rect, LightUnit, LightType)
Draws a light unit dropdown.
Declaration
public static LightUnit DrawLightIntensityUnitPopup(Rect position, LightUnit selected, LightType type)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | position | Rectangle on the screen to use for the field. |
| LightUnit | selected | The light unit the field shows. |
| LightType | type | The type of the light. This determines which options are available. |
Returns
| Type | Description |
|---|---|
| LightUnit | The light unit that has been selected by the user. |