docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddLightComponent

    AddLightComponent(uint, LightType, Color, double, double)

    Add a light component to an occurrence

    Declaration
    public uint AddLightComponent(uint occurrence, LightType lightType, Color color, double power = 1, double cutOff = 20)
    Parameters
    Type Name Description
    uint occurrence

    The occurrence to add the new component

    LightType lightType

    The type of the light

    Color color

    Color of the light

    double power

    The power of the light

    double cutOff

    The cutoff angle of the light

    Returns
    Type Description
    uint
    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)