docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSupportedLightUnits

    GetSupportedLightUnits()

    Get the list of supported light units depending on the current light type.

    Declaration
    public LightUnit[] GetSupportedLightUnits()
    Returns
    Type Description
    LightUnit[]

    GetSupportedLightUnits(HDLightType, SpotLightShape)

    Give the supported lights unit for the given parameters

    Declaration
    public static LightUnit[] GetSupportedLightUnits(HDLightType type, SpotLightShape spotLightShape)
    Parameters
    Type Name Description
    HDLightType type

    The type of the light

    SpotLightShape spotLightShape

    the shape of the spot.You can put anything in case it is not a spot light.

    Returns
    Type Description
    LightUnit[]

    Array of supported units

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)