@kevlns/u-cli-mod 0.1.0-beta.4 → 0.1.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +195 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/v-cli.plugin.json +245 -0
package/AGENTS.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- `u-cli-mod pipeline install <project> --dry-run` - 安装预览(不写入工程)
|
|
15
15
|
- `u-cli-mod pipeline install <project>` - 事务式安装适配包(自动备份/回滚/receipt)
|
|
16
16
|
- `u-cli-mod exec <project> -- <pipeline-args>` - 执行 Pipeline 命令(工具统一绑定 `--project-path`)
|
|
17
|
+
- Pipeline 命令全集见文末「Pipeline 工具清单」(适配版 `com.unity.pipeline` 共 153 个命令,按领域分组)
|
|
17
18
|
- `u-cli-mod routes` / `u-cli-mod cache clean` - 路由表 / 缓存清理
|
|
18
19
|
|
|
19
20
|
## 使用规范(Agent 必须遵守)
|
|
@@ -31,4 +32,197 @@
|
|
|
31
32
|
u-cli-mod doctor <project> # 1. 体检(只读)
|
|
32
33
|
u-cli-mod setup <project> # 2. 就绪(CLI + 适配包)
|
|
33
34
|
u-cli-mod exec <project> -- command editor_status # 3. 执行
|
|
34
|
-
```
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Pipeline 工具清单
|
|
38
|
+
|
|
39
|
+
> 安装的 `com.unity.pipeline`(适配版 0.5.0-exp.1)共 **153** 个命令,经 `u-cli-mod exec <project> -- command <名> [参数]` 透传执行;参数全集以 `exec <project> -- command <名> --help` 为准。
|
|
40
|
+
|
|
41
|
+
### GameObject / 组件
|
|
42
|
+
- `add_component` — Add a component (by type name) to a GameObject.
|
|
43
|
+
- `create_gameobject` — Create an empty GameObject or a built-in primitive (cube/sphere/capsule/cylinder/plane/quad) in the active scene.
|
|
44
|
+
- `create_gameobjects` — Batch-create N empty GameObjects or primitives in one call. Optional positions/rotations/scales are arrays of [x,y,z] (length must equal count). Returns the created identities.
|
|
45
|
+
- `delete_gameobject` — Delete a GameObject from the scene (reversible via Undo).
|
|
46
|
+
- `find_gameobjects` — Find GameObjects in loaded scenes by name, tag, component type, and/or hierarchy path (filters are combined). Returns structured identities.
|
|
47
|
+
- `get_component_properties` — Get a component's serialized properties as a JSON map. Address the component by handle, or by GameObject handle + type.
|
|
48
|
+
- `remove_component` — Remove a component from a GameObject. Provide either a component handle (target) or a GameObject handle (target) plus a type name.
|
|
49
|
+
- `rename_gameobject` — Rename a GameObject.
|
|
50
|
+
- `set_active` — Set a GameObject's active self-state (activeSelf).
|
|
51
|
+
- `set_component_properties` — Set serialized properties on a component (one Undo step). 'properties' maps property name -> value; object references accept an ObjectRef handle.
|
|
52
|
+
- `set_layer` — Set a GameObject's layer by name or numeric index (0-31).
|
|
53
|
+
- `set_parent` — Reparent a GameObject under a new parent, or detach it to scene root when no parent is given.
|
|
54
|
+
- `set_tag` — Set a GameObject's tag (the tag must already exist in the project).
|
|
55
|
+
- `set_transform` — Set a GameObject's local position/rotation(euler)/scale. Omitted channels are left unchanged.
|
|
56
|
+
|
|
57
|
+
### 场景
|
|
58
|
+
- `add_scene_to_build` — Add a scene to the Build Settings scene list (idempotent). Optionally enable it.
|
|
59
|
+
- `create_scene` — Create a new scene and save it to the given path under the authoring root.
|
|
60
|
+
- `get_scene_hierarchy` — Return the GameObject tree of an open scene (or the active scene). Each node carries instanceId + hierarchyPath usable by GameObject commands.
|
|
61
|
+
- `list_open_scenes` — List all currently open scenes with their load/active/dirty state.
|
|
62
|
+
- `open_scene` — Open an existing scene from the given path.
|
|
63
|
+
- `remove_scene_from_build` — Remove a scene from the Build Settings scene list (idempotent).
|
|
64
|
+
- `save_all` — Save all open scenes that have unsaved changes.
|
|
65
|
+
- `save_scene` — Save an open scene. Saves the active scene when no path is given.
|
|
66
|
+
- `set_active_scene` — Set which open scene is the active scene (new objects are created in the active scene).
|
|
67
|
+
|
|
68
|
+
### 资源 / 文件
|
|
69
|
+
- `copy_asset` — Copy an asset to a new path under the authoring root. The copy gets a fresh GUID.
|
|
70
|
+
- `create_asset` — Create a new ScriptableObject (or other UnityEngine.Object) asset of the given type at a path under the authoring root.
|
|
71
|
+
- `create_folder` — Create a folder under the authoring root (creates intermediate folders).
|
|
72
|
+
- `delete_asset` — Delete an asset from the project. Destructive: requires confirm=true.
|
|
73
|
+
- `find_assets` — Find assets by type and/or name and/or label, returning their path, GUID and type. At least one filter is required.
|
|
74
|
+
- `get_import_settings` — Read an asset's import settings, structured by importer type (texture/model/audio), including the default-platform fields and (for textures/audio) one platform override block.
|
|
75
|
+
- `import_asset` — Import an external file (e.g. a texture, model, audio clip) into the project by copying it to a path under the authoring root, then importing it.
|
|
76
|
+
- `move_asset` — Move (or rename via a new path) an asset to a new location under the authoring root. Preserves the asset's GUID.
|
|
77
|
+
- `read_text_file` — Read a UTF-8 text file under the authoring root and return its contents.
|
|
78
|
+
- `rename_asset` — Rename an asset in place (keeps it in the same folder, keeps its GUID).
|
|
79
|
+
- `set_import_settings` — Set import settings on an asset's AssetImporter (default platform top-level properties, or a texture/audio per-platform override) and re-import it.
|
|
80
|
+
- `write_text_file` — Write UTF-8 text to a file under the authoring root, then import it. Overwriting an existing file requires confirm=true.
|
|
81
|
+
|
|
82
|
+
### 预制体
|
|
83
|
+
- `apply_prefab_overrides` — Apply a prefab instance's overrides back to its source prefab asset.
|
|
84
|
+
- `create_prefab` — Save a GameObject as a prefab asset at a project path; the source becomes a connected instance.
|
|
85
|
+
- `create_prefab_variant` — Create a prefab variant asset that inherits from a base prefab.
|
|
86
|
+
- `instantiate_prefab` — Instantiate a prefab asset into a loaded scene and return the created instance.
|
|
87
|
+
- `revert_prefab_overrides` — Revert a prefab instance's overrides so it matches its source prefab asset.
|
|
88
|
+
- `save_prefab_contents` — Open a prefab asset in an isolated prefab stage, apply a declarative edit, and save it back (nested-prefab safe).
|
|
89
|
+
- `unpack_prefab` — Unpack a prefab instance into plain GameObjects (outermost level or completely).
|
|
90
|
+
|
|
91
|
+
### 材质 / 着色器
|
|
92
|
+
- `get_material_properties` — Read a material's shader, render queue, enabled keywords, and all shader properties with their current values (Color as [r,g,b,a], Vector as [x,y,z,w], Texture as an object reference).
|
|
93
|
+
- `get_shader_properties` — Introspect a shader's declared property list (name, description, type Color|Vector|Float|Range|TexEnv|Int, range, textureDimension, flags). Provide 'shader' (by name) OR 'material' (read the shader off that material).
|
|
94
|
+
- `list_shaders` — Discover available shaders so an agent can pick a valid name for set_material_properties / create_asset. Returns [{ name, assetPath|null, isBuiltin, isSupported }].
|
|
95
|
+
- `set_material_properties` — Set shader properties on a material (Float/Range/Int=number; Color=[r,g,b,a] or "#RRGGBBAA" hex; Vector=[x,y,z,w]; Texture=an object reference or null to clear), optionally reassign the shader, set the render queue, and toggle keywords. Unknown names / type mismatches are reported in unknown[].
|
|
96
|
+
|
|
97
|
+
### 脚本 / 编译 / 求值
|
|
98
|
+
- `attach_script` — Add a MonoBehaviour to a GameObject by its (compiled) type name OR by its script asset path. Provide exactly one of 'type' or 'script'. If the type isn't compiled yet, returns a recoverable error: recompile, poll recompile_status, then retry.
|
|
99
|
+
- `cleanup_hotreload` — Remove old hot reload DLL versions and clear registry
|
|
100
|
+
- `create_script` — Create a new C# script (default base class MonoBehaviour) from a template under the authoring root. NOTE: the type does not exist until a recompile completes — to attach it, call recompile, poll recompile_status, then attach_script.
|
|
101
|
+
- `eval` — Evaluate C# code dynamically using Roslyn compiler
|
|
102
|
+
- `eval_file` — Evaluate C# code read from a .cs file on disk
|
|
103
|
+
- `get_serialized_fields` — Read serialized fields of a component/asset. Returns each top-level field's name, type and value (object references are returned as re-usable handles). Pass 'field' to read a single SerializedProperty path.
|
|
104
|
+
- `hotreload_status` — Show current hot reload registry status and statistics
|
|
105
|
+
- `recompile` — Force a script recompile (works while unfocused/minimized). Poll recompile_status for completion.
|
|
106
|
+
- `recompile_status` — Get the status of the last recompile: idle | triggered | compiling | completed | up_to_date.
|
|
107
|
+
- `reload_file` — Compile and apply in-place [HotReload] edits from a source file
|
|
108
|
+
- `reload_file_override` — Compile and apply hot reload file changes immediately
|
|
109
|
+
- `set_serialized_field` — Set a serialized field on a component/asset. Supports primitives, enums, Vector/Color/Rect/Bounds, object references (value = an ObjectRef: asset by guid/fileId/path or scene object by instanceId/hierarchyPath), and array elements via 'name.Array.data[i]' (or 'name.Array.size' to resize).
|
|
110
|
+
|
|
111
|
+
### 动画 / Timeline
|
|
112
|
+
- `add_animator_layer` — Add a layer to an AnimatorController.
|
|
113
|
+
- `add_animator_parameter` — Add a parameter (Float | Int | Bool | Trigger) to an AnimatorController. A duplicate name returns code 'duplicate_parameter'.
|
|
114
|
+
- `add_animator_state` — Add a state to a layer, optionally with a motion (AnimationClip or BlendTree) and as the layer default. A layer name with no match returns code 'layer_not_found'.
|
|
115
|
+
- `add_animator_transition` — Add a transition between two states (or from AnyState/Entry, to Exit) on a layer, with optional conditions. Validates that the states exist and each condition's parameter exists and its mode matches the parameter type.
|
|
116
|
+
- `add_timeline_clip` — Add a clip to a named track on a TimelineAsset. For Animation tracks pass an AnimationClip asset; for Audio tracks an AudioClip. Requires the com.unity.timeline package.
|
|
117
|
+
- `add_timeline_track` — Add a track (Animation | Audio | Activation | Control | Playable | Signal | Marker) to a TimelineAsset, optionally nested under a parent group/track. Requires the com.unity.timeline package.
|
|
118
|
+
- `create_animation_clip` — Create an empty .anim AnimationClip asset under the authoring root, with an optional frame rate and loop flag.
|
|
119
|
+
- `create_animator_controller` — Create an .controller AnimatorController asset (with a default Base Layer) under the authoring root.
|
|
120
|
+
- `create_timeline` — Create a .playable TimelineAsset under the authoring root (optional frame rate). Requires the com.unity.timeline package.
|
|
121
|
+
- `get_animation_clip` — Read an AnimationClip's metadata and all float curve bindings (optionally with keyframes).
|
|
122
|
+
- `get_animator_controller` — Read an AnimatorController's full structure: parameters, layers, states (with motion / default), and transitions (with conditions).
|
|
123
|
+
- `get_timeline` — Read a TimelineAsset's structure: frame rate, duration, and its tracks with their clips. Requires the com.unity.timeline package.
|
|
124
|
+
- `remove_animation_curve` — Remove a float curve binding from an AnimationClip (SetEditorCurve(clip, binding, null)). Destructive: requires confirm=true.
|
|
125
|
+
- `set_animation_curve` — Add or replace a single float curve binding on an AnimationClip (via AnimationUtility.SetEditorCurve). Replacing an existing binding overwrites it rather than duplicating.
|
|
126
|
+
|
|
127
|
+
### 构建
|
|
128
|
+
- `build` — Trigger an async Player build and report the full BuildReport. Returns immediately (queued); poll build_status until status is 'completed'. DetailedBuildReport is included by default unless 'options' is supplied. Use dry_run to validate without building.
|
|
129
|
+
- `build_status` — Status of the current/most recent build: idle | queued | building | completed, with the full BuildReport (files, packedAssets, buildSteps, errors, warnings) once completed. Retained until the next build.
|
|
130
|
+
- `get_build_settings` — Read the current build configuration from EditorUserBuildSettings / EditorBuildSettings.
|
|
131
|
+
- `list_build_profiles` — List Build Profile assets in the project (Unity 6 only). Returns feature_unavailable on earlier versions.
|
|
132
|
+
- `list_build_targets` — List the known BuildTarget values with their group and whether build support is installed.
|
|
133
|
+
- `set_build_settings` — Set mutable EditorUserBuildSettings fields. Does NOT manage scenes (use add_scene_to_build / remove_scene_from_build) or switch target (use switch_build_target). Use dry_run to preview.
|
|
134
|
+
- `switch_build_target` — Switch the active build target (destructive, long-running: triggers a full reimport + domain reload). Requires confirm=true. Returns immediately; poll switch_build_target_status.
|
|
135
|
+
- `switch_build_target_status` — Status of the last target switch: idle | switching | completed (with success + activeBuildTarget).
|
|
136
|
+
|
|
137
|
+
### 包管理
|
|
138
|
+
- `package_add` — Add a UPM package by name@version, git URL, or 'file:' local path. Async by default (returns in_progress; poll package_status); pass wait=true to block until added. A recompile/domain reload follows — poll recompile_status. Requires confirm=true; use dry_run to preview.
|
|
139
|
+
- `package_list` — List packages by scope: installed (default) | available (registry) | all (both). Returns the full result synchronously — available/all block until the registry query completes.
|
|
140
|
+
- `package_remove` — Remove a UPM package by name. Async by default (returns in_progress; poll package_status); pass wait=true to block until removed. A recompile/domain reload follows — poll recompile_status. Requires confirm=true; use dry_run to preview.
|
|
141
|
+
- `package_resolve` — Resolve/refresh packages from the manifest (re-fetch and re-link). May trigger a recompile/domain reload — poll recompile_status. Its outcome is recorded for package_status.
|
|
142
|
+
- `package_search` — Search packages available in the registry. Provide a name (e.g. com.unity.foo) or omit to list all. Returns the full result synchronously (blocks until the registry query completes).
|
|
143
|
+
- `package_status` — Status of the last async package operation (add/remove/resolve): idle | in_progress | completed | failed, with the added package, manifest, and any error.
|
|
144
|
+
|
|
145
|
+
### 测试
|
|
146
|
+
- `cancel_tests` — Cancel running test execution
|
|
147
|
+
- `list_tests` — List all available tests (EditMode and/or PlayMode) without running them
|
|
148
|
+
- `run_tests` — Execute Unity tests with filtering options
|
|
149
|
+
- `test_status` — Get status of running async test execution
|
|
150
|
+
|
|
151
|
+
### 烘焙(光照 / NavMesh / 遮挡)
|
|
152
|
+
- `bake_lighting` — Trigger an async lightmap bake of the open scene(s) via Lightmapping.BakeAsync(). Returns immediately; poll lighting_bake_status until completed.
|
|
153
|
+
- `bake_navmesh` — Trigger an async legacy NavMesh bake of the open scene(s) via UnityEditor.AI.NavMeshBuilder. Returns immediately; poll navmesh_bake_status until completed.
|
|
154
|
+
- `bake_navmesh_surfaces` — Bake NavMeshSurface components (AI Navigation package). v1 stub: returns package_not_found when the package is absent.
|
|
155
|
+
- `bake_occlusion_culling` — Trigger an async occlusion-culling bake of the open scene(s) via StaticOcclusionCulling.GenerateInBackground(). Returns immediately; poll occlusion_bake_status until completed.
|
|
156
|
+
- `cancel_lighting_bake` — Cancel an in-progress lighting bake (Lightmapping.Cancel()).
|
|
157
|
+
- `cancel_navmesh_bake` — Cancel an in-progress NavMesh bake (NavMeshBuilder.Cancel()).
|
|
158
|
+
- `cancel_occlusion_bake` — Cancel an in-progress occlusion bake (StaticOcclusionCulling.Cancel()).
|
|
159
|
+
- `clear_baked_lighting` — Clear baked lightmap data for the open scene(s). Destructive: requires confirm=true.
|
|
160
|
+
- `clear_navmesh` — Clear the baked NavMesh for the open scene(s). Destructive: requires confirm=true.
|
|
161
|
+
- `clear_occlusion_culling` — Clear baked occlusion-culling data for the open scene(s). Destructive: requires confirm=true.
|
|
162
|
+
- `get_lighting_settings` — Read the active LightingSettings (lightmapper, bounces, resolution, directional mode, AO, etc.).
|
|
163
|
+
- `get_navmesh_settings` — Read the default agent's legacy NavMesh bake settings (agentRadius/Height/Slope/Climb, minRegionArea, voxelSize).
|
|
164
|
+
- `lighting_bake_status` — Get the status of the last lighting bake: idle | baking | completed.
|
|
165
|
+
- `navmesh_bake_status` — Get the status of the last NavMesh bake: idle | baking | completed.
|
|
166
|
+
- `occlusion_bake_status` — Get the status of the last occlusion bake: idle | baking | completed.
|
|
167
|
+
- `set_lighting_settings` — Apply a subset of lighting settings to the active LightingSettings. Returns { applied[], unknown[] }.
|
|
168
|
+
- `set_navmesh_settings` — Apply a subset of legacy NavMesh bake settings to the default agent. Returns { applied[], unknown[] }.
|
|
169
|
+
|
|
170
|
+
### 截图 / 捕获
|
|
171
|
+
- `capture_editor_element` — Capture a UI Toolkit VisualElement (by selector) from an EditorWindow to a PNG; returns path + base64.
|
|
172
|
+
- `capture_game_view` — Render the game view to a PNG. source=camera (default) renders a camera and misses Screen Space - Overlay UI; source=screen captures the composited backbuffer incl. overlay canvases (Play Mode only). Returns it inline as base64, unless save_path is set (path-only result; pass include_inline_image=true to get both).
|
|
173
|
+
- `capture_runtime_element` — Capture a UI Toolkit VisualElement (by selector) from a live runtime panel (UIDocument or PanelRenderer) to a PNG; returns path + base64.
|
|
174
|
+
- `capture_scene_view` — Render the active Scene View to a PNG. Returns it inline as base64, unless save_path is set (path-only result; pass include_inline_image=true to get both).
|
|
175
|
+
- `screenshot` — Capture the Scene or Game view as a PNG and return its file path
|
|
176
|
+
|
|
177
|
+
### 编辑器控制
|
|
178
|
+
- `editor_focus` — Bring the Unity Editor window to the foreground
|
|
179
|
+
- `editor_pause` — Toggle pause state of Unity Editor play mode
|
|
180
|
+
- `editor_play` — Enter Unity Editor play mode
|
|
181
|
+
- `editor_status` — Get detailed Unity Editor status and state information
|
|
182
|
+
- `editor_stop` — Exit Unity Editor play mode
|
|
183
|
+
- `menu` — Execute an Editor menu item by path, or list available items when no path is given
|
|
184
|
+
- `set_autotick` — Keep the editor ticking while unfocused by forcing EditorApplication.SignalTick at a throttled rate
|
|
185
|
+
|
|
186
|
+
### 可观测性 / 审计
|
|
187
|
+
- `audit` — Run a Project Auditor static-analysis scan. Returns immediately; poll audit_status until status is 'completed', then read the CSV.
|
|
188
|
+
- `audit_status` — Get the status of the last audit: idle | scanning | completed | failed | interrupted | unavailable.
|
|
189
|
+
- `clear_console` — Clear the captured log buffer and the Unity Editor console.
|
|
190
|
+
- `console` — Get captured Unity console output (Editor or Player; supports tail, level filtering, and follow via a cursor)
|
|
191
|
+
- `get_console_logs` — Read recently captured Editor console logs (structured).
|
|
192
|
+
- `get_performance_stats` — Read render, memory, and frame-timing stats (structured, read-only).
|
|
193
|
+
- `log` — Write a message to Unity console
|
|
194
|
+
|
|
195
|
+
### 项目设置
|
|
196
|
+
- `get_audio_settings` — Read project Audio settings (volume, rolloff scale, doppler factor).
|
|
197
|
+
- `get_graphics_settings` — Read GraphicsSettings (default render pipeline).
|
|
198
|
+
- `get_input_settings` — Read the legacy Input Manager axes (names and count).
|
|
199
|
+
- `get_physics_settings` — Read Physics settings (gravity, solver iterations, bounce threshold).
|
|
200
|
+
- `get_player_settings` — Read PlayerSettings (company/product/version, scripting backend, API level).
|
|
201
|
+
- `get_quality_settings` — Read QualitySettings (current level, level names, vSync, anti-aliasing).
|
|
202
|
+
- `get_tags_layers` — Read the project's tags and (named) layers.
|
|
203
|
+
- `get_time_settings` — Read Time settings (fixedDeltaTime, maximumDeltaTime, timeScale).
|
|
204
|
+
- `set_audio_settings` — Change project Audio settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
205
|
+
- `set_graphics_settings` — Set the default render pipeline asset. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
206
|
+
- `set_input_settings` — Tune a legacy Input Manager axis (sensitivity/gravity/dead) by name. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
207
|
+
- `set_physics_settings` — Change Physics settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
208
|
+
- `set_player_settings` — Change PlayerSettings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z. Scripting backend / API level changes trigger a domain reload.
|
|
209
|
+
- `set_quality_settings` — Change QualitySettings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
210
|
+
- `set_tags_layers` — Add/remove tags and assign user layer names (index 8-31). Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
211
|
+
- `set_time_settings` — Change Time settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.
|
|
212
|
+
|
|
213
|
+
### 运行时 / 输入模拟
|
|
214
|
+
- `quit` — Gracefully quit the Unity application
|
|
215
|
+
- `runtime_status` — Get comprehensive runtime application status
|
|
216
|
+
- `set_target_framerate` — Set the target frame rate for the application
|
|
217
|
+
- `set_timescale` — Set the time scale for the application
|
|
218
|
+
- `simulate_key` — Simulate a keyboard key event (Input System). Drives the running app.
|
|
219
|
+
- `simulate_pointer` — Simulate a mouse/pointer event at screen coordinates (Input System).
|
|
220
|
+
|
|
221
|
+
### 选择 / 搜索
|
|
222
|
+
- `get_selection` — Read the current Editor selection as structured object identities.
|
|
223
|
+
- `search` — Run a Unity Search query and return structured results.
|
|
224
|
+
- `set_selection` — Set the Editor selection to the given assets/scene objects.
|
|
225
|
+
|
|
226
|
+
### Authoring 根路径
|
|
227
|
+
- `get_authoring_root` — Get the base folder (under Assets/) that bare authoring paths resolve against.
|
|
228
|
+
- `set_authoring_root` — Set the base folder (under Assets/) that bare authoring paths resolve against and are confined to. Use 'Assets' for full project access.
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ npm run check # build + lint + 107 个 vitest 测试 + pack guard
|
|
|
90
90
|
|
|
91
91
|
`pack:guard` 会执行真实 `npm pack`(含文件清单校验),断言发布包:
|
|
92
92
|
|
|
93
|
-
- 包名为 `@kevlns/u-cli-mod`,tgz 文件名精确为 `kevlns-u-cli-mod-0.1.0-beta.
|
|
93
|
+
- 包名为 `@kevlns/u-cli-mod`,tgz 文件名精确为 `kevlns-u-cli-mod-0.1.0-beta.5.tgz`(与 package.json 版本一致);
|
|
94
94
|
- `files` 必须包含 `v-cli.plugin.json`,且清单身份字段(schemaVersion/package/command/bin/platforms)与包一致;
|
|
95
95
|
- 不出现:
|
|
96
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevlns/u-cli-mod",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.5",
|
|
4
4
|
"description": "u-cli-mod: pin exact Unity Editor version routes and install the adapted com.unity.pipeline package for Unity 2022 (Windows-first). Downloads Unity assets at runtime into the user cache; the package itself contains no Unity binaries or package source. Not an official Unity project.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
package/v-cli.plugin.json
CHANGED
|
@@ -260,6 +260,251 @@
|
|
|
260
260
|
"default scope: generated packages + pipeline downloads only; without --all the CLI cache and logs are preserved"
|
|
261
261
|
]
|
|
262
262
|
}
|
|
263
|
+
],
|
|
264
|
+
"pipelineCommands": [
|
|
265
|
+
{
|
|
266
|
+
"group": "GameObject / 组件",
|
|
267
|
+
"tools": {
|
|
268
|
+
"add_component": "Add a component (by type name) to a GameObject.",
|
|
269
|
+
"create_gameobject": "Create an empty GameObject or a built-in primitive (cube/sphere/capsule/cylinder/plane/quad) in the active scene.",
|
|
270
|
+
"create_gameobjects": "Batch-create N empty GameObjects or primitives in one call. Optional positions/rotations/scales are arrays of [x,y,z] (length must equal count). Returns the created identities.",
|
|
271
|
+
"delete_gameobject": "Delete a GameObject from the scene (reversible via Undo).",
|
|
272
|
+
"find_gameobjects": "Find GameObjects in loaded scenes by name, tag, component type, and/or hierarchy path (filters are combined). Returns structured identities.",
|
|
273
|
+
"get_component_properties": "Get a component's serialized properties as a JSON map. Address the component by handle, or by GameObject handle + type.",
|
|
274
|
+
"remove_component": "Remove a component from a GameObject. Provide either a component handle (target) or a GameObject handle (target) plus a type name.",
|
|
275
|
+
"rename_gameobject": "Rename a GameObject.",
|
|
276
|
+
"set_active": "Set a GameObject's active self-state (activeSelf).",
|
|
277
|
+
"set_component_properties": "Set serialized properties on a component (one Undo step). 'properties' maps property name -> value; object references accept an ObjectRef handle.",
|
|
278
|
+
"set_layer": "Set a GameObject's layer by name or numeric index (0-31).",
|
|
279
|
+
"set_parent": "Reparent a GameObject under a new parent, or detach it to scene root when no parent is given.",
|
|
280
|
+
"set_tag": "Set a GameObject's tag (the tag must already exist in the project).",
|
|
281
|
+
"set_transform": "Set a GameObject's local position/rotation(euler)/scale. Omitted channels are left unchanged."
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"group": "场景",
|
|
286
|
+
"tools": {
|
|
287
|
+
"add_scene_to_build": "Add a scene to the Build Settings scene list (idempotent). Optionally enable it.",
|
|
288
|
+
"create_scene": "Create a new scene and save it to the given path under the authoring root.",
|
|
289
|
+
"get_scene_hierarchy": "Return the GameObject tree of an open scene (or the active scene). Each node carries instanceId + hierarchyPath usable by GameObject commands.",
|
|
290
|
+
"list_open_scenes": "List all currently open scenes with their load/active/dirty state.",
|
|
291
|
+
"open_scene": "Open an existing scene from the given path.",
|
|
292
|
+
"remove_scene_from_build": "Remove a scene from the Build Settings scene list (idempotent).",
|
|
293
|
+
"save_all": "Save all open scenes that have unsaved changes.",
|
|
294
|
+
"save_scene": "Save an open scene. Saves the active scene when no path is given.",
|
|
295
|
+
"set_active_scene": "Set which open scene is the active scene (new objects are created in the active scene)."
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"group": "资源 / 文件",
|
|
300
|
+
"tools": {
|
|
301
|
+
"copy_asset": "Copy an asset to a new path under the authoring root. The copy gets a fresh GUID.",
|
|
302
|
+
"create_asset": "Create a new ScriptableObject (or other UnityEngine.Object) asset of the given type at a path under the authoring root.",
|
|
303
|
+
"create_folder": "Create a folder under the authoring root (creates intermediate folders).",
|
|
304
|
+
"delete_asset": "Delete an asset from the project. Destructive: requires confirm=true.",
|
|
305
|
+
"find_assets": "Find assets by type and/or name and/or label, returning their path, GUID and type. At least one filter is required.",
|
|
306
|
+
"get_import_settings": "Read an asset's import settings, structured by importer type (texture/model/audio), including the default-platform fields and (for textures/audio) one platform override block.",
|
|
307
|
+
"import_asset": "Import an external file (e.g. a texture, model, audio clip) into the project by copying it to a path under the authoring root, then importing it.",
|
|
308
|
+
"move_asset": "Move (or rename via a new path) an asset to a new location under the authoring root. Preserves the asset's GUID.",
|
|
309
|
+
"read_text_file": "Read a UTF-8 text file under the authoring root and return its contents.",
|
|
310
|
+
"rename_asset": "Rename an asset in place (keeps it in the same folder, keeps its GUID).",
|
|
311
|
+
"set_import_settings": "Set import settings on an asset's AssetImporter (default platform top-level properties, or a texture/audio per-platform override) and re-import it.",
|
|
312
|
+
"write_text_file": "Write UTF-8 text to a file under the authoring root, then import it. Overwriting an existing file requires confirm=true."
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"group": "预制体",
|
|
317
|
+
"tools": {
|
|
318
|
+
"apply_prefab_overrides": "Apply a prefab instance's overrides back to its source prefab asset.",
|
|
319
|
+
"create_prefab": "Save a GameObject as a prefab asset at a project path; the source becomes a connected instance.",
|
|
320
|
+
"create_prefab_variant": "Create a prefab variant asset that inherits from a base prefab.",
|
|
321
|
+
"instantiate_prefab": "Instantiate a prefab asset into a loaded scene and return the created instance.",
|
|
322
|
+
"revert_prefab_overrides": "Revert a prefab instance's overrides so it matches its source prefab asset.",
|
|
323
|
+
"save_prefab_contents": "Open a prefab asset in an isolated prefab stage, apply a declarative edit, and save it back (nested-prefab safe).",
|
|
324
|
+
"unpack_prefab": "Unpack a prefab instance into plain GameObjects (outermost level or completely)."
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"group": "材质 / 着色器",
|
|
329
|
+
"tools": {
|
|
330
|
+
"get_material_properties": "Read a material's shader, render queue, enabled keywords, and all shader properties with their current values (Color as [r,g,b,a], Vector as [x,y,z,w], Texture as an object reference).",
|
|
331
|
+
"get_shader_properties": "Introspect a shader's declared property list (name, description, type Color|Vector|Float|Range|TexEnv|Int, range, textureDimension, flags). Provide 'shader' (by name) OR 'material' (read the shader off that material).",
|
|
332
|
+
"list_shaders": "Discover available shaders so an agent can pick a valid name for set_material_properties / create_asset. Returns [{ name, assetPath|null, isBuiltin, isSupported }].",
|
|
333
|
+
"set_material_properties": "Set shader properties on a material (Float/Range/Int=number; Color=[r,g,b,a] or \"#RRGGBBAA\" hex; Vector=[x,y,z,w]; Texture=an object reference or null to clear), optionally reassign the shader, set the render queue, and toggle keywords. Unknown names / type mismatches are reported in unknown[]."
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"group": "脚本 / 编译 / 求值",
|
|
338
|
+
"tools": {
|
|
339
|
+
"attach_script": "Add a MonoBehaviour to a GameObject by its (compiled) type name OR by its script asset path. Provide exactly one of 'type' or 'script'. If the type isn't compiled yet, returns a recoverable error: recompile, poll recompile_status, then retry.",
|
|
340
|
+
"cleanup_hotreload": "Remove old hot reload DLL versions and clear registry",
|
|
341
|
+
"create_script": "Create a new C# script (default base class MonoBehaviour) from a template under the authoring root. NOTE: the type does not exist until a recompile completes — to attach it, call recompile, poll recompile_status, then attach_script.",
|
|
342
|
+
"eval": "Evaluate C# code dynamically using Roslyn compiler",
|
|
343
|
+
"eval_file": "Evaluate C# code read from a .cs file on disk",
|
|
344
|
+
"get_serialized_fields": "Read serialized fields of a component/asset. Returns each top-level field's name, type and value (object references are returned as re-usable handles). Pass 'field' to read a single SerializedProperty path.",
|
|
345
|
+
"hotreload_status": "Show current hot reload registry status and statistics",
|
|
346
|
+
"recompile": "Force a script recompile (works while unfocused/minimized). Poll recompile_status for completion.",
|
|
347
|
+
"recompile_status": "Get the status of the last recompile: idle | triggered | compiling | completed | up_to_date.",
|
|
348
|
+
"reload_file": "Compile and apply in-place [HotReload] edits from a source file",
|
|
349
|
+
"reload_file_override": "Compile and apply hot reload file changes immediately",
|
|
350
|
+
"set_serialized_field": "Set a serialized field on a component/asset. Supports primitives, enums, Vector/Color/Rect/Bounds, object references (value = an ObjectRef: asset by guid/fileId/path or scene object by instanceId/hierarchyPath), and array elements via 'name.Array.data[i]' (or 'name.Array.size' to resize)."
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"group": "动画 / Timeline",
|
|
355
|
+
"tools": {
|
|
356
|
+
"add_animator_layer": "Add a layer to an AnimatorController.",
|
|
357
|
+
"add_animator_parameter": "Add a parameter (Float | Int | Bool | Trigger) to an AnimatorController. A duplicate name returns code 'duplicate_parameter'.",
|
|
358
|
+
"add_animator_state": "Add a state to a layer, optionally with a motion (AnimationClip or BlendTree) and as the layer default. A layer name with no match returns code 'layer_not_found'.",
|
|
359
|
+
"add_animator_transition": "Add a transition between two states (or from AnyState/Entry, to Exit) on a layer, with optional conditions. Validates that the states exist and each condition's parameter exists and its mode matches the parameter type.",
|
|
360
|
+
"add_timeline_clip": "Add a clip to a named track on a TimelineAsset. For Animation tracks pass an AnimationClip asset; for Audio tracks an AudioClip. Requires the com.unity.timeline package.",
|
|
361
|
+
"add_timeline_track": "Add a track (Animation | Audio | Activation | Control | Playable | Signal | Marker) to a TimelineAsset, optionally nested under a parent group/track. Requires the com.unity.timeline package.",
|
|
362
|
+
"create_animation_clip": "Create an empty .anim AnimationClip asset under the authoring root, with an optional frame rate and loop flag.",
|
|
363
|
+
"create_animator_controller": "Create an .controller AnimatorController asset (with a default Base Layer) under the authoring root.",
|
|
364
|
+
"create_timeline": "Create a .playable TimelineAsset under the authoring root (optional frame rate). Requires the com.unity.timeline package.",
|
|
365
|
+
"get_animation_clip": "Read an AnimationClip's metadata and all float curve bindings (optionally with keyframes).",
|
|
366
|
+
"get_animator_controller": "Read an AnimatorController's full structure: parameters, layers, states (with motion / default), and transitions (with conditions).",
|
|
367
|
+
"get_timeline": "Read a TimelineAsset's structure: frame rate, duration, and its tracks with their clips. Requires the com.unity.timeline package.",
|
|
368
|
+
"remove_animation_curve": "Remove a float curve binding from an AnimationClip (SetEditorCurve(clip, binding, null)). Destructive: requires confirm=true.",
|
|
369
|
+
"set_animation_curve": "Add or replace a single float curve binding on an AnimationClip (via AnimationUtility.SetEditorCurve). Replacing an existing binding overwrites it rather than duplicating."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"group": "构建",
|
|
374
|
+
"tools": {
|
|
375
|
+
"build": "Trigger an async Player build and report the full BuildReport. Returns immediately (queued); poll build_status until status is 'completed'. DetailedBuildReport is included by default unless 'options' is supplied. Use dry_run to validate without building.",
|
|
376
|
+
"build_status": "Status of the current/most recent build: idle | queued | building | completed, with the full BuildReport (files, packedAssets, buildSteps, errors, warnings) once completed. Retained until the next build.",
|
|
377
|
+
"get_build_settings": "Read the current build configuration from EditorUserBuildSettings / EditorBuildSettings.",
|
|
378
|
+
"list_build_profiles": "List Build Profile assets in the project (Unity 6 only). Returns feature_unavailable on earlier versions.",
|
|
379
|
+
"list_build_targets": "List the known BuildTarget values with their group and whether build support is installed.",
|
|
380
|
+
"set_build_settings": "Set mutable EditorUserBuildSettings fields. Does NOT manage scenes (use add_scene_to_build / remove_scene_from_build) or switch target (use switch_build_target). Use dry_run to preview.",
|
|
381
|
+
"switch_build_target": "Switch the active build target (destructive, long-running: triggers a full reimport + domain reload). Requires confirm=true. Returns immediately; poll switch_build_target_status.",
|
|
382
|
+
"switch_build_target_status": "Status of the last target switch: idle | switching | completed (with success + activeBuildTarget)."
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"group": "包管理",
|
|
387
|
+
"tools": {
|
|
388
|
+
"package_add": "Add a UPM package by name@version, git URL, or 'file:' local path. Async by default (returns in_progress; poll package_status); pass wait=true to block until added. A recompile/domain reload follows — poll recompile_status. Requires confirm=true; use dry_run to preview.",
|
|
389
|
+
"package_list": "List packages by scope: installed (default) | available (registry) | all (both). Returns the full result synchronously — available/all block until the registry query completes.",
|
|
390
|
+
"package_remove": "Remove a UPM package by name. Async by default (returns in_progress; poll package_status); pass wait=true to block until removed. A recompile/domain reload follows — poll recompile_status. Requires confirm=true; use dry_run to preview.",
|
|
391
|
+
"package_resolve": "Resolve/refresh packages from the manifest (re-fetch and re-link). May trigger a recompile/domain reload — poll recompile_status. Its outcome is recorded for package_status.",
|
|
392
|
+
"package_search": "Search packages available in the registry. Provide a name (e.g. com.unity.foo) or omit to list all. Returns the full result synchronously (blocks until the registry query completes).",
|
|
393
|
+
"package_status": "Status of the last async package operation (add/remove/resolve): idle | in_progress | completed | failed, with the added package, manifest, and any error."
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"group": "测试",
|
|
398
|
+
"tools": {
|
|
399
|
+
"cancel_tests": "Cancel running test execution",
|
|
400
|
+
"list_tests": "List all available tests (EditMode and/or PlayMode) without running them",
|
|
401
|
+
"run_tests": "Execute Unity tests with filtering options",
|
|
402
|
+
"test_status": "Get status of running async test execution"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"group": "烘焙(光照 / NavMesh / 遮挡)",
|
|
407
|
+
"tools": {
|
|
408
|
+
"bake_lighting": "Trigger an async lightmap bake of the open scene(s) via Lightmapping.BakeAsync(). Returns immediately; poll lighting_bake_status until completed.",
|
|
409
|
+
"bake_navmesh": "Trigger an async legacy NavMesh bake of the open scene(s) via UnityEditor.AI.NavMeshBuilder. Returns immediately; poll navmesh_bake_status until completed.",
|
|
410
|
+
"bake_navmesh_surfaces": "Bake NavMeshSurface components (AI Navigation package). v1 stub: returns package_not_found when the package is absent.",
|
|
411
|
+
"bake_occlusion_culling": "Trigger an async occlusion-culling bake of the open scene(s) via StaticOcclusionCulling.GenerateInBackground(). Returns immediately; poll occlusion_bake_status until completed.",
|
|
412
|
+
"cancel_lighting_bake": "Cancel an in-progress lighting bake (Lightmapping.Cancel()).",
|
|
413
|
+
"cancel_navmesh_bake": "Cancel an in-progress NavMesh bake (NavMeshBuilder.Cancel()).",
|
|
414
|
+
"cancel_occlusion_bake": "Cancel an in-progress occlusion bake (StaticOcclusionCulling.Cancel()).",
|
|
415
|
+
"clear_baked_lighting": "Clear baked lightmap data for the open scene(s). Destructive: requires confirm=true.",
|
|
416
|
+
"clear_navmesh": "Clear the baked NavMesh for the open scene(s). Destructive: requires confirm=true.",
|
|
417
|
+
"clear_occlusion_culling": "Clear baked occlusion-culling data for the open scene(s). Destructive: requires confirm=true.",
|
|
418
|
+
"get_lighting_settings": "Read the active LightingSettings (lightmapper, bounces, resolution, directional mode, AO, etc.).",
|
|
419
|
+
"get_navmesh_settings": "Read the default agent's legacy NavMesh bake settings (agentRadius/Height/Slope/Climb, minRegionArea, voxelSize).",
|
|
420
|
+
"lighting_bake_status": "Get the status of the last lighting bake: idle | baking | completed.",
|
|
421
|
+
"navmesh_bake_status": "Get the status of the last NavMesh bake: idle | baking | completed.",
|
|
422
|
+
"occlusion_bake_status": "Get the status of the last occlusion bake: idle | baking | completed.",
|
|
423
|
+
"set_lighting_settings": "Apply a subset of lighting settings to the active LightingSettings. Returns { applied[], unknown[] }.",
|
|
424
|
+
"set_navmesh_settings": "Apply a subset of legacy NavMesh bake settings to the default agent. Returns { applied[], unknown[] }."
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"group": "截图 / 捕获",
|
|
429
|
+
"tools": {
|
|
430
|
+
"capture_editor_element": "Capture a UI Toolkit VisualElement (by selector) from an EditorWindow to a PNG; returns path + base64.",
|
|
431
|
+
"capture_game_view": "Render the game view to a PNG. source=camera (default) renders a camera and misses Screen Space - Overlay UI; source=screen captures the composited backbuffer incl. overlay canvases (Play Mode only). Returns it inline as base64, unless save_path is set (path-only result; pass include_inline_image=true to get both).",
|
|
432
|
+
"capture_runtime_element": "Capture a UI Toolkit VisualElement (by selector) from a live runtime panel (UIDocument or PanelRenderer) to a PNG; returns path + base64.",
|
|
433
|
+
"capture_scene_view": "Render the active Scene View to a PNG. Returns it inline as base64, unless save_path is set (path-only result; pass include_inline_image=true to get both).",
|
|
434
|
+
"screenshot": "Capture the Scene or Game view as a PNG and return its file path"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"group": "编辑器控制",
|
|
439
|
+
"tools": {
|
|
440
|
+
"editor_focus": "Bring the Unity Editor window to the foreground",
|
|
441
|
+
"editor_pause": "Toggle pause state of Unity Editor play mode",
|
|
442
|
+
"editor_play": "Enter Unity Editor play mode",
|
|
443
|
+
"editor_status": "Get detailed Unity Editor status and state information",
|
|
444
|
+
"editor_stop": "Exit Unity Editor play mode",
|
|
445
|
+
"menu": "Execute an Editor menu item by path, or list available items when no path is given",
|
|
446
|
+
"set_autotick": "Keep the editor ticking while unfocused by forcing EditorApplication.SignalTick at a throttled rate"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"group": "可观测性 / 审计",
|
|
451
|
+
"tools": {
|
|
452
|
+
"audit": "Run a Project Auditor static-analysis scan. Returns immediately; poll audit_status until status is 'completed', then read the CSV.",
|
|
453
|
+
"audit_status": "Get the status of the last audit: idle | scanning | completed | failed | interrupted | unavailable.",
|
|
454
|
+
"clear_console": "Clear the captured log buffer and the Unity Editor console.",
|
|
455
|
+
"console": "Get captured Unity console output (Editor or Player; supports tail, level filtering, and follow via a cursor)",
|
|
456
|
+
"get_console_logs": "Read recently captured Editor console logs (structured).",
|
|
457
|
+
"get_performance_stats": "Read render, memory, and frame-timing stats (structured, read-only).",
|
|
458
|
+
"log": "Write a message to Unity console"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"group": "项目设置",
|
|
463
|
+
"tools": {
|
|
464
|
+
"get_audio_settings": "Read project Audio settings (volume, rolloff scale, doppler factor).",
|
|
465
|
+
"get_graphics_settings": "Read GraphicsSettings (default render pipeline).",
|
|
466
|
+
"get_input_settings": "Read the legacy Input Manager axes (names and count).",
|
|
467
|
+
"get_physics_settings": "Read Physics settings (gravity, solver iterations, bounce threshold).",
|
|
468
|
+
"get_player_settings": "Read PlayerSettings (company/product/version, scripting backend, API level).",
|
|
469
|
+
"get_quality_settings": "Read QualitySettings (current level, level names, vSync, anti-aliasing).",
|
|
470
|
+
"get_tags_layers": "Read the project's tags and (named) layers.",
|
|
471
|
+
"get_time_settings": "Read Time settings (fixedDeltaTime, maximumDeltaTime, timeScale).",
|
|
472
|
+
"set_audio_settings": "Change project Audio settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
473
|
+
"set_graphics_settings": "Set the default render pipeline asset. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
474
|
+
"set_input_settings": "Tune a legacy Input Manager axis (sensitivity/gravity/dead) by name. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
475
|
+
"set_physics_settings": "Change Physics settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
476
|
+
"set_player_settings": "Change PlayerSettings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z. Scripting backend / API level changes trigger a domain reload.",
|
|
477
|
+
"set_quality_settings": "Change QualitySettings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
478
|
+
"set_tags_layers": "Add/remove tags and assign user layer names (index 8-31). Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z.",
|
|
479
|
+
"set_time_settings": "Change Time settings. Requires confirm=true; use dry_run to preview. Not undoable via Ctrl+Z."
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"group": "运行时 / 输入模拟",
|
|
484
|
+
"tools": {
|
|
485
|
+
"quit": "Gracefully quit the Unity application",
|
|
486
|
+
"runtime_status": "Get comprehensive runtime application status",
|
|
487
|
+
"set_target_framerate": "Set the target frame rate for the application",
|
|
488
|
+
"set_timescale": "Set the time scale for the application",
|
|
489
|
+
"simulate_key": "Simulate a keyboard key event (Input System). Drives the running app.",
|
|
490
|
+
"simulate_pointer": "Simulate a mouse/pointer event at screen coordinates (Input System)."
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"group": "选择 / 搜索",
|
|
495
|
+
"tools": {
|
|
496
|
+
"get_selection": "Read the current Editor selection as structured object identities.",
|
|
497
|
+
"search": "Run a Unity Search query and return structured results.",
|
|
498
|
+
"set_selection": "Set the Editor selection to the given assets/scene objects."
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"group": "Authoring 根路径",
|
|
503
|
+
"tools": {
|
|
504
|
+
"get_authoring_root": "Get the base folder (under Assets/) that bare authoring paths resolve against.",
|
|
505
|
+
"set_authoring_root": "Set the base folder (under Assets/) that bare authoring paths resolve against and are confined to. Use 'Assets' for full project access."
|
|
506
|
+
}
|
|
507
|
+
}
|
|
263
508
|
]
|
|
264
509
|
}
|
|
265
510
|
}
|