self:set_visible

Client

Sets whether the animatable body is visible


Syntax

local status = self:set_visible(
    visible
)

Parameters

TypeNameDescription
boolvisibletrue to show the entity, false to hide it

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Toggle visibility of a animatable body
local entity = physics.animatable.create()

entity:set_visible(false)

On this page