Search Unity

Will UiElements support specific render target?

Discussion in 'UI Toolkit' started by pointcache, Jan 27, 2019.

  1. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    If i need to render ui to a rendertexture, and have a workflow similar to custom raycaster with ugui, will this be possible?
     
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    229
    You should be able to use a RenderTexture with the Image class.
    It has an "image" property that accept a Texture object, it also support UV so you can use an atlas with it if needed.