docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Scriptable Render Pipeline callbacks reference

    When working with SRP, use these to make Unity call your C# code at specific times.

    • RenderPipeline.Render is the main entry point to the SRP. Unity calls this method automatically. If you are writing a custom render pipeline, this is where you begin to write your code.
    • The RenderPipelineManager class has the following events that you can subscribe to, so that you can execute custom code at specific points in the render loop:
      • beginFrameRendering - Note: This can generate garbage. Use beginContextRendering instead.
      • endFrameRendering - Note: This can generate garbage. Use endContextRendering instead.
      • beginContextRendering
      • endContextRendering
      • beginCameraRendering
      • endCameraRendering
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)