PanelSettings.targetTexture

public RenderTexture targetTexture;

Description

Specifies a Render Texture to render the panel's UI on.

This is useful when you want to display UI on 3D geometry in the Scene. For an example of UI displayed on 3D objects via renderTextures, see the UI Toolkit samples (menu: <b>Window &gt; UI Toolkit &gt; Examples &gt; Rendering &gt; RenderTexture (Runtime)</b>).


Did you find this page useful? Please give it a rating: