какашки мне в кармашки
This commit is contained in:
1 parent
7fba61f7a0
commit
cbda26dfc0
335 files changed
+51926
-7266
No files matched your search
@@ -0,0 +1,68 @@
|
||||
---
|
||||
name: timeline-list
|
||||
description: List every `TimelineAsset` in the project with its path, GUID, track count and duration. Read-only.
|
||||
metadata:
|
||||
generated-by: mcp-plugin-dotnet
|
||||
---
|
||||
|
||||
# Timeline / List TimelineAssets
|
||||
|
||||
Search the project AssetDatabase for `TimelineAsset` (.playable) assets and report each one's path, GUID, track count, and computed duration.
|
||||
|
||||
## Inputs
|
||||
|
||||
- `includeTrackCount` (bool, default true) — when true, load each asset to count its output tracks; when false, skip loading (faster, no counts).
|
||||
|
||||
## Behavior
|
||||
|
||||
Runs `AssetDatabase.FindAssets("t:TimelineAsset")`, resolves each to a path, and (optionally) loads it for track count + duration. Read-only. Runs on the Unity main thread.
|
||||
|
||||
## How to Call
|
||||
|
||||
```bash
|
||||
unity-mcp-cli run-tool timeline-list --input '{
|
||||
"includeTrackCount": false
|
||||
}'
|
||||
```
|
||||
|
||||
> For complex input (multi-line strings, code), save the JSON to a file and use:
|
||||
> ```bash
|
||||
> unity-mcp-cli run-tool timeline-list --input-file args.json
|
||||
> ```
|
||||
>
|
||||
> Or pipe via stdin (recommended):
|
||||
> ```bash
|
||||
> unity-mcp-cli run-tool timeline-list --input-file - <<'EOF'
|
||||
> {"param": "value"}
|
||||
> EOF
|
||||
> ```
|
||||
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If `unity-mcp-cli` is not found, either install it globally (`npm install -g unity-mcp-cli`) or use `npx unity-mcp-cli` instead.
|
||||
Read the /unity-initial-setup skill for detailed installation instructions.
|
||||
|
||||
## Input
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|------|------|----------|-------------|
|
||||
| `includeTrackCount` | `boolean` | No | If true (default), load each asset to report its track count and duration; if false, skip loading. |
|
||||
|
||||
### Input JSON Schema
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"includeTrackCount": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
This tool does not return structured output.
|
||||
|
||||
Reference in new issue
Block a user