Version
menu

Unknown game object ID used in function ... This ID was not registered with AK::SoundEngine::RegisterGameObj before.

This error occurs when an API function requiring a Game Object ID is called with an unrecognized ID. The name of the function is provided for reference with the game code. The lifetime of a Game Object starts with AK::SoundEngine::RegisterGameObj and stops with AK::SoundEngine::UnregisterGameObj.

[Note]Note

If you are using the Unity game engine, the lifetime of a Wwise game object follows the lifetime of the AkGameObj component.

Probable causes:

  • The Game Object was never registered before the function call.

  • The Game Object ID is corrupted.

  • Unity Users: The "Script Execution Order" may be wrong, causing one of the situations above.

Recommended resolution steps:

  • Enable API Calls in the Profiler Settings. Then reproduce your scenario. In the Capture Log, the faulty call with all its parameters should appear just before the error.

  • Verify the lifetime of the Game Object with the Game Object 3D Viewer. Take note of the time stamps to compare against the Capture Log.

  • Change the order of function calls so that they are between the related RegisterGameObj and UnregisterGameObj.

  • Unity Users: Check the "Script Execution Order" in Unity.


Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise