natiny_script_destroy
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
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_shutdownis what ends those.