docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateLight

    CreateLight(string, LightType, Color, double, double, uint)

    Create an occurrence with a light component

    Declaration
    public uint CreateLight(string name, LightType lightType, Color color, double power = 1, double cutOff = 20, uint parent = 0)
    Parameters
    Type Name Description
    string name

    Name of the light

    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

    uint parent

    The parent of the light occurrence

    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)