natiny_model_set_visible

C
void natiny_model_set_visible(NatinyModel model, bool visible);

Sets whether draw passes include the model.

Parameters

Name Type Description
model NatinyModel Model handle
visible bool false to skip the model everywhere

Example

C
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.