コンテンツにスキップ

manage_light

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

分類: ライト

名前 型 必須 既定値 説明
action string 必須 Action to perform. 値: create, configure, info, list, delete
light_name string Name of the light GameObject
light_type string Type of light to create. 値: directional, point, spot, area
color string Light color in hex format (e.g., #FFFFFF)
intensity number Light intensity
range number Range for Point/Spot lights
spot_angle number Spot angle for Spot lights (degrees)
inner_spot_angle number Inner spot angle percentage
shadows string Shadow type. 値: none, hard, soft
position object World position
rotation object Euler rotation in degrees
cookie_path string Asset path to cookie texture
culling_mask string Layer mask (e.g., ‘Everything’, ‘Default’, ‘UI’)

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

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

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

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