docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnCameraSetup

    OnCameraSetup(CommandBuffer, ref RenderingData)

    This method is called by the renderer before rendering a camera Override this method if you need to to configure render targets and their clear state, and to create temporary render target textures. If a render pass doesn't override this method, this render pass renders to the active Camera's render target. You should never call CommandBuffer.SetRenderTarget. Instead call ConfigureTarget and ConfigureClear.

    Declaration
    public virtual void OnCameraSetup(CommandBuffer cmd, ref RenderingData renderingData)
    Parameters
    Type Name Description
    CommandBuffer cmd

    CommandBuffer to enqueue rendering commands. This will be executed by the pipeline.

    RenderingData renderingData

    Current rendering state information

    See Also
    ConfigureTarget(RenderTargetIdentifier, RenderTargetIdentifier)
    ConfigureClear(ClearFlag, Color)
    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)