docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddLight

    AddLight(Light, out int)

    Creates a glTF light based on a Unity light Uses the KHR_lights_punctual extension.

    Declaration
    public bool AddLight(Light uLight, out int lightId)
    Parameters
    Type Name Description
    Light uLight

    Unity light

    int lightId

    glTF light index

    Returns
    Type Description
    bool

    True if light was successfully created, false otherwise

    Implements
    IGltfWritable.AddLight(Light, out int)
    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)