Vital.sandbox
Rendertarget

self:is_type

Client

Checks whether the instance belongs to the specified type


Syntax

local result = self:is_type(name)

Parameters

TypeNameDescription
stringnameType to check against

Returns

TypeNameDescription
boolresulttrue if the instance matches the given type, false otherwise

Examples

Check the type of a rendertarget instance
local rt = rendertarget.create(1920, 1080, false)

engine.print("info", rt:is_type("rendertarget")) --true
engine.print("info", rt:is_type("webview")) --false

On this page