Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to use Unity to do off-screen rendering?

Discussion in 'Documentation' started by italiansc, Oct 4, 2021.

  1. italiansc

    italiansc

    Joined:
    Sep 14, 2021
    Posts:
    12
    Hi:
    I want unity to render frame at a fixed-size(such as 1920x1080) and fixed framerate, and output to a texture,not a window,then I can copy the rendered image from texture to a cuda buffer,and bring the image to nv video codec to do video encoding; I guess I should use RenderTexture, but I was for the first time using unity,I dont know how to use RenderTexture to do the off-screen rendering, so please give me some documents and examples about it, thanks!