バージョン
menu

Wwise SDK 2025.1.4
AkCmd_RegisterGameObject 構造体

#include AkCommandTypes.h>

公開変数類

AkGameObjectID gameObjectID
 ID of the game object to be registered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF]. [詳解]
 

詳解

Registers a game object ID.

Optionally, you can associate a name to the game object for profiling purposes. Call AK_CommandBuffer_AddString after adding the command to attach a name to the game object:

auto cmd = (AkCmd_RegisterGameObject*)AK_CommandBuffer_Add(buffer, AkCommand_RegisterGameObject);
cmd->gameObjectID = 100;
AK_CommandBuffer_AddString(buffer, "Player Emitter");

If the ID was already registered, its name is updated.

This command can fail for the following reasons:

  • AK_InvalidParameter: gameObjectID is outside the valid range.
  • AK_InsufficientMemory: Game object could not be registered due to a memory allocation failure
参照
AkCommand_RegisterGameObject

AkCommandTypes.h187 行目に定義があります。


このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう