self:is_active

Client

Checks whether this instance is the currently active rendertarget


Syntax

local result = self:is_active()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if this instance is the active rendertarget, false otherwise

Examples

Check if a rendertarget is currently active
local rt = rendertarget.create(1920, 1080, false)

rt:set_active()
engine.print("info", "Is rendertarget active:", rt:is_active()) -- true

On this page