docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor RenderTextureReader

    RenderTextureReader(RenderTexture, Camera, Action<int, NativeArray<T>, RenderTexture>)

    Creates a new RenderTextureReader<T> for the given RenderTexture, Camera, and image readback callback

    Declaration
    public RenderTextureReader(RenderTexture source, Camera cameraRenderingToSource, Action<int, NativeArray<T>, RenderTexture> imageReadCallback)
    Parameters
    Type Name Description
    RenderTexture source

    The RenderTexture to read from.

    Camera cameraRenderingToSource

    The Camera which renders to the given renderTexture. This is used to determine when to read from the texture.

    Action<int, NativeArray<T>, RenderTexture> imageReadCallback

    The callback to call after reading the texture

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