Model
self:set_visible
SharedSets whether the model 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
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
entity:set_visible(false)