SuperAPI AI 工具集

unity-smart

通用与其它

查看项目

更新于 10-15 17:25

技能介绍

用途:Unity 场景查询与布局工具,用于按条件查找对象、自动排布、自动连线引用,而非创建对象。

主要能力:smart_scene_query 按组件属性做类 SQL 查询(componentName、propertyName、op 支持 ==、!=、>、<、>=、<=、contains);smart_scene_query_spatial 按球体/盒体区域查询,可按组件过滤;smart_scene_layout 将选中对象排成 Linear、Grid、Circle、Arc;smart_reference_bind 按 tag 或名称填充 List/Array 字段;另含 smart_align_to_ground、smart_distribute、smart_snap_to_grid、smart_randomize_transform、smart_select_by_component、smart_replace_objects。

使用方式:调用前先读取本文件或通过 GET /skills/recommend?includeSchema=true 获取参数定义,再执行 dryRun;精确签名以 GET /skills/schema 或 unity_skills.get_skill_schema() 为准。示例:call_skill("smart_scene_query", componentName="Light", propertyName="intensity", op=">", value="2")。

操作模式:smart_scene_query 与 smart_scene_query_spatial 为只读、SemiAuto 可直接执行;布局/绑定/变换类为 FullAuto,需用户 grant 单次执行;smart_replace_objects 属 NeverInSemi 高危操作,Approval/Auto 下返回 MODE_FORBIDDEN,仅 Bypass 或 Allowlist 命中可调。

限制:smart_create、smart_build、smart_search、smart_query、smart_move 均不存在;创建对象用 gameobject 模块,简单查找用 gameobject_find 或 scene_find_objects。参数非法时返回 SEMANTIC_INVALID 并给出最接近名称建议。align_to_ground、distribute(至少 3 个对象)、replace_objects 需先在 Hierarchy 中选中对象。收费、价格、平台等信息暂未提供。