self:set_visible
Client
Sets whether the collision shape is visible
Syntax
local status = self:set_visible(
visible
)Parameters
| Type | Name | Description |
|---|---|---|
bool | visible | true to show the entity, false to hide it |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.collision_shape.create()
entity:set_visible(false)