コンテンツにスキップ

configure_lighting

Configure global lighting: ambient, fog, skybox, and bake settings

分類: ライト

名前 型 必須 既定値 説明
action string 必須 Action to perform. 値: get_info, set_ambient, set_fog, set_skybox, bake
ambient_mode string Ambient lighting mode. 値: skybox, gradient, flat
ambient_color string Ambient color in hex format (for flat mode)
ambient_sky_color string Sky color for gradient mode
ambient_equator_color string Equator color for gradient mode
ambient_ground_color string Ground color for gradient mode
ambient_intensity number Ambient intensity multiplier
fog_enabled boolean Enable/disable fog
fog_color string Fog color in hex format
fog_mode string Fog mode. 値: linear, exponential, exponential_squared
fog_density number Fog density for exponential modes
fog_start number Fog start distance for linear mode
fog_end number Fog end distance for linear mode
skybox_path string Asset path to skybox material

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

{
"name": "configure_lighting",
"arguments": {
"action": "get_info"
}
}

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

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