docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightUI

    Contains a set of methods to help render the inspectors of Lights across SRP's

    Inheritance
    object
    LightUI
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)