docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnBeforeRender

    OnBeforeRender(in Component, in Bounds, ShadowShape2D)

    Called before 2D lighting is rendered each frame

    Declaration
    public abstract void OnBeforeRender(in Component sourceComponent, in Bounds worldCullingBounds, ShadowShape2D persistantShadowShape)
    Parameters
    Type Name Description
    Component sourceComponent

    The component associated with the provider

    Bounds worldCullingBounds

    The bounds enclosing the region of the view frustum and all visible lights

    ShadowShape2D persistantShadowShape

    An instance of ShadowShape2D that is used by the ShadowCaster2D

    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)