AgentSkillsCN

unity-smart

创建并修改Unity地形。设置高度、绘制纹理、查询海拔高度。

SKILL.md
--- frontmatter
name: unity-smart
description: "Smart Agentic Skills for scene querying, layout, and auto-binding."

Unity Smart Skills

Skills

smart_scene_query

Find objects based on component property values (SQL-like).

ParameterTypeRequiredDefaultDescription
componentNamestringYes-Component type (Light, Camera, MeshRenderer)
propertyNamestringYes-Property to query (intensity, enabled, etc.)
opstringNo"=="==, !=, >, <, >=, <=, contains
valuestringNonullValue to compare
limitintNo50Max results

Example:

python
# Find all lights with intensity > 2
call_skill("smart_scene_query", componentName="Light", propertyName="intensity", op=">", value="2")

smart_scene_layout

Organize selected objects into a layout.

ParameterTypeRequiredDefaultDescription
layoutTypestringNo"Linear"Linear, Grid, Circle, Arc
axisstringNo"X"X, Y, Z, -X, -Y, -Z
spacingfloatNo2.0Space between items (or radius)
columnsintNo3For Grid layout
arcAnglefloatNo180For Arc layout (degrees)
lookAtCenterboolNofalseRotate to face center

Example:

python
# Arrange selected objects in a circle
call_skill("smart_scene_layout", layoutType="Circle", spacing=5)

smart_reference_bind

Auto-fill a List/Array field with matching objects.

ParameterTypeRequiredDefaultDescription
targetNamestringYes-Target GameObject
componentNamestringYes-Component on target
fieldNamestringYes-Field to fill
sourceTagstringNonullFind by tag
sourceNamestringNonullFind by name contains
appendModeboolNofalseAppend instead of replace

Example:

python
# Fill GameManager.spawns with all SpawnPoint tagged objects
call_skill("smart_reference_bind", targetName="GameManager", componentName="GameController", fieldName="spawns", sourceTag="SpawnPoint")