docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddHDLight

    AddHDLight(GameObject, HDLightTypeAndShape)

    Add a new HDRP Light to a GameObject

    Declaration
    public static HDAdditionalLightData AddHDLight(this GameObject gameObject, HDLightTypeAndShape lightTypeAndShape)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject on which the light is going to be added

    HDLightTypeAndShape lightTypeAndShape

    The Type of the HDRP light to Add

    Returns
    Type Description
    HDAdditionalLightData

    The created HDRP Light component

    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)