natiny_script_to_handle
uint64_t natiny_script_to_handle(NatinyScriptValue value);
Converts an engine-handle value or script number to an engine handle.
Parameters
| Name | Type | Description |
|---|---|---|
value |
NatinyScriptValue |
Value to convert |
Returns
| Type | Description |
|---|---|
uint64_t |
Stored handle, a numeric value converted to uint64_t, or 0 for every other type |
Example
NatinyWindow window = (NatinyWindow)natiny_script_to_handle(
natiny_script_get(script, "game.window"));