Version: 2021.2
LanguageEnglish
  • C#

PanelSettings.targetTexture

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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>).