bool True if the texture is created, else false.
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.
See Also: Release, IsCreated functions.
using UnityEngine;
public class Example : MonoBehaviour { public RenderTexture rt;
void Start() { rt = new RenderTexture(256, 256, 16, RenderTextureFormat.ARGB32); rt.Create(); } }
Did you find this page useful? Please give it a rating: