RenderTexture.setActive

Activate or deactivate the render-texture for rendering.

This function makes the render-texture's context current for future OpenGL rendering operations (so you shouldn't care about it if you're not doing direct OpenGL stuff).

Only one context can be current in a thread, so if you want to draw OpenGL geometry to another render target (like a $(RENDERWINDOW_LINK)) don't forget to activate it again.

class RenderTexture
void
setActive
(
bool active = true
)

Parameters

active
Type: bool

true to activate, false to deactivate

Meta