natiny_script_destroy

C
void natiny_script_destroy(NatinyScript script);

Ends a script state and frees everything in it.

Parameters

Name Type Description
script NatinyScript The state to end

Example

C
natiny_backend_shutdown();
natiny_script_destroy(script);

Notes

  • Engine handles a script created - windows, meshes, bodies - are not destroyed with the state. They belong to the engine, and natiny_backend_shutdown is what ends those.