ARGOS | UNITY | WEBGL BUILD | TEST
Description
Render textures are textures that can be rendered to.
They can be used to implement image based rendering effects, dynamic shadows, projectors, reflections or surveillance cameras.
One typical usage of render textures is setting them as the “target texture” property of a Camera (Camera.targetTexture), this will make a camera render into a texture instead of rendering to the screen.
Keep in mind that render texture contents can become “lost” on certain events, like loading a new level, system going to a screensaver mode, in and out of fullscreen and so on. When that happens, your existing render textures will become “not yet created” again, you can check for that with IsCreated function.
As with other “native engine object” types, it is important to pay attention to the lifetime of any render textures and release them when you are finished using them with the Release function, as they will not be garbage collected like normal managed types.
See Also: Camera.targetTexture.