docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReadbackRequest

    Holds the state for a single GPU texture readback operation managed by BatchReadback.

    Inheritance
    object
    ReadbackRequest
    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 class ReadbackRequest

    Fields

    callback

    Completion callback function.

    Declaration
    public Func<AsyncRequest<CaptureCamera.CaptureState>, AsyncRequest.Result> callback
    Field Value
    Type Description
    Func<AsyncRequest<CaptureCamera.CaptureState>, AsyncRequest.Result>

    channel

    Channel this readback request is for.

    Declaration
    public CaptureCamera.Channel channel
    Field Value
    Type Description
    CaptureCamera.Channel

    renderTexture

    Render texture for which the readback is requested

    Declaration
    public RenderTexture renderTexture
    Field Value
    Type Description
    RenderTexture

    request

    The request associated with this batched readback instance.

    Declaration
    public AsyncRequest<CaptureCamera.CaptureState> request
    Field Value
    Type Description
    AsyncRequest<CaptureCamera.CaptureState>

    texture

    Texture to which the readback data is to be copied to.

    Declaration
    public Texture2D texture
    Field Value
    Type Description
    Texture2D

    Methods

    InvokeCallback(byte[])

    Invoke the request functor upon completion of the readback request.

    Declaration
    public void InvokeCallback(byte[] data)
    Parameters
    Type Name Description
    byte[] data

    The raw pixel bytes read back from the GPU texture.

    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)