-
Notifications
You must be signed in to change notification settings - Fork 16
Next: GetInstanceObject
Archie_UwU edited this page Aug 20, 2025
·
2 revisions
Converts an instance ID to an instance object.
AurieStatus GetInstanceObject(
[in] int32_t InstanceID,
[out] CInstance*& Instance
);The ID of a currently active instance. This ID can be found in either the instance_id global built-in array, and is returned from functions such as instance_create_depth.
A reference to a pointer-sized buffer, into which the pointer to the instance is written. This pointer is guaranteed to remain valid until the instance is destroyed. If the function fails, the contents of this buffer are guaranteed to remain unchanged.
| Value | Description |
|---|---|
AURIE_SUCCESS |
The instance was found, and the pointer to it was written into the buffer. |
AURIE_MODULE_INTERNAL_ERROR |
The internal function needed is unavailable. |
AURIE_OBJECT_NOT_FOUND |
The instance does not exist. |
| Criterium | Value |
|---|---|
| Minimum YYTK Version | 3.1.3 |
| Context | Engine-synchronous |