Yuari
Documentation
Docs/Drawing/isrenderobj

isrenderobj

Reads or writes drawing render properties and checks render objects.

Syntax

isrenderobj(object: any) -> boolean

Parameters

ParameterTypeDescription
objectanyThe object value used by the call.

Returns

TypeDescription
booleanThe boolean result of the check.

Description

isrenderobj is part of the Drawing library. Drawing objects are submitted to the module's overlay renderer. They persist between frames until you remove them or clear the cache.

The call is a predicate: it inspects the current state and returns a boolean without modifying anything.

The aliases isrenderobject(object), is_render_obj(object), getrenderproperty(object, property), get_render_property(object, property), setrenderproperty(object, property, value), set_render_property(object, property, value) resolve to the same implementation.

Example

local line = Drawing.new("Line")
print(isrenderobj(line))
print(getrenderproperty(line, "Visible"))
setrenderproperty(line, "Visible", true)

Notes

  • Aliases: isrenderobject(object), is_render_obj(object), getrenderproperty(object, property), get_render_property(object, property), setrenderproperty(object, property, value), set_render_property(object, property, value).
  • Remove drawing objects when they are no longer needed.