Unity - Scripting API: RenderTexture.Create
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.
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.
Declaration
public bool Create();
Returns
bool True if the texture is created, else false.
Description
Actually creates the RenderTexture.
RenderTexture constructor does not actually create the hardware texture;
by default the texture is created the first time it is set active.
Calling Create lets you create it up front. Create does nothing
if the texture is already created.
The initial contents of a newly created render texture are undefined. On some platforms and APIs the contents will default to black, but you shouldn't depend on this. You can use LoadStoreActionDebugModeSettings to highlight undefined areas of the display, to help you debug rendering problems on mobile platforms.