docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsValidLightUnitForType

    IsValidLightUnitForType(HDLightType, SpotLightShape, LightUnit)

    Check if the given type is supported by this type and shape.

    Declaration
    public static bool IsValidLightUnitForType(HDLightType type, SpotLightShape spotLightShape, LightUnit unit)
    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.

    LightUnit unit

    The unit to check

    Returns
    Type Description
    bool

    True: this unit is supported

    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)