docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LightHasBeenPlaceAndRenderedAtLeastOnce

    LightHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData, int)

    This function verifies if the light has its shadow maps placed in the cached shadow atlas and if it was rendered at least once.

    Declaration
    public bool LightHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData lightData, int numberOfCascades = 0)
    Parameters
    Type Name Description
    HDAdditionalLightData lightData

    The light that we want to check.

    int numberOfCascades

    Optional parameter required only when querying data about a directional light. It needs to match the number of cascades used by the directional light.

    Returns
    Type Description
    bool

    True if the shadow map is already placed in the atlas and rendered at least once, false otherwise.

    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)