docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CaptureRenderTexture

    Capture class for capturing RenderTexture contents.

    Inheritance
    object
    CaptureRenderTexture
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class CaptureRenderTexture

    Methods

    Capture(RenderTexture, Func<AsyncRequest<object>, Result>)

    Asynchronously reads back the contents of the given RenderTexture and invokes the completion functor with the raw byte data. Falls back to synchronous readback when async GPU readback is not available on the current platform.

    Declaration
    public static AsyncRequest<object> Capture(RenderTexture src, Func<AsyncRequest<object>, AsyncRequest.Result> functor = null)
    Parameters
    Type Name Description
    RenderTexture src

    RenderTexture to capture.

    Func<AsyncRequest<object>, AsyncRequest.Result> functor

    Completion functor for handling the captured data. The object passed is a byte[] of the captured data.

    Returns
    Type Description
    AsyncRequest<object>

    AsyncRequest<object>

    In This Article
    Back to top
    Copyright © 2026 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)