コンテンツにスキップ

manage_audio_source

Manage AudioSource: create, configure, list, and get info

分類: 音

名前 型 必須 既定値 説明
action string 必須 Action to perform. 値: create, configure, info, list, add_to_object
object_name string Name of the GameObject with AudioSource
clip_path string Asset path to AudioClip
volume number Volume (0.0 to 1.0)
pitch number Pitch (-3.0 to 3.0)
loop boolean Whether to loop the audio
play_on_awake boolean Play automatically on start
spatial_blend number 2D (0) to 3D (1) spatial blend
min_distance number Minimum distance for 3D audio rolloff
max_distance number Maximum distance for 3D audio rolloff
priority integer Priority (0=highest, 256=lowest)

必須の引数だけを入れています。ほかは必要に応じて足してください。

{
"name": "manage_audio_source",
"arguments": {
"action": "create"
}
}

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "manage_audio_source", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/AudioTools.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。