natiny.model.set_visible

Lua
natiny.model.set_visible(model [, visible])

Sets whether draw passes include the model.

Parameters

Name Type Default Description
model number Model handle
visible boolean true false to skip the model everywhere

Example

Lua
natiny.model.set_visible(door, open)

Notes

  • A hidden model is skipped by every draw pass.
  • Hiding a model does not hide its children. A model parented to a hidden one still draws, and still follows its transform.
  • Models start visible.