docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Field mainLightIndex

    Holds the main light index from the VisibleLight list returned by culling. If there's no main light in the scene, mainLightIndex is set to -1. The main light is the directional light assigned as Sun source in light settings or the brightest directional light. CullingResults

    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public int mainLightIndex
    Returns
    Type Description
    int
    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)