docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsLightEnabled

    IsLightEnabled(GameObject)

    Whether a light should be rendered.

    Declaration
    public bool IsLightEnabled(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    The game object of the light to be rendered.

    Returns
    Type Description
    bool

    true when the light must be rendered, false when it should be ignored.

    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)