docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RenderTextureReader<T>

    RenderTextureReader reads a RenderTexture from the GPU each frame and passes the data back through a provided callback.

    Inheritance
    object
    RenderTextureReader<T>
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: solution.dll
    Syntax
    public class RenderTextureReader<T> : IDisposable where T : struct
    Type Parameters
    Name Description
    T

    The type of the raw texture data to be provided.

    Constructors

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

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

    Methods

    Name Description
    Dispose()

    Shut down the reader, waiting for all requests to return.

    WaitForAllImages()

    Synchronously wait for all image requests to complete.

    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)