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 entity = core.rendertarget.create(1920, 1080, false)

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

On this page