diff --git a/.opencode/skills/animation-create/SKILL.md b/.opencode/skills/animation-create/SKILL.md new file mode 100644 index 0000000..3ae63bf --- /dev/null +++ b/.opencode/skills/animation-create/SKILL.md @@ -0,0 +1,74 @@ +--- +name: animation-create +description: Create empty Unity `AnimationClip` assets at the given project paths. Each path must start with `Assets/` and end with `.anim`. Missing intermediate folders are created recursively. Pair with 'animation-modify' to populate curves and events. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animation / Create + +Create empty Unity `AnimationClip` assets at the given project paths. Each path must start with `Assets/` and end with `.anim`. Missing intermediate folders are created recursively, then `AssetDatabase.Refresh()` runs and the Editor windows repaint. Pair with 'animation-modify' to populate curves and events afterwards. + +## Inputs + +- `sourcePaths` — array of project-relative `.anim` paths to create. + +## Behavior + +Each path is validated independently: empty / non-`Assets/` / non-`.anim` paths are skipped and appended to `errors` instead of aborting the whole batch. Successfully created clips are returned in `createdAssets` with their path, instance ID, and name. + +## How to Call + +```bash +unity-mcp-cli run-tool animation-create --input '{ + "sourcePaths": [] +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animation-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animation-create --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 | +|------|------|----------|-------------| +| `sourcePaths` | `array` | Yes | The paths of the animation assets to create. Each path should start with 'Assets/' and end with '.anim'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sourcePaths": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "sourcePaths" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/animation-get-data/SKILL.md b/.opencode/skills/animation-get-data/SKILL.md new file mode 100644 index 0000000..e8c4bbb --- /dev/null +++ b/.opencode/skills/animation-get-data/SKILL.md @@ -0,0 +1,74 @@ +--- +name: animation-get-data +description: Inspect a Unity `AnimationClip` asset — name, length, frame rate, wrap mode, looping/legacy/humanMotion flags, local bounds, and the full set of float curves, object-reference curves, and events. Pair with 'animation-modify' to write changes back. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animation / Get Data + +Inspect a Unity `AnimationClip` asset. Returns the high-level clip metadata plus the complete set of float curve bindings, object-reference curve bindings, and animation events. Pair with 'animation-modify' to write changes back. + +## Inputs + +- `animRef` — reference to the `AnimationClip` asset (path must start with `Assets/` and end with `.anim`). + +## Returned fields + +- `name`, `length`, `frameRate`, `wrapMode`, `isLooping`, `hasGenericRootTransform`, `hasMotionCurves`, `hasMotionFloatCurves`, `hasRootCurves`, `humanMotion`, `legacy`, `localBounds`, `empty`. +- `curveBindings` — float curve bindings (`path`, `propertyName`, `type`, `isPPtrCurve`, `isDiscreteCurve`, `keyframeCount`). +- `objectReferenceBindings` — object-reference curve bindings (same shape as `curveBindings`). +- `events` — animation events (`time`, `functionName`, `intParameter`, `floatParameter`, `stringParameter`). + +## How to Call + +```bash +unity-mcp-cli run-tool animation-get-data --input '{ + "animRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animation-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animation-get-data --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 | +|------|------|----------|-------------| +| `animRef` | `string` | Yes | Reference to the animation asset. The path should start with 'Assets/' and end with '.anim'. RQL: AssetObjectRef | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "animRef": { + "type": "string" + } + }, + "required": [ + "animRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/animation-modify/SKILL.md b/.opencode/skills/animation-modify/SKILL.md new file mode 100644 index 0000000..f8ef40e --- /dev/null +++ b/.opencode/skills/animation-modify/SKILL.md @@ -0,0 +1,89 @@ +--- +name: animation-modify +description: Apply a batch of modifications to a Unity `AnimationClip` — set/remove float curves, clear all curves, set frame rate / wrap mode / legacy flag, add or clear animation events. Use 'animation-get-data' first to discover valid curve bindings. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animation / Modify + +Apply a batch of modifications to a Unity `AnimationClip` asset. Each modification is dispatched by its `ModificationType` discriminator. Use 'animation-get-data' first to discover valid property names and existing curves so the diff is targeted. + +## Inputs + +- `animRef` — reference to the `AnimationClip` asset (path must start with `Assets/` and end with `.anim`). +- `modifications` — array of `AnimationModification` entries. + +## Supported modification types + +- `SetCurve` — add or replace a float animation curve (`path`, `propertyName`, `type`, `keyframes`). +- `RemoveCurve` — remove a specific binding. +- `ClearCurves` — remove every curve from the clip. +- `SetFrameRate` — set the clip's frame rate. +- `SetWrapMode` — set the clip's `WrapMode`. +- `SetLegacy` — toggle the legacy animation flag. +- `AddEvent` — append an animation event (`time`, `functionName`, `intParameter`, `floatParameter`, `stringParameter`). +- `ClearEvents` — remove every animation event. + +## Behavior + +Per-modification errors are accumulated in the response's `errors` array instead of aborting the whole batch. Events are applied as a single rewrite after all per-entry mutations finish. + +## How to Call + +```bash +unity-mcp-cli run-tool animation-modify --input '{ + "animRef": "string_value", + "modifications": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animation-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animation-modify --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 | +|------|------|----------|-------------| +| `animRef` | `string` | Yes | Reference to the AnimationClip asset to modify. RQL: AssetObjectRef | +| `modifications` | `string` | Yes | Array of modifications to apply to the clip. RQL: [AnimationModification] | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "animRef": { + "type": "string" + }, + "modifications": { + "type": "string" + } + }, + "required": [ + "animRef", + "modifications" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/animator-create/SKILL.md b/.opencode/skills/animator-create/SKILL.md new file mode 100644 index 0000000..be4a293 --- /dev/null +++ b/.opencode/skills/animator-create/SKILL.md @@ -0,0 +1,74 @@ +--- +name: animator-create +description: Create empty Unity `AnimatorController` assets at the given project paths. Each path must start with `Assets/` and end with `.controller`. Missing intermediate folders are created recursively. Pair with 'animator-modify' to add layers/states/parameters. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animator / Create + +Create empty Unity `AnimatorController` assets at the given project paths. Each path must start with `Assets/` and end with `.controller`. Missing intermediate folders are created recursively, then `AssetDatabase.Refresh()` runs and the Editor windows repaint. Pair with 'animator-modify' to add layers, states, parameters, and transitions afterwards. + +## Inputs + +- `sourcePaths` — array of project-relative `.controller` paths to create. + +## Behavior + +Each path is validated independently: empty / non-`Assets/` / non-`.controller` paths are skipped and appended to `errors` instead of aborting the whole batch. Successfully created controllers are returned in `createdAssets` with their path, instance ID, and name. + +## How to Call + +```bash +unity-mcp-cli run-tool animator-create --input '{ + "sourcePaths": [] +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animator-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animator-create --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 | +|------|------|----------|-------------| +| `sourcePaths` | `array` | Yes | The paths of the animator controller assets to create. Each path should start with 'Assets/' and end with '.controller'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sourcePaths": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "sourcePaths" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/animator-get-data/SKILL.md b/.opencode/skills/animator-get-data/SKILL.md new file mode 100644 index 0000000..c3c4151 --- /dev/null +++ b/.opencode/skills/animator-get-data/SKILL.md @@ -0,0 +1,75 @@ +--- +name: animator-get-data +description: Inspect a Unity `AnimatorController` asset — controller name, every parameter (name, type, defaults), every layer with its state machine, every state, and every transition. Pair with 'animator-modify' to write changes back. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animator / Get Data + +Inspect a Unity `AnimatorController` asset. Returns the controller's name plus the full set of parameters, layers, states, and transitions — enough to drive a follow-up 'animator-modify' call with valid names. + +## Inputs + +- `animatorRef` — reference to the `AnimatorController` asset (path must start with `Assets/` and end with `.controller`). + +## Returned fields + +- `name` — controller asset name. +- `parameters` — every parameter (name, type, default value). +- `layers` — every layer with its state machine, default state, and weight. +- `states` — every state across all layers (name, speed, motion). +- `transitions` — every transition with its conditions, source, and destination. + +## How to Call + +```bash +unity-mcp-cli run-tool animator-get-data --input '{ + "animatorRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animator-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animator-get-data --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 | +|------|------|----------|-------------| +| `animatorRef` | `string` | Yes | Reference to the AnimatorController asset. The path should start with 'Assets/' and end with '.controller'. RQL: AssetObjectRef | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "animatorRef": { + "type": "string" + } + }, + "required": [ + "animatorRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/animator-modify/SKILL.md b/.opencode/skills/animator-modify/SKILL.md new file mode 100644 index 0000000..0d42558 --- /dev/null +++ b/.opencode/skills/animator-modify/SKILL.md @@ -0,0 +1,89 @@ +--- +name: animator-modify +description: Apply a batch of modifications to a Unity `AnimatorController` — add/remove parameters, layers, states, and transitions; set default states; set state motion/speed. Use 'animator-get-data' first to discover valid names. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Animator / Modify + +Apply a batch of modifications to a Unity `AnimatorController` asset. Each modification is dispatched by its `AnimatorModificationType` discriminator. Use 'animator-get-data' first to discover valid names so the diff is targeted. + +## Inputs + +- `animatorRef` — reference to the `AnimatorController` asset (path must start with `Assets/` and end with `.controller`). +- `modifications` — array of `AnimatorModification` entries. + +## Supported modification types + +- `AddParameter` / `RemoveParameter` — manage controller parameters (float, int, bool, trigger). +- `AddLayer` / `RemoveLayer` — manage animator layers. +- `AddState` / `RemoveState` — manage states inside a specific layer. +- `SetDefaultState` — pick the default state for a layer. +- `AddTransition` / `RemoveTransition` — manage state-to-state transitions. +- `AddAnyStateTransition` — add a transition from Any State. +- `SetStateMotion` — assign an `AnimationClip` as a state's motion. +- `SetStateSpeed` — set a state's speed multiplier. + +## Behavior + +Per-modification errors are accumulated in the response's `errors` array instead of aborting the whole batch. The controller asset is marked dirty and saved after the modifications complete. + +## How to Call + +```bash +unity-mcp-cli run-tool animator-modify --input '{ + "animatorRef": "string_value", + "modifications": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool animator-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool animator-modify --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 | +|------|------|----------|-------------| +| `animatorRef` | `string` | Yes | Reference to the AnimatorController asset to modify. RQL: AssetObjectRef | +| `modifications` | `string` | Yes | Array of modifications to apply to the controller. RQL: [AnimatorModification] | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "animatorRef": { + "type": "string" + }, + "modifications": { + "type": "string" + } + }, + "required": [ + "animatorRef", + "modifications" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/assets-copy/SKILL.md b/.opencode/skills/assets-copy/SKILL.md new file mode 100644 index 0000000..80f3415 --- /dev/null +++ b/.opencode/skills/assets-copy/SKILL.md @@ -0,0 +1,160 @@ +--- +name: assets-copy +description: Copy assets at given paths and store them at new paths. Refreshes the AssetDatabase at the end. Use 'assets-find' to locate the source assets first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Copy + +Copy assets at given paths and store them at new paths. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before copying. + +## Inputs + +- `sourcePaths` — paths of the assets to copy. +- `destinationPaths` — paths to store the copied assets (must match `sourcePaths` length). + +## Behavior + +Each source/destination pair is copied in order. Per-pair errors are accumulated in the response instead of throwing, so a single bad pair does not abort the whole batch. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-copy --input '{ + "sourcePaths": "string_value", + "destinationPaths": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-copy --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-copy --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 | +|------|------|----------|-------------| +| `sourcePaths` | `any` | Yes | The paths of the assets to copy. | +| `destinationPaths` | `any` | Yes | The paths to store the copied assets. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sourcePaths": { + "$ref": "#/$defs/System.String-1" + }, + "destinationPaths": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "sourcePaths", + "destinationPaths" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.CopyAssetsResponse" + } + }, + "$defs": { + "System.Collections.Generic.List(AIGD.AssetObjectRef)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.CopyAssetsResponse": { + "type": "object", + "properties": { + "CopiedAssets": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.AssetObjectRef)", + "description": "List of copied assets." + }, + "Errors": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of errors encountered during copy operations." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-create-folder/SKILL.md b/.opencode/skills/assets-create-folder/SKILL.md new file mode 100644 index 0000000..60135b1 --- /dev/null +++ b/.opencode/skills/assets-create-folder/SKILL.md @@ -0,0 +1,129 @@ +--- +name: assets-create-folder +description: Create a new folder under a parent folder inside 'Assets/'. The parent path must start with 'Assets/' and every intermediate folder in it must already exist. Refreshes the AssetDatabase at the end and returns the GUID(s) of the created folder(s). +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Create Folder + +Creates a new folder in the specified parent folder. The parent folder string must start with the 'Assets' folder, and all folders within the parent folder string must already exist. For example, when specifying 'Assets/ParentFolder1/ParentFolder2/', the new folder will be created in 'ParentFolder2' only if ParentFolder1 and ParentFolder2 already exist. Use it to organize scripts and assets in the project. Does AssetDatabase.Refresh() at the end. Returns the GUID of the newly created folder, if successful. + +## Inputs + +- `inputs` — list of `{ParentFolderPath, NewFolderName}` entries. Each entry is processed independently; per-entry errors are collected in the response so a single bad input does not abort the batch. + +## Validation + +- `NewFolderName` must be non-empty and must not contain any of `/`, `\`, `<`, `>`, `:`, `"`, `|`, `?`, `*`, or control characters (these checks are cross-platform even on Linux/Mac). +- `ParentFolderPath` must already exist as an `AssetDatabase.IsValidFolder` path. +- A folder with the same target name must not already exist under the parent. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-create-folder --input '{ + "inputs": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-create-folder --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-create-folder --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 | +|------|------|----------|-------------| +| `inputs` | `any` | Yes | The paths for the folders to create. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "inputs": { + "$ref": "#/$defs/AIGD.CreateFolderInput-1" + } + }, + "$defs": { + "AIGD.CreateFolderInput": { + "type": "object", + "properties": { + "ParentFolderPath": { + "type": "string", + "description": "The parent folder path where the new folder will be created." + }, + "NewFolderName": { + "type": "string", + "description": "The name of the new folder to create." + } + } + }, + "AIGD.CreateFolderInput-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.CreateFolderInput" + } + } + }, + "required": [ + "inputs" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.CreateFolderResponse" + } + }, + "$defs": { + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.CreateFolderResponse": { + "type": "object", + "properties": { + "CreatedFolderGuids": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of GUIDs of created folders." + }, + "Errors": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of errors encountered during folder creation." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-delete/SKILL.md b/.opencode/skills/assets-delete/SKILL.md new file mode 100644 index 0000000..57ba428 --- /dev/null +++ b/.opencode/skills/assets-delete/SKILL.md @@ -0,0 +1,114 @@ +--- +name: assets-delete +description: Delete the assets at the given project paths. Refreshes the AssetDatabase at the end. Use 'assets-find' to locate the assets first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Delete + +Delete the assets at paths from the project. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before deleting. + +## Inputs + +- `paths` — project-relative asset paths to delete. Must be non-empty. + +## Behavior + +Routes through `AssetDatabase.DeleteAssets`, which deletes the batch atomically. Paths Unity reports as failed are surfaced in `response.Errors`; successfully deleted paths are surfaced in `response.DeletedPaths`. The tool is destructive (removes files from disk). + +## How to Call + +```bash +unity-mcp-cli run-tool assets-delete --input '{ + "paths": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-delete --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-delete --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 | +|------|------|----------|-------------| +| `paths` | `any` | Yes | The paths of the assets | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "paths": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "paths" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.DeleteAssetsResponse" + } + }, + "$defs": { + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.DeleteAssetsResponse": { + "type": "object", + "properties": { + "DeletedPaths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of paths of deleted assets." + }, + "Errors": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of errors encountered during delete operations." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-find-built-in/SKILL.md b/.opencode/skills/assets-find-built-in/SKILL.md new file mode 100644 index 0000000..4d0fdd5 --- /dev/null +++ b/.opencode/skills/assets-find-built-in/SKILL.md @@ -0,0 +1,140 @@ +--- +name: assets-find-built-in +description: Search the built-in assets of the Unity Editor (located at Resources/unity_builtin_extra). Filters by name and/or type; built-in assets have no GUID so GUID-based lookups are not supported. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Find (Built-in) + +Search the built-in assets of the Unity Editor located in the built-in resources: Resources/unity_builtin_extra. Doesn't support GUIDs since built-in assets do not have them. + +## Inputs + +- `name` (optional) — case-insensitive name fragment. Underscores, hyphens, spaces, and periods delimit search words so partial-word matching works. +- `type` (optional) — restrict results to assets assignable to this type (e.g. `UnityEngine.Texture2D`). +- `maxResults` — cap on returned list size (default 10). + +## Ranking + +Results are sorted by descending match quality: exact match → substring match → all-words match → partial-words match. Within a rank, results are sorted alphabetically by filename for stable ordering. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-find-built-in --input '{ + "name": "string_value", + "type": "string_value", + "maxResults": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-find-built-in --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-find-built-in --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 | +|------|------|----------|-------------| +| `name` | `string` | No | The name of the asset to filter by. | +| `type` | `any` | No | The type of the asset to filter by. | +| `maxResults` | `integer` | No | Maximum number of assets to return. If the number of found assets exceeds this limit, the result will be truncated. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/$defs/System.Type" + }, + "maxResults": { + "type": "integer" + } + }, + "$defs": { + "System.Type": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.AssetObjectRef)" + } + }, + "$defs": { + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "System.Collections.Generic.List(AIGD.AssetObjectRef)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-find/SKILL.md b/.opencode/skills/assets-find/SKILL.md new file mode 100644 index 0000000..33c9580 --- /dev/null +++ b/.opencode/skills/assets-find/SKILL.md @@ -0,0 +1,144 @@ +--- +name: assets-find +description: "Search the Unity asset database using a search filter string. The filter accepts names, labels (`l:`), types (`t:`), AssetBundles (`b:`), areas (`a:`), and globs (`glob:`). See the body for the full filter syntax." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Find + +Search the asset database using the search filter string. Allows you to search for Assets. The string argument can provide names, labels or types (classnames). + +## Filter syntax + +- **Name** — filter assets by their filename (without extension). Words separated by whitespace are treated as separate name searches. +- **Labels (`l:`)** — assets can have labels attached. Use `l:` before each label. +- **Types (`t:`)** — find assets based on explicitly identified types. Available types include AnimationClip, AudioClip, AudioMixer, ComputeShader, Font, GUISkin, Material, Mesh, Model, PhysicMaterial, Prefab, Scene, Script, Shader, Sprite, Texture, VideoClip, VisualEffectAsset, VisualEffectSubgraph. +- **AssetBundles (`b:`)** — find assets which are part of an Asset bundle. +- **Area (`a:`)** — find assets in a specific area. Valid values: `all`, `assets`, `packages`. +- **Globbing (`glob:`)** — use globbing to match specific rules. + +Searching is case-insensitive. Use `searchInFolders` to restrict the search scope. `maxResults` caps the returned list (default 10) — results beyond it are truncated. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-find --input '{ + "filter": "string_value", + "searchInFolders": "string_value", + "maxResults": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-find --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-find --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 | +|------|------|----------|-------------| +| `filter` | `string` | No | The filter string can contain search data. Could be empty. Name: Filter assets by their filename (without extension). Words separated by whitespace are treated as separate name searches. Labels (l:): Assets can have labels attached to them. Use 'l:' before each label. Types (t:): Find assets based on explicitly identified types. Use 't:' keyword. Available types: AnimationClip, AudioClip, AudioMixer, ComputeShader, Font, GUISkin, Material, Mesh, Model, PhysicMaterial, Prefab, Scene, Script, Shader, Sprite, Texture, VideoClip, VisualEffectAsset, VisualEffectSubgraph. AssetBundles (b:): Find assets which are part of an Asset bundle. Area (a:): Find assets in a specific area. Valid values are 'all', 'assets', and 'packages'. Globbing (glob:): Use globbing to match specific rules. Note: Searching is case insensitive. | +| `searchInFolders` | `any` | No | The folders where the search will start. If null, the search will be performed in all folders. | +| `maxResults` | `integer` | No | Maximum number of assets to return. If the number of found assets exceeds this limit, the result will be truncated. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filter": { + "type": "string" + }, + "searchInFolders": { + "$ref": "#/$defs/System.String-1" + }, + "maxResults": { + "type": "integer" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.AssetObjectRef)" + } + }, + "$defs": { + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "System.Collections.Generic.List(AIGD.AssetObjectRef)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-get-data/SKILL.md b/.opencode/skills/assets-get-data/SKILL.md new file mode 100644 index 0000000..93290bb --- /dev/null +++ b/.opencode/skills/assets-get-data/SKILL.md @@ -0,0 +1,200 @@ +--- +name: assets-get-data +description: Get asset data from the asset file in the Unity project — every serializable field and property. Supports token-saving path-scoped reads via `paths` or `viewQuery`. Use 'assets-find' to find the asset first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Get Data + +Get asset data from the asset file in the Unity project. It includes all serializable fields and properties of the asset. Use 'assets-find' tool to find asset before using this tool. + +## Path-scoped reads (token-saving) + +Supply `paths` (a list of paths) to read only the listed fields/elements via `Reflector.TryReadAt`, or `viewQuery` (a `ViewQuery`) to navigate to a subtree and/or filter by name regex / max depth / type via `Reflector.View`. These two parameters are mutually exclusive — supply at most one. When neither is supplied the full asset is serialized (backwards compatible). + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-get-data --input '{ + "assetRef": "string_value", + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-get-data --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 | +|------|------|----------|-------------| +| `assetRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View — combines a starting Path, a case-insensitive NamePattern regex, MaxDepth, and an optional TypeFilter. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + }, + "required": [ + "assetRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "$defs": { + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-material-create/SKILL.md b/.opencode/skills/assets-material-create/SKILL.md new file mode 100644 index 0000000..636f567 --- /dev/null +++ b/.opencode/skills/assets-material-create/SKILL.md @@ -0,0 +1,127 @@ +--- +name: assets-material-create +description: Create a new Material asset with default parameters at a given 'Assets/'-rooted path ending in '.mat'. Creates intermediate folders if missing. Use 'assets-shader-list-all' to find a valid `shaderName`. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Create Material + +Create new material asset with default parameters. Creates folders recursively if they do not exist. Provide proper 'shaderName' - use 'assets-shader-list-all' tool to find available shaders. + +## Inputs + +- `assetPath` — must start with `Assets/` and end with `.mat`. +- `shaderName` — name resolvable via `UnityEngine.Shader.Find`. + +## Behavior + +Throws if the path is empty, malformed, or the shader cannot be resolved. Creates a default Material from the resolved shader, saves it, refreshes the AssetDatabase, and returns an `AssetObjectRef` pointing at the new asset. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-material-create --input '{ + "assetPath": "string_value", + "shaderName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-material-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-material-create --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Asset path. Starts with 'Assets/'. Ends with '.mat'. | +| `shaderName` | `string` | Yes | Name of the shader that need to be used to create the material. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "shaderName": { + "type": "string" + } + }, + "required": [ + "assetPath", + "shaderName" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-modify/SKILL.md b/.opencode/skills/assets-modify/SKILL.md new file mode 100644 index 0000000..d56fd25 --- /dev/null +++ b/.opencode/skills/assets-modify/SKILL.md @@ -0,0 +1,215 @@ +--- +name: assets-modify +description: Modify an asset file in the project. Use 'assets-get-data' first to inspect the asset structure before modifying. Not allowed to modify asset files in the 'Packages/' folder — modify them in 'Assets/'. Three modification surfaces are available (content, pathPatches, jsonPatch) — see the skill body for details. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Modify + +## Three modification surfaces + +Use whichever fits the task: + +1. `content` — full `SerializedMember` override (legacy, backwards compatible). +2. `pathPatches` — list of `{path, value}` pairs routed through `Reflector.TryModifyAt`. +3. `jsonPatch` — JSON Merge Patch routed through `Reflector.TryPatch`. + +When more than one is supplied they run in this order: `jsonPatch` → `pathPatches` → `content`. At least one is required. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-modify --input '{ + "assetRef": "string_value", + "content": "string_value", + "pathPatches": "string_value", + "jsonPatch": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-modify --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 | +|------|------|----------|-------------| +| `assetRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. | +| `content` | `any` | No | Optional. The asset content. It overrides the existing asset content (legacy path). | +| `pathPatches` | `any` | No | Optional. List of path-scoped patches routed through Reflector.TryModifyAt. | +| `jsonPatch` | `any` | No | Optional. JSON Merge Patch (RFC 7396, extended with [i]/[key] keys) routed through Reflector.TryPatch. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef" + }, + "content": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "pathPatches": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.PathPatch)" + }, + "jsonPatch": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": true + } + ] + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.PathPatch": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Slash-delimited path to the target field/element/entry. Plain segment navigates a field or property (e.g. 'admin' or 'admin/name'). Use '[i]' for array/list index (e.g. 'planets/[0]/orbitRadius'). Use '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Required." + }, + "Value": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "The new value to write at the path. Use the standard SerializedMember envelope: 'typeName' + 'value' for primitives, or nested 'fields'/'props' for complex types. Required — omitting it overwrites the target with a default empty SerializedMember." + } + } + }, + "System.Collections.Generic.List(AIGD.PathPatch)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.PathPatch" + } + } + }, + "required": [ + "assetRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-move/SKILL.md b/.opencode/skills/assets-move/SKILL.md new file mode 100644 index 0000000..638feb0 --- /dev/null +++ b/.opencode/skills/assets-move/SKILL.md @@ -0,0 +1,121 @@ +--- +name: assets-move +description: Move or rename assets at the given project paths. Refreshes the AssetDatabase at the end. Use 'assets-find' to locate the assets first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Move + +Move the assets at paths in the project. Should be used for asset rename. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before moving. + +## Inputs + +- `sourcePaths` — paths of the assets to move. +- `destinationPaths` — target paths (must match `sourcePaths` length). + +## Behavior + +Each pair is moved independently via `AssetDatabase.MoveAsset`. Per-pair failures (Unity's `MoveAsset` returns a non-empty error string) are surfaced in `response.Errors`; successful moves accumulate into `response.MovedPaths`. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-move --input '{ + "sourcePaths": "string_value", + "destinationPaths": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-move --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-move --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 | +|------|------|----------|-------------| +| `sourcePaths` | `any` | Yes | The paths of the assets to move. | +| `destinationPaths` | `any` | Yes | The paths of moved assets. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sourcePaths": { + "$ref": "#/$defs/System.String-1" + }, + "destinationPaths": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "sourcePaths", + "destinationPaths" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.MoveAssetsResponse" + } + }, + "$defs": { + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.MoveAssetsResponse": { + "type": "object", + "properties": { + "MovedPaths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of destination paths of successfully moved assets." + }, + "Errors": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of errors encountered during move operations." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-prefab-close/SKILL.md b/.opencode/skills/assets-prefab-close/SKILL.md new file mode 100644 index 0000000..c6f58d5 --- /dev/null +++ b/.opencode/skills/assets-prefab-close/SKILL.md @@ -0,0 +1,117 @@ +--- +name: assets-prefab-close +description: Close the currently opened prefab edit stage. Optionally saves changes back to the prefab asset before closing. Pair with 'assets-prefab-open' to enter the edit mode first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Prefab / Close + +Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first. + +## Inputs + +- `save` (default `true`) — when `true`, calls `PrefabUtility.SaveAsPrefabAsset` before exiting the stage; when `false`, the save is skipped. The prefab stage's dirtiness is always cleared at the end, so any unsaved changes are discarded when `save` is `false`. + +## Behavior + +Throws when no prefab stage is currently open. Returns an `AssetObjectRef` for the closed prefab asset. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-prefab-close --input '{ + "save": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-prefab-close --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-prefab-close --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 | +|------|------|----------|-------------| +| `save` | `boolean` | No | True to save prefab. False to discard changes. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "save": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-prefab-create/SKILL.md b/.opencode/skills/assets-prefab-create/SKILL.md new file mode 100644 index 0000000..1b375e5 --- /dev/null +++ b/.opencode/skills/assets-prefab-create/SKILL.md @@ -0,0 +1,180 @@ +--- +name: assets-prefab-create +description: Create a Prefab (or Prefab Variant) at a project asset path. Source can be a scene GameObject (`gameObjectRef`) or an existing prefab asset (`sourcePrefabAssetPath`). Creates intermediate folders if missing. Use 'gameobject-find' to locate the source GameObject first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Prefab / Create + +Create a prefab from a GameObject in the current active scene. The prefab will be saved in the project assets at the specified path. Creates folders recursively if they do not exist. If the source GameObject is already a prefab instance and 'connectGameObjectToPrefab' is true, a Prefab Variant is created automatically. To create a Prefab Variant from an existing prefab asset, provide 'sourcePrefabAssetPath' instead of 'gameObjectRef'. Use 'gameobject-find' tool to find the target GameObject first. + +## Inputs (mutually exclusive sources) + +- `prefabAssetPath` — required. Must start with `Assets/` and end with `.prefab`. +- `gameObjectRef` — scene GameObject to convert (or to seed a Prefab Variant from when it is already a prefab instance). +- `sourcePrefabAssetPath` — existing prefab asset to seed a Prefab Variant from. Cannot be combined with `gameObjectRef`. +- `connectGameObjectToPrefab` (default `true`) — when sourcing from a scene GameObject, connect the scene object to the new prefab asset (becoming a prefab instance). Ignored for `sourcePrefabAssetPath` (always creates a variant). + +## Behavior + +Creates intermediate folders along `prefabAssetPath` if they don't already exist. Returns an `AssetObjectRef` pointing at the new prefab asset. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-prefab-create --input '{ + "prefabAssetPath": "string_value", + "gameObjectRef": "string_value", + "sourcePrefabAssetPath": "string_value", + "connectGameObjectToPrefab": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-prefab-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-prefab-create --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 | +|------|------|----------|-------------| +| `prefabAssetPath` | `string` | Yes | Prefab asset path. Should be in the format 'Assets/Path/To/Prefab.prefab'. | +| `gameObjectRef` | `any` | No | Reference to a scene GameObject to create the prefab from. If the GameObject is already a prefab instance, a Prefab Variant is created when 'connectGameObjectToPrefab' is true. Optional if 'sourcePrefabAssetPath' is provided. | +| `sourcePrefabAssetPath` | `string` | No | Path to an existing prefab asset to create a Prefab Variant from (e.g. 'Assets/Prefabs/Base.prefab'). When provided, a temporary instance is created, saved as a Prefab Variant, and cleaned up. Optional if 'gameObjectRef' is provided. | +| `connectGameObjectToPrefab` | `boolean` | No | If true, the scene GameObject will be connected to the new prefab (becoming a prefab instance). If the source is already a prefab instance, this creates a Prefab Variant. If false, the prefab asset is created but the scene GameObject remains unchanged. Ignored when 'sourcePrefabAssetPath' is used (always creates a variant). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "prefabAssetPath": { + "type": "string" + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "sourcePrefabAssetPath": { + "type": "string" + }, + "connectGameObjectToPrefab": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "prefabAssetPath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-prefab-instantiate/SKILL.md b/.opencode/skills/assets-prefab-instantiate/SKILL.md new file mode 100644 index 0000000..fc0305e --- /dev/null +++ b/.opencode/skills/assets-prefab-instantiate/SKILL.md @@ -0,0 +1,175 @@ +--- +name: assets-prefab-instantiate +description: Instantiate a prefab into the currently active scene at an optional position/rotation/scale, parented under an optional scene GameObject path. Use 'assets-find' to locate the prefab asset first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Prefab / Instantiate + +Instantiates prefab in the current active scene. Use 'assets-find' tool to find prefab assets in the project. + +## Inputs + +- `prefabAssetPath` — project asset path of the prefab to instantiate. +- `gameObjectPath` — destination path in the scene; the last segment becomes the new GameObject's name, any prefix is looked up as the parent (must already exist). +- `position` / `rotation` / `scale` — optional transform; default to zero / zero / one. +- `isLocalSpace` — when `true`, applies the transform in local space relative to the parent. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-prefab-instantiate --input '{ + "prefabAssetPath": "string_value", + "gameObjectPath": "string_value", + "position": "string_value", + "rotation": "string_value", + "scale": "string_value", + "isLocalSpace": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-prefab-instantiate --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-prefab-instantiate --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 | +|------|------|----------|-------------| +| `prefabAssetPath` | `string` | Yes | Prefab asset path. | +| `gameObjectPath` | `string` | Yes | GameObject path in the current active scene. | +| `position` | `any` | No | Transform position of the GameObject. | +| `rotation` | `any` | No | Transform rotation of the GameObject. Euler angles in degrees. | +| `scale` | `any` | No | Transform scale of the GameObject. | +| `isLocalSpace` | `boolean` | No | World or Local space of transform. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "prefabAssetPath": { + "type": "string" + }, + "gameObjectPath": { + "type": "string" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "scale": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "isLocalSpace": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "prefabAssetPath", + "gameObjectPath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-prefab-open/SKILL.md b/.opencode/skills/assets-prefab-open/SKILL.md new file mode 100644 index 0000000..3a8784f --- /dev/null +++ b/.opencode/skills/assets-prefab-open/SKILL.md @@ -0,0 +1,113 @@ +--- +name: assets-prefab-open +description: Open the prefab edit stage for a prefab instance or prefab asset GameObject. Modifications inside the edit stage propagate to all instances. Pair with 'assets-prefab-close' to exit the stage when done. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Prefab / Open + +Open prefab edit mode for a specific GameObject. In the Edit mode you can modify the prefab. The modification will be applied to all instances of the prefab across the project. Note: Please use 'assets-prefab-close' tool later to exit prefab editing mode. + +## Inputs + +- `gameObjectRef` — reference to a scene prefab instance OR a prefab asset GameObject. The tool resolves the prefab asset path via `PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot` and opens the appropriate prefab stage. + +## Behavior + +Asset-side GameObjects open via the simple `OpenPrefab(path)` overload. Scene-instance GameObjects open via `OpenPrefab(path, gameObject)` so the editor remembers which instance prompted the edit. Editor windows are repainted before returning. Throws when the GameObject cannot be resolved or the stage fails to open. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-prefab-open --input '{ + "gameObjectRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-prefab-open --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-prefab-open --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | GameObject that represents prefab instance of an original prefab GameObject. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/assets-prefab-save/SKILL.md b/.opencode/skills/assets-prefab-save/SKILL.md new file mode 100644 index 0000000..65c5264 --- /dev/null +++ b/.opencode/skills/assets-prefab-save/SKILL.md @@ -0,0 +1,113 @@ +--- +name: assets-prefab-save +description: Save the currently opened prefab edit stage back to its prefab asset without exiting the stage. Pair with 'assets-prefab-open' to enter the edit mode first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Prefab / Save + +Save a prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first. + +## Behavior + +Calls `PrefabUtility.SaveAsPrefabAsset` on the current prefab stage's contents root, clears the stage's dirtiness flag, repaints editor windows, and returns an `AssetObjectRef` to the saved prefab. Throws when no prefab stage is currently open. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-prefab-save --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-prefab-save --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-prefab-save --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-refresh/SKILL.md b/.opencode/skills/assets-refresh/SKILL.md new file mode 100644 index 0000000..578ba28 --- /dev/null +++ b/.opencode/skills/assets-refresh/SKILL.md @@ -0,0 +1,82 @@ +--- +name: assets-refresh +description: Refresh the Unity AssetDatabase. Use after files were added or updated outside of the Unity API, or to force script recompilation when a '.cs' file changed. Returns a processing/success response and waits for compilation when triggered. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Refresh + +Refreshes the AssetDatabase. Use it if any file was added or updated in the project outside of Unity API. Use it if need to force scripts recompilation when '.cs' file changed. + +## Inputs + +- `options` — `ImportAssetOptions` flag (default `ForceSynchronousImport`). +- `requestId` — required for processing-mode responses; the tool returns `Processing` immediately and delivers a follow-up completion when compilation finishes. + +## Behavior + +Runs `AssetDatabase.Refresh(options)`. If `EditorApplication.isCompiling` is true after the refresh, schedules a post-compilation notification and returns a `Processing` response. If compilation already failed (`EditorUtility.scriptCompilationFailed`), returns `Success` with the compilation error details. Otherwise returns a plain `Success`. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-refresh --input '{ + "options": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-refresh --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-refresh --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 | +|------|------|----------|-------------| +| `options` | `any` | No | Asset import options. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "options": { + "$ref": "#/$defs/UnityEditor.ImportAssetOptions" + } + }, + "$defs": { + "UnityEditor.ImportAssetOptions": { + "type": "string", + "enum": [ + "Default", + "ForceUpdate", + "ForceSynchronousImport", + "ImportRecursive", + "DontDownloadFromCacheServer", + "ForceUncompressedImport" + ] + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/assets-shader-get-data/SKILL.md b/.opencode/skills/assets-shader-get-data/SKILL.md new file mode 100644 index 0000000..5676c7e --- /dev/null +++ b/.opencode/skills/assets-shader-get-data/SKILL.md @@ -0,0 +1,461 @@ +--- +name: assets-shader-get-data +description: "Get detailed data about a shader asset — properties, subshaders, passes, compilation messages, and supported status. Supports token-saving path-scoped reads via `paths` or `viewQuery`. Use 'assets-find' with `t:Shader` or 'assets-shader-list-all' to locate the shader first." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / Shader / Get Data + +Get detailed data about a shader asset in the Unity project. Returns shader properties, subshaders, passes, compilation errors, and supported status. Use 'assets-find' tool with filter 't:Shader' to find shaders, or 'assets-shader-list-all' tool to list all shader names. + +## Toggles (most default off to keep responses small) + +- `includeMessages` (default `true`) — shader compilation messages. +- `includeProperties` (default `false`) — uniforms list. +- `includeSubshaders` (default `false`) — subshader and pass structure. +- `includeSourceCode` (default `false`) — pass source code. Implies `includeSubshaders` and can produce very large responses. + +## Path-scoped reads (token-saving) + +Supply `paths` (a list of paths) to read only the listed fields/elements via `Reflector.TryReadAt`, or `viewQuery` (a `ViewQuery`) to navigate to a subtree and/or filter by name regex / max depth / type via `Reflector.View`. The result populates `View` on the returned `ShaderData`. These two parameters are mutually exclusive. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-shader-get-data --input '{ + "assetRef": "string_value", + "includeMessages": "string_value", + "includeProperties": "string_value", + "includeSubshaders": "string_value", + "includeSourceCode": "string_value", + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-shader-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-shader-get-data --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 | +|------|------|----------|-------------| +| `assetRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. | +| `includeMessages` | `any` | No | Include compilation error and warning messages. Default: true | +| `includeProperties` | `any` | No | Include shader properties (uniforms) list. Default: false | +| `includeSubshaders` | `any` | No | Include subshader and pass structure. Default: false | +| `includeSourceCode` | `any` | No | Include pass source code in subshader data. Requires 'includeSubshaders' to be true. Can produce very large responses. Default: false | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt against the underlying Shader asset. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View against the underlying Shader asset. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef" + }, + "includeMessages": { + "$ref": "#/$defs/System.Boolean" + }, + "includeProperties": { + "$ref": "#/$defs/System.Boolean" + }, + "includeSubshaders": { + "$ref": "#/$defs/System.Boolean" + }, + "includeSourceCode": { + "$ref": "#/$defs/System.Boolean" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "System.Boolean": { + "type": "boolean" + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + }, + "required": [ + "assetRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.ShaderData" + } + }, + "$defs": { + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "System.Collections.Generic.List(AIGD.ShaderMessageData)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ShaderMessageData" + } + }, + "AIGD.ShaderMessageData": { + "type": "object", + "properties": { + "Message": { + "type": "string", + "description": "The error or warning message text." + }, + "Line": { + "type": "integer", + "description": "The line number in the shader source where the issue occurs." + }, + "Severity": { + "type": "string", + "description": "Severity level (e.g. 'Error', 'Warning')." + }, + "Platform": { + "type": "string", + "description": "The platform on which the error occurs (e.g. 'OpenGLCore', 'D3D11')." + } + }, + "required": [ + "Line" + ] + }, + "System.Collections.Generic.List(AIGD.ShaderPropertyData)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ShaderPropertyData" + } + }, + "AIGD.ShaderPropertyData": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "Property name as used in shader code (e.g. '_MainTex', '_Color')." + }, + "Description": { + "type": "string", + "description": "Human-readable description/display name of the property." + }, + "Type": { + "type": "string", + "description": "Property type (e.g. 'Color', 'Float', 'Range', 'Texture', 'Vector', 'Int')." + }, + "Flags": { + "type": "string", + "description": "Property flags (e.g. 'None', 'HideInInspector', 'PerRendererData')." + }, + "NameId": { + "type": "integer", + "description": "The unique name ID for this property." + }, + "RangeMin": { + "type": "number", + "description": "Minimum value for Range properties. Null for non-range properties." + }, + "RangeMax": { + "type": "number", + "description": "Maximum value for Range properties. Null for non-range properties." + }, + "DefaultTextureName": { + "type": "string", + "description": "Default texture name for Texture properties. Null if not applicable." + }, + "Attributes": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "Custom attributes applied to this property. Null if none." + } + }, + "required": [ + "NameId" + ] + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "System.Collections.Generic.List(AIGD.SubshaderData)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.SubshaderData" + } + }, + "AIGD.SubshaderData": { + "type": "object", + "properties": { + "Index": { + "type": "integer", + "description": "Index of this subshader within the shader." + }, + "PassCount": { + "type": "integer", + "description": "Number of passes in this subshader." + }, + "Passes": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.PassData)", + "description": "List of passes in this subshader. Null if no passes." + } + }, + "required": [ + "Index", + "PassCount" + ] + }, + "System.Collections.Generic.List(AIGD.PassData)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.PassData" + } + }, + "AIGD.PassData": { + "type": "object", + "properties": { + "Index": { + "type": "integer", + "description": "Index of this pass within the subshader." + }, + "Name": { + "type": "string", + "description": "Name of the pass. Null if unnamed." + }, + "SourceCode": { + "type": "string", + "description": "Source code of the pass. Null if unavailable." + } + }, + "required": [ + "Index" + ] + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "AIGD.ShaderData": { + "type": "object", + "properties": { + "Reference": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to the shader asset for future operations." + }, + "Name": { + "type": "string", + "description": "Full name of the shader (e.g. 'Standard', 'Universal Render Pipeline/Lit')." + }, + "IsSupported": { + "type": "boolean", + "description": "Whether the shader is supported on the current GPU and platform." + }, + "RenderQueue": { + "type": "integer", + "description": "The render queue value of the shader." + }, + "HasErrors": { + "type": "boolean", + "description": "Whether the shader has any compilation errors." + }, + "PropertyCount": { + "type": "integer", + "description": "Number of properties exposed by the shader." + }, + "PassCount": { + "type": "integer", + "description": "Total number of passes in the shader." + }, + "RenderType": { + "type": "string", + "description": "The RenderType tag value from the first pass, if set." + }, + "Messages": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.ShaderMessageData)", + "description": "Compilation messages including errors and warnings. Null if no messages." + }, + "Properties": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.ShaderPropertyData)", + "description": "List of shader properties (uniforms). Null if the shader has no properties." + }, + "Subshaders": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.SubshaderData)", + "description": "List of subshaders with their passes. Null if shader data is unavailable." + }, + "View": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Path-scoped read or view-query result, populated when 'paths' or 'viewQuery' is supplied. Null otherwise." + } + }, + "required": [ + "IsSupported", + "RenderQueue", + "HasErrors", + "PropertyCount", + "PassCount" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/assets-shader-list-all/SKILL.md b/.opencode/skills/assets-shader-list-all/SKILL.md new file mode 100644 index 0000000..cf9be2c --- /dev/null +++ b/.opencode/skills/assets-shader-list-all/SKILL.md @@ -0,0 +1,86 @@ +--- +name: assets-shader-list-all +description: List all shaders available in the project assets and packages, sorted by name. Use this to discover a valid `shaderName` for 'assets-material-create'. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Assets / List Shaders + +List all available shaders in the project assets and packages. Returns their names. Use this to find a shader name for 'assets-material-create' tool. + +## Behavior + +Enumerates shaders via `ShaderUtils.GetAllShaders`, filters out nulls, and returns the names alphabetically sorted. + +## How to Call + +```bash +unity-mcp-cli run-tool assets-shader-list-all --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool assets-shader-list-all --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool assets-shader-list-all --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-add-extension/SKILL.md b/.opencode/skills/cinemachine-add-extension/SKILL.md new file mode 100644 index 0000000..c2afb79 --- /dev/null +++ b/.opencode/skills/cinemachine-add-extension/SKILL.md @@ -0,0 +1,226 @@ +--- +name: cinemachine-add-extension +description: Add a `CinemachineExtension`-derived component (e.g. `CinemachineDeoccluder`, `CinemachineConfiner3D`, `CinemachineFollowZoom`, `CinemachineRecomposer`) to a `CinemachineCamera` GameObject, resolved by type name. The type is validated to derive from `CinemachineExtension`. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Add Extension + +Add a Cinemachine extension component to a `CinemachineCamera` GameObject. Extensions augment the camera pipeline (collision avoidance, framing, post-processing, etc.). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `extensionTypeName` — the extension type name. A full name like `Unity.Cinemachine.CinemachineDeoccluder` is preferred; a bare class name like `CinemachineDeoccluder` is also resolved against the `Unity.Cinemachine` namespace as a fallback. + +## Behavior + +Resolves the type, verifies it derives from `Unity.Cinemachine.CinemachineExtension`, adds it to the GameObject, marks the scene dirty, and repaints. Throws if the type cannot be resolved or is not an extension. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-add-extension --input '{ + "gameObjectRef": "string_value", + "extensionTypeName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-add-extension --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-add-extension --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `extensionTypeName` | `string` | Yes | Extension type name, e.g. 'Unity.Cinemachine.CinemachineDeoccluder' or 'CinemachineDeoccluder'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "extensionTypeName": { + "type": "string" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "extensionTypeName" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-AddExtensionResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-AddExtensionResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "extensionRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the added extension component." + }, + "extensionTypeName": { + "type": "string", + "description": "Full type name of the added extension." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-brain-ensure/SKILL.md b/.opencode/skills/cinemachine-brain-ensure/SKILL.md new file mode 100644 index 0000000..8ddac34 --- /dev/null +++ b/.opencode/skills/cinemachine-brain-ensure/SKILL.md @@ -0,0 +1,221 @@ +--- +name: cinemachine-brain-ensure +description: Ensure a `CinemachineBrain` exists on a `Camera`. Targets the referenced Camera GameObject, or `Camera.main` when none is given. Returns the brain + camera info. A CinemachineBrain is required for any CinemachineCamera to actually drive the rendering Camera. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Ensure Brain + +Ensure a `CinemachineBrain` component exists on a `Camera`. A CinemachineBrain is the bridge between Cinemachine virtual cameras and a real Unity `Camera`; without it, `CinemachineCamera` components have no effect on the rendered view. + +## Inputs + +- `cameraRef` — optional GameObject hosting a `Camera`. When omitted, `Camera.main` (a Camera tagged `MainCamera`) is used. + +## Behavior + +Resolves the Camera, adds a `CinemachineBrain` if one is missing (idempotent — an existing brain is reused), marks the scene dirty, repaints the Editor, and returns the brain instanceId plus the camera name. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-brain-ensure --input '{ + "cameraRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-brain-ensure --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-brain-ensure --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 | +|------|------|----------|-------------| +| `cameraRef` | `any` | No | Optional reference to the GameObject hosting the Camera. If omitted, Camera.main is used. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "cameraRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-BrainEnsureResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-BrainEnsureResponse": { + "type": "object", + "properties": { + "cameraRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Camera GameObject hosting the CinemachineBrain." + }, + "brainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineBrain component." + }, + "cameraName": { + "type": "string", + "description": "Name of the Camera GameObject." + }, + "created": { + "type": "boolean", + "description": "True if a new CinemachineBrain was created; false if one already existed." + }, + "defaultBlendStyle": { + "type": "string", + "description": "The current default blend style of the brain." + }, + "defaultBlendTime": { + "type": "number", + "description": "The current default blend time (seconds) of the brain." + } + }, + "required": [ + "created", + "defaultBlendTime" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-camera-create/SKILL.md b/.opencode/skills/cinemachine-camera-create/SKILL.md new file mode 100644 index 0000000..ea5a162 --- /dev/null +++ b/.opencode/skills/cinemachine-camera-create/SKILL.md @@ -0,0 +1,275 @@ +--- +name: cinemachine-camera-create +description: Create a new GameObject with a `CinemachineCamera` (Cinemachine 3.x virtual camera) in the active scene. Optionally set name, position, rotation, priority, and Follow / LookAt targets. Returns the new GameObject reference and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Create Camera + +Create a new GameObject hosting a `CinemachineCamera` component in the active scene. The `CinemachineCamera` is the Cinemachine 3.x virtual camera that a `CinemachineBrain` blends between to drive the real Unity Camera. + +## Inputs + +- `name` — optional GameObject name (default `CinemachineCamera`). +- `position` — optional world `Vector3` position (default zero). +- `rotation` — optional euler-degrees `Vector3` rotation (default zero). +- `priority` — optional priority value; higher wins when multiple cameras compete (default 0). +- `followRef` — optional GameObject the camera should Follow (position target). +- `lookAtRef` — optional GameObject the camera should LookAt (aim target). + +## Behavior + +Creates the GameObject, adds a `CinemachineCamera`, sets transform / `Priority.Value` / `Follow` / `LookAt`, marks the scene dirty, repaints the Editor, and returns the new GameObject reference and instanceId. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-camera-create --input '{ + "name": "string_value", + "position": "string_value", + "rotation": "string_value", + "priority": 0, + "followRef": "string_value", + "lookAtRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-create --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 | +|------|------|----------|-------------| +| `name` | `string` | No | Name of the new CinemachineCamera GameObject. | +| `position` | `any` | No | World-space position of the camera. | +| `rotation` | `any` | No | World-space rotation of the camera in euler angles (degrees). | +| `priority` | `integer` | No | Priority value. Higher priority wins when several CinemachineCameras are active. | +| `followRef` | `any` | No | Optional GameObject the camera should Follow (drives position). | +| `lookAtRef` | `any` | No | Optional GameObject the camera should LookAt (drives aim). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "priority": { + "type": "integer" + }, + "followRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "lookAtRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraCreateResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraCreateResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the created CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the created CinemachineCamera component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the created GameObject." + }, + "gameObjectName": { + "type": "string", + "description": "Name of the created GameObject." + }, + "priority": { + "type": "integer", + "description": "Resolved priority value." + }, + "follow": { + "type": "string", + "description": "Name of the Follow target, or null." + }, + "lookAt": { + "type": "string", + "description": "Name of the LookAt target, or null." + } + }, + "required": [ + "instanceId", + "priority" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-camera-get/SKILL.md b/.opencode/skills/cinemachine-camera-get/SKILL.md new file mode 100644 index 0000000..63e963d --- /dev/null +++ b/.opencode/skills/cinemachine-camera-get/SKILL.md @@ -0,0 +1,285 @@ +--- +name: cinemachine-camera-get +description: Inspect a `CinemachineCamera` — its lens, Follow / LookAt targets, priority, and the list of pipeline components (Body / Aim / Noise / extensions) currently attached. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Get Camera + +Inspect a `CinemachineCamera` component in the active scene. Returns the priority, the Follow and LookAt target names, the serialized `LensSettings`, and the list of pipeline / extension components attached to the camera GameObject. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `deepSerialization` — when `true`, the lens is serialized recursively through nested objects; otherwise only top-level members are serialized. + +## Behavior + +Serializes `CinemachineCamera.Lens` via ReflectorNet and enumerates every `CinemachineComponentBase` and `CinemachineExtension` on the GameObject by type name. Read-only — nothing is mutated. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-camera-get --input '{ + "gameObjectRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `deepSerialization` | `boolean` | No | Performs deep serialization of the lens including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "priority": { + "type": "integer", + "description": "Priority value of the camera." + }, + "follow": { + "type": "string", + "description": "Name of the Follow target, or null." + }, + "lookAt": { + "type": "string", + "description": "Name of the LookAt target, or null." + }, + "lens": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized LensSettings of the camera." + }, + "pipelineComponents": { + "$ref": "#/$defs/System.String-1", + "description": "Type names of the CinemachineComponentBase pipeline components (Body/Aim/Noise) attached." + }, + "extensions": { + "$ref": "#/$defs/System.String-1", + "description": "Type names of the CinemachineExtension components attached." + } + }, + "required": [ + "priority" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-camera-list/SKILL.md b/.opencode/skills/cinemachine-camera-list/SKILL.md new file mode 100644 index 0000000..582db89 --- /dev/null +++ b/.opencode/skills/cinemachine-camera-list/SKILL.md @@ -0,0 +1,197 @@ +--- +name: cinemachine-camera-list +description: List every `CinemachineCamera` in the active scene with its name, priority, and whether it is currently the live (active) camera according to an active `CinemachineBrain`. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / List Cameras + +List every `CinemachineCamera` in the active scene. For each, returns the name, the priority value, a reference, and whether the camera is currently live (driving the view through an active `CinemachineBrain`). + +## Inputs + +- `includeInactive` (bool, default true) — include inactive/disabled CinemachineCameras. + +## Behavior + +Finds all `CinemachineCamera` instances (including inactive ones), reads each `Priority.Value`, and compares against `CinemachineBrain.ActiveVirtualCamera` across all active brains to compute `isLive`. Read-only. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-camera-list --input '{ + "includeInactive": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-camera-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 | +|------|------|----------|-------------| +| `includeInactive` | `boolean` | No | If true (default), include inactive/disabled CinemachineCameras; if false, only those on active GameObjects. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeInactive": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "name": { + "type": "string", + "description": "Name of the camera GameObject." + }, + "priority": { + "type": "integer", + "description": "Priority value of the camera." + }, + "isLive": { + "type": "boolean", + "description": "Whether this camera is currently live (active through a CinemachineBrain)." + } + }, + "required": [ + "priority", + "isLive" + ] + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Number of CinemachineCameras found." + }, + "cameras": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CameraListItem-1", + "description": "The CinemachineCameras in the active scene." + } + }, + "required": [ + "count" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-get/SKILL.md b/.opencode/skills/cinemachine-get/SKILL.md new file mode 100644 index 0000000..ff095ea --- /dev/null +++ b/.opencode/skills/cinemachine-get/SKILL.md @@ -0,0 +1,295 @@ +--- +name: cinemachine-get +description: "Generic read: serialize any Cinemachine `Component` (a type in the `Unity.Cinemachine` namespace) on a GameObject via ReflectorNet. Pair with 'cinemachine-modify' to write changes back. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Get Component + +Serialize any Cinemachine component on a GameObject using ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools (e.g. a specific extension's settings). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one Cinemachine component; otherwise the first component whose type lives in the `Unity.Cinemachine` namespace is used. +- `deepSerialization` — when `true`, recurses through nested objects; otherwise only top-level members. + +## Behavior + +Finds the target Cinemachine component, serializes it via ReflectorNet, and returns the serialized member plus the resolved component type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Cinemachine component. | +| `componentRef` | `any` | No | Optional reference to a specific Cinemachine component if the GameObject has multiple. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CinemachineGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CinemachineGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the serialized component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the serialized component." + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized component data." + } + }, + "required": [ + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-modify/SKILL.md b/.opencode/skills/cinemachine-modify/SKILL.md new file mode 100644 index 0000000..bc53b12 --- /dev/null +++ b/.opencode/skills/cinemachine-modify/SKILL.md @@ -0,0 +1,307 @@ +--- +name: cinemachine-modify +description: "Generic write: apply a `SerializedMember` diff to any Cinemachine `Component` on a GameObject via ReflectorNet `TryModify`. Use 'cinemachine-get' first to inspect the structure so the diff is targeted." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Modify Component + +Modify any Cinemachine component on a GameObject by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one Cinemachine component; otherwise the first component in the `Unity.Cinemachine` namespace is used. +- `data` — the `SerializedMember` diff to apply. Include only the properties you want to change. + +## Behavior + +Finds the target Cinemachine component, applies the diff via `Reflector.TryModify`, and on success marks the component + scene dirty and repaints. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-modify --input '{ + "gameObjectRef": "string_value", + "data": "string_value", + "componentRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Cinemachine component. | +| `data` | `any` | Yes | The SerializedMember diff to apply. Only include properties you want to change. | +| `componentRef` | `any` | No | Optional reference to a specific Cinemachine component if the GameObject has multiple. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "data" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CinemachineModifyResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-CinemachineModifyResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the modified component." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications and any warnings/errors." + } + }, + "required": [ + "success", + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-aim/SKILL.md b/.opencode/skills/cinemachine-set-aim/SKILL.md new file mode 100644 index 0000000..211e5b9 --- /dev/null +++ b/.opencode/skills/cinemachine-set-aim/SKILL.md @@ -0,0 +1,252 @@ +--- +name: cinemachine-set-aim +description: Add or replace the rotation-control (Aim) component of a `CinemachineCamera`, chosen by `AimType` (RotationComposer, HardLookAt, PanTilt, or None). Applies common params (screen X/Y, damping) to RotationComposer where applicable. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Aim + +Add or replace the Aim (rotation-control) component of a `CinemachineCamera`. Any existing Aim component is removed first, then the chosen one is added — so this is destructive to the previous Aim component. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `aimType` — `AimType` enum: `RotationComposer`, `HardLookAt`, `PanTilt`, or `None` (removes the Aim component). +- `screenX`, `screenY` — optional normalized on-screen target position for `RotationComposer` (`Composition.ScreenPosition`). Typically in the range -0.5..0.5 (0,0 = center). +- `damping` — optional uniform damping value (applies to `RotationComposer.Damping`). + +## Behavior + +Removes every existing `CinemachineRotationComposer`, `CinemachineHardLookAt`, and `CinemachinePanTilt` on the GameObject, then adds the requested one and applies the optional params. Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-aim --input '{ + "gameObjectRef": "string_value", + "aimType": "string_value", + "screenX": "string_value", + "screenY": "string_value", + "damping": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-aim --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-aim --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `aimType` | `string` | Yes | Which rotation-control (Aim) component to use. | +| `screenX` | `any` | No | Normalized on-screen X target position for RotationComposer (Composition.ScreenPosition.x). | +| `screenY` | `any` | No | Normalized on-screen Y target position for RotationComposer (Composition.ScreenPosition.y). | +| `damping` | `any` | No | Uniform damping value applied where the component supports damping (RotationComposer). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "aimType": { + "type": "string", + "enum": [ + "None", + "RotationComposer", + "HardLookAt", + "PanTilt" + ] + }, + "screenX": { + "$ref": "#/$defs/System.Single" + }, + "screenY": { + "$ref": "#/$defs/System.Single" + }, + "damping": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Single": { + "type": "number" + } + }, + "required": [ + "gameObjectRef", + "aimType" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetAimResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetAimResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "aimType": { + "type": "string", + "description": "The AimType that was applied." + }, + "componentName": { + "type": "string", + "description": "The Cinemachine component type name that was added (or 'None')." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-body/SKILL.md b/.opencode/skills/cinemachine-set-body/SKILL.md new file mode 100644 index 0000000..8219d8a --- /dev/null +++ b/.opencode/skills/cinemachine-set-body/SKILL.md @@ -0,0 +1,275 @@ +--- +name: cinemachine-set-body +description: Add or replace the position-control (Body) component of a `CinemachineCamera`, chosen by `BodyType` (Follow, OrbitalFollow, ThirdPersonFollow, PositionComposer, HardLockToTarget, or None). Applies common params (followOffset, damping, cameraDistance) where applicable. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Body + +Add or replace the Body (position-control) component of a `CinemachineCamera`. Any existing Body component is removed first, then the chosen one is added — so this is destructive to the previous Body component. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `bodyType` — `BodyType` enum: `Follow`, `OrbitalFollow`, `ThirdPersonFollow`, `PositionComposer`, `HardLockToTarget`, or `None` (removes the Body component). +- `followOffset` — optional `Vector3` offset from the Follow target (applies to `Follow`). +- `damping` — optional uniform damping value (applied where the component supports damping). +- `cameraDistance` — optional distance from the target (applies to `ThirdPersonFollow` / `PositionComposer` / `OrbitalFollow` radius). + +## Behavior + +Removes every existing `CinemachineFollow`, `CinemachineOrbitalFollow`, `CinemachineThirdPersonFollow`, `CinemachinePositionComposer`, and `CinemachineHardLockToTarget` on the GameObject, then adds the requested one and applies the optional params. Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-body --input '{ + "gameObjectRef": "string_value", + "bodyType": "string_value", + "followOffset": "string_value", + "damping": "string_value", + "cameraDistance": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-body --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-body --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `bodyType` | `string` | Yes | Which position-control (Body) component to use. | +| `followOffset` | `any` | No | Offset from the Follow target (applies to Follow). | +| `damping` | `any` | No | Uniform damping value applied where the component supports damping. | +| `cameraDistance` | `any` | No | Distance from the target (ThirdPersonFollow/PositionComposer/OrbitalFollow radius). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "bodyType": { + "type": "string", + "enum": [ + "None", + "Follow", + "OrbitalFollow", + "ThirdPersonFollow", + "PositionComposer", + "HardLockToTarget" + ] + }, + "followOffset": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "damping": { + "$ref": "#/$defs/System.Single" + }, + "cameraDistance": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "System.Single": { + "type": "number" + } + }, + "required": [ + "gameObjectRef", + "bodyType" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetBodyResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetBodyResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "bodyType": { + "type": "string", + "description": "The BodyType that was applied." + }, + "componentName": { + "type": "string", + "description": "The Cinemachine component type name that was added (or 'None')." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-default-blend/SKILL.md b/.opencode/skills/cinemachine-set-default-blend/SKILL.md new file mode 100644 index 0000000..b8979ed --- /dev/null +++ b/.opencode/skills/cinemachine-set-default-blend/SKILL.md @@ -0,0 +1,242 @@ +--- +name: cinemachine-set-default-blend +description: Set the `DefaultBlend` of a `CinemachineBrain` — the blend style (Cut, EaseInOut, Linear, etc.) and duration used when transitioning between CinemachineCameras. Targets the referenced Camera's brain, or `Camera.main`'s brain. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Default Blend + +Set the default blend on a `CinemachineBrain`. The default blend is used whenever the brain transitions from one live CinemachineCamera to another and no custom blend overrides it. + +## Inputs + +- `cameraRef` — optional GameObject hosting the Camera + `CinemachineBrain`. When omitted, `Camera.main` is used. +- `style` — `CinemachineBlendDefinition.Styles` enum (`Cut`, `EaseInOut`, `EaseIn`, `EaseOut`, `HardIn`, `HardOut`, `Linear`, `Custom`). +- `time` — blend duration in seconds. + +## Behavior + +Resolves the brain (throws if the Camera has none), assigns a new `CinemachineBlendDefinition(style, time)` to `DefaultBlend`, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-default-blend --input '{ + "style": "string_value", + "time": 0, + "cameraRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-default-blend --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-default-blend --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 | +|------|------|----------|-------------| +| `style` | `string` | Yes | Blend style used when transitioning between CinemachineCameras. | +| `time` | `number` | No | Blend duration in seconds. | +| `cameraRef` | `any` | No | Optional reference to the GameObject hosting the Camera + CinemachineBrain. If omitted, Camera.main is used. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "style": { + "type": "string", + "enum": [ + "Cut", + "EaseInOut", + "EaseIn", + "EaseOut", + "HardIn", + "HardOut", + "Linear", + "Custom" + ] + }, + "time": { + "type": "number" + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "style" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetDefaultBlendResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetDefaultBlendResponse": { + "type": "object", + "properties": { + "cameraRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Camera GameObject hosting the CinemachineBrain." + }, + "brainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineBrain component." + }, + "style": { + "type": "string", + "description": "Resulting blend style." + }, + "time": { + "type": "number", + "description": "Resulting blend time (seconds)." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "time", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-lens/SKILL.md b/.opencode/skills/cinemachine-set-lens/SKILL.md new file mode 100644 index 0000000..8fee2a9 --- /dev/null +++ b/.opencode/skills/cinemachine-set-lens/SKILL.md @@ -0,0 +1,268 @@ +--- +name: cinemachine-set-lens +description: Set lens fields of a `CinemachineCamera`'s `LensSettings` — field of view (perspective) or orthographic size, near / far clip planes, and Dutch (roll) angle. Only the fields you pass are changed. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Lens + +Set lens fields on a `CinemachineCamera`. The `LensSettings` controls how the resulting Unity Camera is configured while this virtual camera is live. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `fieldOfView` — optional vertical FOV in degrees (perspective cameras). +- `orthographicSize` — optional orthographic half-height (orthographic cameras). +- `nearClipPlane`, `farClipPlane` — optional clip plane distances. +- `dutch` — optional Dutch (roll) angle in degrees. + +## Behavior + +Reads the current `LensSettings`, applies only the provided fields, writes it back, marks the scene dirty, and repaints the Editor. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-lens --input '{ + "gameObjectRef": "string_value", + "fieldOfView": "string_value", + "orthographicSize": "string_value", + "nearClipPlane": "string_value", + "farClipPlane": "string_value", + "dutch": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-lens --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-lens --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `fieldOfView` | `any` | No | Vertical field of view in degrees (perspective). | +| `orthographicSize` | `any` | No | Orthographic size (half-height) for orthographic cameras. | +| `nearClipPlane` | `any` | No | Near clip plane distance. | +| `farClipPlane` | `any` | No | Far clip plane distance. | +| `dutch` | `any` | No | Dutch (roll) angle in degrees. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "fieldOfView": { + "$ref": "#/$defs/System.Single" + }, + "orthographicSize": { + "$ref": "#/$defs/System.Single" + }, + "nearClipPlane": { + "$ref": "#/$defs/System.Single" + }, + "farClipPlane": { + "$ref": "#/$defs/System.Single" + }, + "dutch": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Single": { + "type": "number" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetLensResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetLensResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "fieldOfView": { + "type": "number", + "description": "Resulting field of view." + }, + "orthographicSize": { + "type": "number", + "description": "Resulting orthographic size." + }, + "nearClipPlane": { + "type": "number", + "description": "Resulting near clip plane." + }, + "farClipPlane": { + "type": "number", + "description": "Resulting far clip plane." + }, + "dutch": { + "type": "number", + "description": "Resulting Dutch (roll) angle." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "fieldOfView", + "orthographicSize", + "nearClipPlane", + "farClipPlane", + "dutch", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-noise/SKILL.md b/.opencode/skills/cinemachine-set-noise/SKILL.md new file mode 100644 index 0000000..d6793ef --- /dev/null +++ b/.opencode/skills/cinemachine-set-noise/SKILL.md @@ -0,0 +1,241 @@ +--- +name: cinemachine-set-noise +description: Add or configure a `CinemachineBasicMultiChannelPerlin` (procedural camera shake / handheld noise) on a `CinemachineCamera`. Sets `AmplitudeGain` and `FrequencyGain`. The noise profile asset is optional and left untouched when not supplied. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Noise + +Add or configure a `CinemachineBasicMultiChannelPerlin` noise component on a `CinemachineCamera`. This drives procedural Perlin-noise shake (handheld camera feel). The actual noise shape comes from a `NoiseSettings` profile asset; without one, the amplitude/frequency gains have no visible effect, so this tool is null-safe and does not require a profile. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `amplitudeGain` — optional gain applied to the profile amplitudes (1 = normal). +- `frequencyGain` — optional gain applied to the profile frequencies (1 = normal). + +## Behavior + +Reuses an existing `CinemachineBasicMultiChannelPerlin` on the GameObject or adds one, then applies the provided gains. The noise profile asset is never modified here (leave it null-safe). Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-noise --input '{ + "gameObjectRef": "string_value", + "amplitudeGain": "string_value", + "frequencyGain": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-noise --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-noise --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `amplitudeGain` | `any` | No | Gain applied to the noise profile amplitudes (1 = normal). | +| `frequencyGain` | `any` | No | Gain applied to the noise profile frequencies (1 = normal). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "amplitudeGain": { + "$ref": "#/$defs/System.Single" + }, + "frequencyGain": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Single": { + "type": "number" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetNoiseResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetNoiseResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "amplitudeGain": { + "type": "number", + "description": "Resulting amplitude gain." + }, + "frequencyGain": { + "type": "number", + "description": "Resulting frequency gain." + }, + "hasNoiseProfile": { + "type": "boolean", + "description": "Whether a NoiseSettings profile asset is assigned." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "amplitudeGain", + "frequencyGain", + "hasNoiseProfile", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-priority/SKILL.md b/.opencode/skills/cinemachine-set-priority/SKILL.md new file mode 100644 index 0000000..03fa572 --- /dev/null +++ b/.opencode/skills/cinemachine-set-priority/SKILL.md @@ -0,0 +1,223 @@ +--- +name: cinemachine-set-priority +description: Set the `Priority.Value` of a `CinemachineCamera`. The highest-priority active camera wins control of the `CinemachineBrain`. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Priority + +Set the priority of a `CinemachineCamera`. When multiple CinemachineCameras are active, the one with the highest priority becomes live (drives the rendered view through the `CinemachineBrain`). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `priority` — the new integer priority value. + +## Behavior + +Assigns `CinemachineCamera.Priority` with the given value, marks the scene dirty, and repaints the Editor. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-priority --input '{ + "gameObjectRef": "string_value", + "priority": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-priority --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-priority --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `priority` | `integer` | Yes | The new priority value. Higher wins when multiple cameras are active. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "priority": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "priority" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetPriorityResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetPriorityResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "priority": { + "type": "integer", + "description": "Resulting priority value." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "priority", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/cinemachine-set-targets/SKILL.md b/.opencode/skills/cinemachine-set-targets/SKILL.md new file mode 100644 index 0000000..4141f57 --- /dev/null +++ b/.opencode/skills/cinemachine-set-targets/SKILL.md @@ -0,0 +1,243 @@ +--- +name: cinemachine-set-targets +description: Set the `Follow` (position) and/or `LookAt` (aim) targets of a `CinemachineCamera`. Pass `clearFollow` / `clearLookAt` to explicitly remove a target instead of setting one. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Cinemachine / Set Targets + +Set the `Follow` and/or `LookAt` targets of a `CinemachineCamera`. The Follow target drives the position-control (Body) component; the LookAt target drives the rotation-control (Aim) component. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `CinemachineCamera` (required). +- `followRef` — optional GameObject to set as the Follow target. +- `lookAtRef` — optional GameObject to set as the LookAt target. +- `clearFollow` — when `true`, sets Follow to null (ignored if `followRef` is provided). +- `clearLookAt` — when `true`, sets LookAt to null (ignored if `lookAtRef` is provided). + +## Behavior + +Only the targets you specify are changed; omitted targets are left untouched unless the matching `clear*` flag is set. Marks the scene dirty and repaints the Editor. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool cinemachine-set-targets --input '{ + "gameObjectRef": "string_value", + "followRef": "string_value", + "lookAtRef": "string_value", + "clearFollow": false, + "clearLookAt": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool cinemachine-set-targets --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool cinemachine-set-targets --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the CinemachineCamera component. | +| `followRef` | `any` | No | Optional GameObject to set as the Follow (position) target. | +| `lookAtRef` | `any` | No | Optional GameObject to set as the LookAt (aim) target. | +| `clearFollow` | `boolean` | No | If true, clears the Follow target (ignored when followRef is provided). | +| `clearLookAt` | `boolean` | No | If true, clears the LookAt target (ignored when lookAtRef is provided). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "followRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "lookAtRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "clearFollow": { + "type": "boolean" + }, + "clearLookAt": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetTargetsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Cinemachine-SetTargetsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the CinemachineCamera GameObject." + }, + "cameraRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the CinemachineCamera component." + }, + "follow": { + "type": "string", + "description": "Name of the resulting Follow target, or null." + }, + "lookAt": { + "type": "string", + "description": "Name of the resulting LookAt target, or null." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/console-clear-logs/SKILL.md b/.opencode/skills/console-clear-logs/SKILL.md new file mode 100644 index 0000000..d1c7a1b --- /dev/null +++ b/.opencode/skills/console-clear-logs/SKILL.md @@ -0,0 +1,64 @@ +--- +name: console-clear-logs +description: Clear the MCP log cache (used by 'console-get-logs') and the Unity Editor Console window. Useful for isolating logs to a specific action by clearing the slate first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Console / Clear Logs + +Clears the MCP log cache (used by console-get-logs) and the Unity Editor Console window. Useful for isolating errors related to a specific action by clearing logs before performing the action. + +## Behavior + +Calls `Debug.ClearDeveloperConsole()` to wipe the Editor Console, then clears the MCP-side `LogCollector` cache so subsequent 'console-get-logs' calls only see new entries. + +## How to Call + +```bash +unity-mcp-cli run-tool console-clear-logs --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool console-clear-logs --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool console-clear-logs --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/console-get-logs/SKILL.md b/.opencode/skills/console-get-logs/SKILL.md new file mode 100644 index 0000000..6350980 --- /dev/null +++ b/.opencode/skills/console-get-logs/SKILL.md @@ -0,0 +1,159 @@ +--- +name: console-get-logs +description: Retrieve Unity Editor logs from the MCP plugin's `LogCollector`, optionally filtered by log type or time window. Useful for debugging and monitoring Editor activity. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Console / Get Logs + +Retrieves Unity Editor logs. Useful for debugging and monitoring Unity Editor activity. + +## Inputs + +- `maxEntries` (default 100, minimum 1) — caps the size of the returned array. +- `logTypeFilter` — Unity `LogType` filter; `null` returns all severities. +- `includeStackTrace` (default `false`) — include stack-trace strings in each entry. +- `lastMinutes` (default 0) — when non-zero, only logs from the last N minutes are returned. +- `sinceSequence` (default 0) — every entry carries a `sequence` number. When greater than 0, only entries with a higher `sequence` are returned, oldest first, up to `maxEntries`. + +## Polling + +To read only what is new, pass the highest `sequence` you have received as `sinceSequence`; if the result has `maxEntries` entries, call again with the new highest `sequence` to continue. If returned sequences are lower than your cursor, the log restarted. + +## How to Call + +```bash +unity-mcp-cli run-tool console-get-logs --input '{ + "maxEntries": 0, + "logTypeFilter": "string_value", + "includeStackTrace": false, + "lastMinutes": 0, + "sinceSequence": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool console-get-logs --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool console-get-logs --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 | +|------|------|----------|-------------| +| `maxEntries` | `integer` | No | Maximum number of log entries to return. Minimum: 1. Default: 100 | +| `logTypeFilter` | `any` | No | Filter by log type. 'null' means All. | +| `includeStackTrace` | `boolean` | No | Include stack traces in the output. Default: false | +| `lastMinutes` | `integer` | No | Return logs from the last N minutes. If 0, returns all available logs. Default: 0 | +| `sinceSequence` | `integer` | No | Return only entries whose `sequence` is greater than this value, oldest first. If 0, returns the most recent entries. Default: 0 | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "maxEntries": { + "type": "integer" + }, + "logTypeFilter": { + "$ref": "#/$defs/UnityEngine.LogType" + }, + "includeStackTrace": { + "type": "boolean" + }, + "lastMinutes": { + "type": "integer" + }, + "sinceSequence": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.LogType": { + "type": "string", + "enum": [ + "Error", + "Assert", + "Warning", + "Log", + "Exception" + ] + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.LogEntry-1" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.LogEntry": { + "type": "object", + "properties": { + "LogType": { + "type": "string", + "enum": [ + "Error", + "Assert", + "Warning", + "Log", + "Exception" + ] + }, + "Message": { + "type": "string" + }, + "Timestamp": { + "type": "string", + "format": "date-time" + }, + "StackTrace": { + "type": "string" + }, + "sequence": { + "type": "integer" + } + }, + "required": [ + "LogType", + "Timestamp", + "sequence" + ] + }, + "com.IvanMurzak.Unity.MCP.LogEntry-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.LogEntry" + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/editor-application-get-state/SKILL.md b/.opencode/skills/editor-application-get-state/SKILL.md new file mode 100644 index 0000000..5346155 --- /dev/null +++ b/.opencode/skills/editor-application-get-state/SKILL.md @@ -0,0 +1,127 @@ +--- +name: editor-application-get-state +description: Return the current state of `UnityEditor.EditorApplication` — playmode, paused state, compilation state, and related flags. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Editor / Application / Get State + +Returns available information about 'UnityEditor.EditorApplication'. Use it to get information about the current state of the Unity Editor application. Such as: playmode, paused state, compilation state, etc. + +## Behavior + +Snapshots Editor state via `EditorStatsData.FromEditor()` on the main thread and returns the result. + +## How to Call + +```bash +unity-mcp-cli run-tool editor-application-get-state --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool editor-application-get-state --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool editor-application-get-state --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.EditorStatsData", + "description": "Available information about 'UnityEditor.EditorApplication'." + } + }, + "$defs": { + "AIGD.EditorStatsData": { + "type": "object", + "properties": { + "IsPlaying": { + "type": "boolean", + "description": "Whether the Editor is in Play mode." + }, + "IsPaused": { + "type": "boolean", + "description": "Whether the Editor is paused." + }, + "IsCompiling": { + "type": "boolean", + "description": "Is editor currently compiling scripts? (Read Only)" + }, + "IsPlayingOrWillChangePlaymode": { + "type": "boolean", + "description": "Editor application state which is true only when the Editor is currently in or about to enter Play mode. (Read Only)" + }, + "IsUpdating": { + "type": "boolean", + "description": "True if the Editor is currently refreshing the AssetDatabase. (Read Only)" + }, + "ApplicationContentsPath": { + "type": "string", + "description": "Path to the Unity editor contents folder. (Read Only)" + }, + "ApplicationPath": { + "type": "string", + "description": "Gets the path to the Unity Editor application. (Read Only)" + }, + "TimeSinceStartup": { + "type": "number", + "description": "The time since the editor was started. (Read Only)" + } + }, + "required": [ + "IsPlaying", + "IsPaused", + "IsCompiling", + "IsPlayingOrWillChangePlaymode", + "IsUpdating", + "TimeSinceStartup" + ], + "description": "Available information about 'UnityEditor.EditorApplication'." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/editor-application-set-state/SKILL.md b/.opencode/skills/editor-application-set-state/SKILL.md new file mode 100644 index 0000000..77430f5 --- /dev/null +++ b/.opencode/skills/editor-application-set-state/SKILL.md @@ -0,0 +1,137 @@ +--- +name: editor-application-set-state +description: Start / stop / pause the Unity Editor 'playmode'. Use 'editor-application-get-state' to inspect the current state first. Throws if the project currently has compilation errors. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Editor / Application / Set State + +Control the Unity Editor application state. You can start, stop, or pause the 'playmode'. Use 'editor-application-get-state' tool to get the current state first. + +## Inputs + +- `isPlaying` (default `false`) — sets `EditorApplication.isPlaying`. +- `isPaused` (default `false`) — sets `EditorApplication.isPaused`. + +## Behavior + +Refuses any state change while `EditorUtility.scriptCompilationFailed` is true — instead throws with the compilation error details so the caller can fix them first. On success returns the post-change `EditorStatsData` snapshot. + +## How to Call + +```bash +unity-mcp-cli run-tool editor-application-set-state --input '{ + "isPlaying": false, + "isPaused": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool editor-application-set-state --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool editor-application-set-state --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 | +|------|------|----------|-------------| +| `isPlaying` | `boolean` | No | If true, the 'playmode' will be started. If false, the 'playmode' will be stopped. | +| `isPaused` | `boolean` | No | If true, the 'playmode' will be paused. If false, the 'playmode' will be resumed. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "isPlaying": { + "type": "boolean" + }, + "isPaused": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.EditorStatsData", + "description": "Available information about 'UnityEditor.EditorApplication'." + } + }, + "$defs": { + "AIGD.EditorStatsData": { + "type": "object", + "properties": { + "IsPlaying": { + "type": "boolean", + "description": "Whether the Editor is in Play mode." + }, + "IsPaused": { + "type": "boolean", + "description": "Whether the Editor is paused." + }, + "IsCompiling": { + "type": "boolean", + "description": "Is editor currently compiling scripts? (Read Only)" + }, + "IsPlayingOrWillChangePlaymode": { + "type": "boolean", + "description": "Editor application state which is true only when the Editor is currently in or about to enter Play mode. (Read Only)" + }, + "IsUpdating": { + "type": "boolean", + "description": "True if the Editor is currently refreshing the AssetDatabase. (Read Only)" + }, + "ApplicationContentsPath": { + "type": "string", + "description": "Path to the Unity editor contents folder. (Read Only)" + }, + "ApplicationPath": { + "type": "string", + "description": "Gets the path to the Unity Editor application. (Read Only)" + }, + "TimeSinceStartup": { + "type": "number", + "description": "The time since the editor was started. (Read Only)" + } + }, + "required": [ + "IsPlaying", + "IsPaused", + "IsCompiling", + "IsPlayingOrWillChangePlaymode", + "IsUpdating", + "TimeSinceStartup" + ], + "description": "Available information about 'UnityEditor.EditorApplication'." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/editor-selection-get/SKILL.md b/.opencode/skills/editor-selection-get/SKILL.md new file mode 100644 index 0000000..b91cb7b --- /dev/null +++ b/.opencode/skills/editor-selection-get/SKILL.md @@ -0,0 +1,253 @@ +--- +name: editor-selection-get +description: Get information about the current Selection in the Unity Editor — active object, active transform, selected GameObjects, transforms, instance IDs, and asset GUIDs (each enrichment is opt-in). Pair with 'editor-selection-set' to change the selection. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Editor / Selection / Get + +Get information about the current Selection in the Unity Editor. Use 'editor-selection-set' tool to set the selection. + +## Toggles (default off where indicated to keep responses small) + +- `includeGameObjects` (default `false`) — populate `GameObjects[]`. +- `includeTransforms` (default `false`) — populate `Transforms[]` as `ComponentRef`s. +- `includeInstanceIDs` (default `false`) — populate `InstanceIDs[]`. +- `includeAssetGUIDs` (default `false`) — populate `AssetGUIDs[]` from project-window selection. +- `includeActiveObject` (default `true`) — populate `ActiveObject` as a generic `ObjectRef`. +- `includeActiveTransform` (default `true`) — populate `ActiveTransform` as a `ComponentRef`. + +`ActiveGameObject` and `ActiveInstanceID` are always populated. + +## How to Call + +```bash +unity-mcp-cli run-tool editor-selection-get --input '{ + "includeGameObjects": false, + "includeTransforms": false, + "includeInstanceIDs": false, + "includeAssetGUIDs": false, + "includeActiveObject": false, + "includeActiveTransform": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool editor-selection-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool editor-selection-get --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 | +|------|------|----------|-------------| +| `includeGameObjects` | `boolean` | No | | +| `includeTransforms` | `boolean` | No | | +| `includeInstanceIDs` | `boolean` | No | | +| `includeAssetGUIDs` | `boolean` | No | | +| `includeActiveObject` | `boolean` | No | | +| `includeActiveTransform` | `boolean` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeGameObjects": { + "type": "boolean" + }, + "includeTransforms": { + "type": "boolean" + }, + "includeInstanceIDs": { + "type": "boolean" + }, + "includeAssetGUIDs": { + "type": "boolean" + }, + "includeActiveObject": { + "type": "boolean" + }, + "includeActiveTransform": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SelectionData" + } + }, + "$defs": { + "AIGD.GameObjectRef-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId-1": { + "type": "array", + "items": { + "$ref": "#/$defs/UnityEngine.EntityId" + } + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "AIGD.SelectionData": { + "type": "object", + "properties": { + "GameObjects": { + "$ref": "#/$defs/AIGD.GameObjectRef-1", + "description": "Returns the actual game object selection. Includes Prefabs, non-modifiable objects." + }, + "Transforms": { + "$ref": "#/$defs/AIGD.ComponentRef-1", + "description": "Returns the top level selection, excluding Prefabs." + }, + "InstanceIDs": { + "$ref": "#/$defs/UnityEngine.EntityId-1", + "description": "The actual unfiltered selection from the Scene returned as entity IDs instead of objects." + }, + "AssetGUIDs": { + "$ref": "#/$defs/System.String-1", + "description": "Returns the guids of the selected assets." + }, + "ActiveGameObject": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Returns the active game object. (The one shown in the inspector)." + }, + "ActiveInstanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Returns the entity ID of the actual object selection. Includes Prefabs, non-modifiable objects" + }, + "ActiveObject": { + "$ref": "#/$defs/AIGD.ObjectRef", + "description": "Returns the actual object selection. Includes Prefabs, non-modifiable objects." + }, + "ActiveTransform": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Returns the active transform. (The one shown in the inspector)." + } + }, + "required": [ + "ActiveInstanceID" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/editor-selection-set/SKILL.md b/.opencode/skills/editor-selection-set/SKILL.md new file mode 100644 index 0000000..48e140a --- /dev/null +++ b/.opencode/skills/editor-selection-set/SKILL.md @@ -0,0 +1,254 @@ +--- +name: editor-selection-set +description: Set the current Selection in the Unity Editor to the provided objects. All `ObjectRef`s must resolve to existing Unity objects; otherwise the call throws. Use 'editor-selection-get' to inspect the current selection first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Editor / Selection / Set + +Set the current Selection in the Unity Editor to the provided objects. Use 'editor-selection-get' tool to get the current selection first. + +## Inputs + +- `select` — array of `ObjectRef`. Every entry MUST resolve via `FindObject()`; otherwise the tool throws before touching `Selection.objects`. + +## Behavior + +Assigns the resolved array to `Selection.objects`, then calls `UnityEditorInternal.InternalEditorUtility.RepaintAllViews()` so Hierarchy/Inspector reflect the change. Returns the post-change `SelectionData` snapshot. + +## How to Call + +```bash +unity-mcp-cli run-tool editor-selection-set --input '{ + "select": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool editor-selection-set --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool editor-selection-set --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 | +|------|------|----------|-------------| +| `select` | `any` | Yes | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "select": { + "$ref": "#/$defs/AIGD.ObjectRef-1" + } + }, + "$defs": { + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.ObjectRef-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ObjectRef", + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + } + } + }, + "required": [ + "select" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SelectionData" + } + }, + "$defs": { + "AIGD.GameObjectRef-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId-1": { + "type": "array", + "items": { + "$ref": "#/$defs/UnityEngine.EntityId" + } + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "AIGD.SelectionData": { + "type": "object", + "properties": { + "GameObjects": { + "$ref": "#/$defs/AIGD.GameObjectRef-1", + "description": "Returns the actual game object selection. Includes Prefabs, non-modifiable objects." + }, + "Transforms": { + "$ref": "#/$defs/AIGD.ComponentRef-1", + "description": "Returns the top level selection, excluding Prefabs." + }, + "InstanceIDs": { + "$ref": "#/$defs/UnityEngine.EntityId-1", + "description": "The actual unfiltered selection from the Scene returned as entity IDs instead of objects." + }, + "AssetGUIDs": { + "$ref": "#/$defs/System.String-1", + "description": "Returns the guids of the selected assets." + }, + "ActiveGameObject": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Returns the active game object. (The one shown in the inspector)." + }, + "ActiveInstanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Returns the entity ID of the actual object selection. Includes Prefabs, non-modifiable objects" + }, + "ActiveObject": { + "$ref": "#/$defs/AIGD.ObjectRef", + "description": "Returns the actual object selection. Includes Prefabs, non-modifiable objects." + }, + "ActiveTransform": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Returns the active transform. (The one shown in the inspector)." + } + }, + "required": [ + "ActiveInstanceID" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/editor-session-quit/SKILL.md b/.opencode/skills/editor-session-quit/SKILL.md new file mode 100644 index 0000000..7a5571a --- /dev/null +++ b/.opencode/skills/editor-session-quit/SKILL.md @@ -0,0 +1,85 @@ +--- +name: editor-session-quit +description: Save and quit an editor that a CLI session started (`unity-mcp-cli exec`, `open --headless`). Needs the session lease nonce; an editor the user opened is never closed. Used by `unity-mcp-cli close`. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Editor Session / Quit + +Save and quit an editor that a CLI session started. + +## Inputs + +- `nonce` — the `nonce` of the project's session lease (`.ai-game-dev/session.json`), which the CLI also passed to the editor as `AIGD_SESSION_NONCE`. + +## Behavior + +Refuses unless this editor was started by a CLI session (`AIGD_SESSION_OWNER=cli`) with the same nonce. Otherwise answers right away, then saves changed scenes that have a file and changed assets and exits — as the idle shutdown does. Unlike the OS polite-quit signal it also reaches a headless (`-batchmode`) editor. Prefer `unity-mcp-cli close --owned-only` over calling it directly. + +## How to Call + +```bash +unity-mcp-cli run-system-tool editor-session-quit --input '{ + "nonce": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-system-tool editor-session-quit --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-system-tool editor-session-quit --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 | +|------|------|----------|-------------| +| `nonce` | `string` | Yes | The nonce of the project's CLI session lease (.ai-game-dev/session.json). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nonce": { + "type": "string" + } + }, + "required": [ + "nonce" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-component-add/SKILL.md b/.opencode/skills/gameobject-component-add/SKILL.md new file mode 100644 index 0000000..a9c7972 --- /dev/null +++ b/.opencode/skills/gameobject-component-add/SKILL.md @@ -0,0 +1,202 @@ +--- +name: gameobject-component-add +description: Add one or more Components to a GameObject in the opened Prefab or active Scene. Component types are looked up by full name (with namespace) or by class-name fallback. Use 'gameobject-find' to locate the host GameObject and 'gameobject-component-list-all' to discover valid component type names. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Component / Add + +Add Component to GameObject in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first. Use 'gameobject-component-list-all' tool to find the component type names to add. + +## Inputs + +- `componentNames` — list of component type names. Each entry may be a fully-qualified type name (preferred) or a bare class name (resolved via fallback to `AllComponentTypes`). +- `gameObjectRef` — the target GameObject. Required. + +## Behavior + +Per-name errors (unknown type, type not assignable to `UnityEngine.Component`, add-failed/duplicate) are accumulated in `response.Errors` / `response.Warnings` instead of throwing, so a single bad name does not abort the whole batch. Successful additions populate `response.AddedComponents` with `ComponentDataShallow` snapshots. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-component-add --input '{ + "componentNames": "string_value", + "gameObjectRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-component-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-component-add --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 | +|------|------|----------|-------------| +| `componentNames` | `any` | Yes | Full name of the Component. It should include full namespace path and the class name. | +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "componentNames": { + "$ref": "#/$defs/System.String-1" + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "componentNames", + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.AddComponentResponse" + } + }, + "$defs": { + "System.Collections.Generic.List(AIGD.ComponentDataShallow)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentDataShallow" + } + }, + "AIGD.ComponentDataShallow": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "typeName": { + "type": "string" + }, + "isEnabled": { + "type": "string", + "enum": [ + "False", + "True", + "NA" + ] + } + }, + "required": [ + "instanceID", + "isEnabled" + ] + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.AddComponentResponse": { + "type": "object", + "properties": { + "AddedComponents": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.ComponentDataShallow)", + "description": "List of successfully added components." + }, + "Messages": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of success messages for added components." + }, + "Warnings": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of warnings encountered during component addition." + }, + "Errors": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of errors encountered during component addition." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-component-destroy/SKILL.md b/.opencode/skills/gameobject-component-destroy/SKILL.md new file mode 100644 index 0000000..e0443c7 --- /dev/null +++ b/.opencode/skills/gameobject-component-destroy/SKILL.md @@ -0,0 +1,209 @@ +--- +name: gameobject-component-destroy +description: Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Component / Destroy + +Destroy one or many components from target GameObject. Can't destroy missed components. Use 'gameobject-find' tool to find the target GameObject and 'gameobject-component-get' to get component details first. + +## Inputs + +- `gameObjectRef` — the host GameObject. +- `destroyComponentRefs` — `ComponentRefList` of components to destroy (matched against the GameObject's components). + +## Behavior + +Iterates `go.GetComponents()`, skipping null entries (missing scripts). For each non-null component that matches one of `destroyComponentRefs`, the tool snapshots a `ComponentRef`, calls `Object.DestroyImmediate`, and records the destroyed reference. If no component matches at all, throws with the help text from `Error.NotFoundComponents` (which includes a preview of all available components on the GameObject). + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-component-destroy --input '{ + "gameObjectRef": "string_value", + "destroyComponentRefs": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-component-destroy --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-component-destroy --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | +| `destroyComponentRefs` | `any` | Yes | Component reference array. Used to find Component at GameObject. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "destroyComponentRefs": { + "$ref": "#/$defs/AIGD.ComponentRefList" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "AIGD.ComponentRefList": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Component reference. Used to find a Component at GameObject." + }, + "description": "Component reference array. Used to find Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "destroyComponentRefs" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.DestroyComponentsResponse" + } + }, + "$defs": { + "AIGD.ComponentRefList": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Component reference. Used to find a Component at GameObject." + }, + "description": "Component reference array. Used to find Component at GameObject." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.DestroyComponentsResponse": { + "type": "object", + "properties": { + "DestroyedComponents": { + "$ref": "#/$defs/AIGD.ComponentRefList", + "description": "List of destroyed components." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-component-get/SKILL.md b/.opencode/skills/gameobject-component-get/SKILL.md new file mode 100644 index 0000000..62ab1af --- /dev/null +++ b/.opencode/skills/gameobject-component-get/SKILL.md @@ -0,0 +1,346 @@ +--- +name: gameobject-component-get +description: Get detailed information about a specific Component on a GameObject — type, enabled state, and (optionally) serialized fields and properties. Supports token-saving path-scoped reads via `paths` or `viewQuery`. Use 'gameobject-find' to list components first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Component / Get + +Get detailed information about a specific Component on a GameObject. Returns component type, enabled state, and optionally serialized fields and properties. Use this to inspect component data before modifying it. Use 'gameobject-find' tool to get the list of all components on the GameObject. + +## Inputs + +- `gameObjectRef` — the host GameObject. +- `componentRef` — the specific component to inspect (matched by index or instance ID). +- `includeFields` (default `true`) — populate the legacy `Fields` list. +- `includeProperties` (default `true`) — populate the legacy `Properties` list. +- `deepSerialization` (default `false`) — when populating legacy lists, recurse into nested members. + +## Path-scoped reads (token-saving) + +Supply `paths` (a list of paths) to read only the listed fields/elements via `Reflector.TryReadAt`, or `viewQuery` (a `ViewQuery`) to navigate to a subtree and/or filter by name regex / max depth / type via `Reflector.View`. The result is returned in the `View` field of the response, and the legacy `Fields`/`Properties` lists are skipped. These two parameters are mutually exclusive — supply at most one. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-component-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "includeFields": false, + "includeProperties": false, + "deepSerialization": false, + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-component-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-component-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | +| `componentRef` | `any` | Yes | Component reference. Used to find a Component at GameObject. | +| `includeFields` | `boolean` | No | Include serialized fields of the component. | +| `includeProperties` | `boolean` | No | Include serialized properties of the component. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including all nested objects. Otherwise, only serializes top-level members. | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt. When supplied, the legacy 'Fields'/'Properties' lists are skipped and the result is returned in 'View'. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View. When supplied, the legacy 'Fields'/'Properties' lists are skipped and the filtered subtree is returned in 'View'. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "includeFields": { + "type": "boolean" + }, + "includeProperties": { + "type": "boolean" + }, + "deepSerialization": { + "type": "boolean" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + }, + "required": [ + "gameObjectRef", + "componentRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.GetComponentResponse" + } + }, + "$defs": { + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.ComponentDataShallow": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "typeName": { + "type": "string" + }, + "isEnabled": { + "type": "string", + "enum": [ + "False", + "True", + "NA" + ] + } + }, + "required": [ + "instanceID", + "isEnabled" + ] + }, + "System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.SerializedMember)": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "AIGD.GetComponentResponse": { + "type": "object", + "properties": { + "Reference": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the component for future operations." + }, + "Index": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "Component": { + "$ref": "#/$defs/AIGD.ComponentDataShallow", + "description": "Basic component information (type, enabled state)." + }, + "Fields": { + "$ref": "#/$defs/System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.SerializedMember)", + "description": "Serialized fields of the component. Populated only on the legacy code path (no 'paths' / no 'viewQuery')." + }, + "Properties": { + "$ref": "#/$defs/System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.SerializedMember)", + "description": "Serialized properties of the component. Populated only on the legacy code path (no 'paths' / no 'viewQuery')." + }, + "View": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Path-scoped read or view-query result, populated when 'paths' or 'viewQuery' was supplied. Null otherwise." + } + }, + "required": [ + "Index" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-component-list-all/SKILL.md b/.opencode/skills/gameobject-component-list-all/SKILL.md new file mode 100644 index 0000000..c2e84dc --- /dev/null +++ b/.opencode/skills/gameobject-component-list-all/SKILL.md @@ -0,0 +1,133 @@ +--- +name: gameobject-component-list-all +description: List the fully-qualified C# type names of every concrete `UnityEngine.Component` subclass available in the project. Paginated (default 5/page, max 500). Use this to find a valid `componentName` for 'gameobject-component-add'. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Component / List All + +List C# class names extended from UnityEngine.Component. Use this to find component type names for 'gameobject-component-add' tool. Results are paginated to avoid overwhelming responses. + +## Inputs + +- `search` (optional) — case-insensitive substring filter on type names. +- `page` (default 0, 0-based) — page index. +- `pageSize` (default 5, range 1..500) — items per page. + +## Behavior + +Enumerates `AllComponentTypes` (every non-abstract subclass of `UnityEngine.Component`), filters by `search` if supplied, then returns a `ComponentListResult` containing the requested page plus `TotalCount` / `TotalPages` so the caller can iterate. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-component-list-all --input '{ + "search": "string_value", + "page": 0, + "pageSize": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-component-list-all --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-component-list-all --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 | +|------|------|----------|-------------| +| `search` | `string` | No | Substring for searching components. Could be empty. | +| `page` | `integer` | No | Page number (0-based). Default is 0. | +| `pageSize` | `integer` | No | Number of items per page. Default is 5. Max is 500. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "search": { + "type": "string" + }, + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.ComponentListResult" + } + }, + "$defs": { + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.ComponentListResult": { + "type": "object", + "properties": { + "Items": { + "$ref": "#/$defs/System.String-1", + "description": "Array of component type names for the current page." + }, + "Page": { + "type": "integer", + "description": "Current page number (0-based)." + }, + "PageSize": { + "type": "integer", + "description": "Number of items per page." + }, + "TotalCount": { + "type": "integer", + "description": "Total number of matching components." + }, + "TotalPages": { + "type": "integer", + "description": "Total number of pages available." + } + }, + "required": [ + "Page", + "PageSize", + "TotalCount", + "TotalPages" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-component-modify/SKILL.md b/.opencode/skills/gameobject-component-modify/SKILL.md new file mode 100644 index 0000000..c70ce92 --- /dev/null +++ b/.opencode/skills/gameobject-component-modify/SKILL.md @@ -0,0 +1,331 @@ +--- +name: gameobject-component-modify +description: Modify a specific Component on a GameObject in opened Prefab or in a Scene. Allows direct modification of component fields and properties without wrapping in GameObject structure. Use 'gameobject-component-get' first to inspect the component structure before modifying. Three modification surfaces are available (componentDiff, pathPatches, jsonPatch) — see the skill body for details. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Component / Modify + +## Three modification surfaces + +Use whichever fits the task: + +1. `componentDiff` — full `SerializedMember` diff (legacy, backwards compatible). +2. `pathPatches` — list of `{path, value}` pairs routed through `Reflector.TryModifyAt`; atomic per-path modification, multiple entries can target different depths. +3. `jsonPatch` — a JSON Merge Patch (RFC 7396, extended with `[i]`/`[key]` notation) routed through `Reflector.TryPatch`; multiple fields at any depth in a single call. + +When more than one is supplied they run in this order: `jsonPatch` → `pathPatches` → `componentDiff`. At least one is required. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-component-modify --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "componentDiff": "string_value", + "pathPatches": "string_value", + "jsonPatch": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-component-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-component-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | +| `componentRef` | `any` | Yes | Component reference. Used to find a Component at GameObject. | +| `componentDiff` | `any` | No | Optional. The full component data to apply (legacy path). Should contain 'fields' and/or 'props' with the values to modify. +Only include the fields/properties you want to change. +Any unknown or invalid fields and properties will be reported in the response. | +| `pathPatches` | `any` | No | Optional. List of path-scoped patches routed through Reflector.TryModifyAt. Each entry targets one field/element/entry by path. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. | +| `jsonPatch` | `any` | No | Optional. JSON Merge Patch (RFC 7396, extended with [i]/[key] keys) routed through Reflector.TryPatch. Allows multiple fields at any depth to be updated in a single call. Use '$type' for compatible-subtype replacement. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "componentDiff": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "pathPatches": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.PathPatch)" + }, + "jsonPatch": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": true + } + ] + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.PathPatch": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Slash-delimited path to the target field/element/entry. Plain segment navigates a field or property (e.g. 'admin' or 'admin/name'). Use '[i]' for array/list index (e.g. 'planets/[0]/orbitRadius'). Use '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Required." + }, + "Value": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "The new value to write at the path. Use the standard SerializedMember envelope: 'typeName' + 'value' for primitives, or nested 'fields'/'props' for complex types. Required — omitting it overwrites the target with a default empty SerializedMember." + } + } + }, + "System.Collections.Generic.List(AIGD.PathPatch)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.PathPatch" + } + } + }, + "required": [ + "gameObjectRef", + "componentRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.ModifyComponentResponse" + } + }, + "$defs": { + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.ComponentDataShallow": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "typeName": { + "type": "string" + }, + "isEnabled": { + "type": "string", + "enum": [ + "False", + "True", + "NA" + ] + } + }, + "required": [ + "instanceID", + "isEnabled" + ] + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.ModifyComponentResponse": { + "type": "object", + "properties": { + "Success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "Reference": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "Index": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "Component": { + "$ref": "#/$defs/AIGD.ComponentDataShallow", + "description": "Updated component information after modification." + }, + "Logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications made and any warnings/errors encountered." + } + }, + "required": [ + "Success", + "Index" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-create/SKILL.md b/.opencode/skills/gameobject-create/SKILL.md new file mode 100644 index 0000000..2b67d3d --- /dev/null +++ b/.opencode/skills/gameobject-create/SKILL.md @@ -0,0 +1,231 @@ +--- +name: gameobject-create +description: Create a new GameObject in the currently opened Prefab or active Scene, optionally parented under another GameObject and pre-positioned. Pass `primitiveType` to spawn a Unity primitive (Cube, Sphere, etc.) instead of an empty GameObject. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Create + +Create a new GameObject in opened Prefab or in a Scene. If needed - provide proper 'position', 'rotation' and 'scale' to reduce amount of operations. + +## Inputs + +- `name` — required non-empty name. +- `parentGameObjectRef` (optional) — when provided, the new GameObject is parented under this one (`SetParent(parent, worldPositionStays: false)`); otherwise it's created at scene/prefab root. +- `position` / `rotation` / `scale` — optional transform; default to zero / zero / one. +- `isLocalSpace` — when `true`, applies the transform in local space relative to the parent. +- `primitiveType` (optional) — when set, the GameObject is created via `GameObject.CreatePrimitive` (adds the appropriate renderer/collider for the primitive shape). + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-create --input '{ + "name": "string_value", + "parentGameObjectRef": "string_value", + "position": "string_value", + "rotation": "string_value", + "scale": "string_value", + "isLocalSpace": false, + "primitiveType": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-create --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 | +|------|------|----------|-------------| +| `name` | `string` | Yes | Name of the new GameObject. | +| `parentGameObjectRef` | `any` | No | Parent GameObject reference. If not provided, the GameObject will be created at the root of the scene or prefab. | +| `position` | `any` | No | Transform position of the GameObject. | +| `rotation` | `any` | No | Transform rotation of the GameObject. Euler angles in degrees. | +| `scale` | `any` | No | Transform scale of the GameObject. | +| `isLocalSpace` | `boolean` | No | World or Local space of transform. | +| `primitiveType` | `any` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "parentGameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "scale": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "isLocalSpace": { + "type": "boolean" + }, + "primitiveType": { + "$ref": "#/$defs/UnityEngine.PrimitiveType" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "UnityEngine.PrimitiveType": { + "type": "string", + "enum": [ + "Sphere", + "Capsule", + "Cylinder", + "Cube", + "Plane", + "Quad" + ] + } + }, + "required": [ + "name" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-destroy/SKILL.md b/.opencode/skills/gameobject-destroy/SKILL.md new file mode 100644 index 0000000..e53c13d --- /dev/null +++ b/.opencode/skills/gameobject-destroy/SKILL.md @@ -0,0 +1,149 @@ +--- +name: gameobject-destroy +description: Destroy a GameObject (and all nested children) in the currently opened Prefab or active Scene. Returns the destroyed GameObject's name, path, and instance ID for confirmation. Use 'gameobject-find' to locate the target first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Destroy + +Destroy GameObject and all nested GameObjects recursively in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first. + +## Behavior + +Validates the `gameObjectRef`, resolves it on the main thread, then calls `Object.DestroyImmediate` (the immediate variant is required for Editor-mode operations). Returns a `DestroyGameObjectResult` containing `DestroyedName`, `DestroyedPath`, and `DestroyedInstanceId` so the caller has a record of what was removed. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-destroy --input '{ + "gameObjectRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-destroy --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-destroy --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.DestroyGameObjectResult" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.DestroyGameObjectResult": { + "type": "object", + "properties": { + "DestroyedName": { + "type": "string", + "description": "Name of the destroyed GameObject." + }, + "DestroyedPath": { + "type": "string", + "description": "Hierarchy path of the destroyed GameObject." + }, + "DestroyedInstanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance ID of the destroyed GameObject." + } + }, + "required": [ + "DestroyedInstanceId" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-duplicate/SKILL.md b/.opencode/skills/gameobject-duplicate/SKILL.md new file mode 100644 index 0000000..7731f0a --- /dev/null +++ b/.opencode/skills/gameobject-duplicate/SKILL.md @@ -0,0 +1,184 @@ +--- +name: gameobject-duplicate +description: Duplicate a batch of GameObjects in the currently opened Prefab or active Scene. Marks each affected scene as dirty after duplication. Use 'gameobject-find' to locate the source GameObjects first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Duplicate + +Duplicate GameObjects in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObjects first. + +## Inputs + +- `gameObjectRefs` — `GameObjectRefList` of source GameObjects. + +## Behavior + +Resolves every input ref on the main thread (throwing on any unresolved entry to keep the batch atomic). Sets `Selection.entityIds`/`instanceIDs` to the sources and invokes `Unsupported.DuplicateGameObjectsUsingPasteboard()` (Unity's canonical duplicate routine). Marks every distinct affected scene dirty so the duplicated objects are saved with the scene. Returns refs to the sources (the duplicates are reachable via the post-call `Selection`). + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-duplicate --input '{ + "gameObjectRefs": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-duplicate --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-duplicate --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 | +|------|------|----------|-------------| +| `gameObjectRefs` | `any` | Yes | Array of GameObjects in opened Prefab or in the active Scene. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRefs": { + "$ref": "#/$defs/AIGD.GameObjectRefList" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRefList": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "description": "Array of GameObjects in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRefs" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.GameObjectRef)" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "System.Collections.Generic.List(AIGD.GameObjectRef)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-find/SKILL.md b/.opencode/skills/gameobject-find/SKILL.md new file mode 100644 index 0000000..7680f4b --- /dev/null +++ b/.opencode/skills/gameobject-find/SKILL.md @@ -0,0 +1,423 @@ +--- +name: gameobject-find +description: Find a specific GameObject in the opened Prefab (preferred when present) or the active Scene. Optionally include editable data, components preview, bounds, and limited hierarchy. Supports token-saving path-scoped reads via `paths` or `viewQuery`. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Find + +Finds specific GameObject by provided information in opened Prefab or in a Scene. First it looks for the opened Prefab, if any Prefab is opened it looks only there ignoring a scene. If no opened Prefab it looks into current active scene. Returns GameObject information and its children. Also, it returns Components preview just for the target GameObject. + +## Toggles (all default `false` to keep responses small) + +- `includeData` — full editable GameObject data (tag, layer, etc.). +- `includeComponents` — attached components references. +- `includeBounds` — 3D bounds. +- `includeHierarchy` — hierarchy metadata. +- `hierarchyDepth` (default 0) — depth of the hierarchy to include. `0` = target only, `1` = one layer below, etc. + +## Path-scoped reads (token-saving) + +Supply `paths` (a list of paths) to read only the listed fields/elements via `Reflector.TryReadAt`, or `viewQuery` (a `ViewQuery`) to navigate to a subtree and/or filter by name regex / max depth / type via `Reflector.View`. When either is supplied, the result populates `Data` on the returned `GameObjectData` and overrides `includeData` (which would otherwise produce a full recursive serialization). These two parameters are mutually exclusive — supply at most one. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-find --input '{ + "gameObjectRef": "string_value", + "includeData": false, + "includeComponents": false, + "includeBounds": false, + "includeHierarchy": false, + "hierarchyDepth": 0, + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-find --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-find --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Find GameObject in opened Prefab or in the active Scene. | +| `includeData` | `boolean` | No | Include editable GameObject data (tag, layer, etc). | +| `includeComponents` | `boolean` | No | Include attached components references. | +| `includeBounds` | `boolean` | No | Include 3D bounds of the GameObject. | +| `includeHierarchy` | `boolean` | No | Include hierarchy metadata. | +| `hierarchyDepth` | `integer` | No | Determines the depth of the hierarchy to include. 0 - means only the target GameObject. 1 - means to include one layer below. | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt. When supplied, replaces 'includeData'-style full serialization with a path-scoped aggregate. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View. When supplied, replaces 'includeData'-style full serialization with the filtered subtree. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "includeData": { + "type": "boolean" + }, + "includeComponents": { + "type": "boolean" + }, + "includeBounds": { + "type": "boolean" + }, + "includeHierarchy": { + "type": "boolean" + }, + "hierarchyDepth": { + "type": "integer" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.GameObjectData" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "UnityEngine.Bounds": { + "type": "object", + "properties": { + "center": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ] + }, + "size": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ] + } + }, + "required": [ + "center", + "size" + ], + "additionalProperties": false + }, + "AIGD.GameObjectMetadata": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sceneName": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "activeSelf": { + "type": "boolean" + }, + "activeInHierarchy": { + "type": "boolean" + }, + "children": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.GameObjectMetadata)" + } + }, + "required": [ + "instanceID", + "activeSelf", + "activeInHierarchy" + ] + }, + "System.Collections.Generic.List(AIGD.GameObjectMetadata)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectMetadata" + } + }, + "AIGD.ComponentDataShallow-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentDataShallow" + } + }, + "AIGD.ComponentDataShallow": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "typeName": { + "type": "string" + }, + "isEnabled": { + "type": "string", + "enum": [ + "False", + "True", + "NA" + ] + } + }, + "required": [ + "instanceID", + "isEnabled" + ] + }, + "AIGD.GameObjectData": { + "type": "object", + "properties": { + "Reference": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "Data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "GameObject editable data (tag, layer, etc)." + }, + "Bounds": { + "$ref": "#/$defs/UnityEngine.Bounds", + "description": "Bounds of the GameObject." + }, + "Hierarchy": { + "$ref": "#/$defs/AIGD.GameObjectMetadata", + "description": "Hierarchy metadata of the GameObject." + }, + "Components": { + "$ref": "#/$defs/AIGD.ComponentDataShallow-1", + "description": "Attached components shallow data of the GameObject (Read-only, use Component modification tool for modification)." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-modify/SKILL.md b/.opencode/skills/gameobject-modify/SKILL.md new file mode 100644 index 0000000..cffb149 --- /dev/null +++ b/.opencode/skills/gameobject-modify/SKILL.md @@ -0,0 +1,262 @@ +--- +name: gameobject-modify +description: Modify GameObject fields and properties in opened Prefab or in a Scene. You can modify multiple GameObjects at once. Just provide the same number of GameObject references and SerializedMember objects. Three modification surfaces are available per GameObject (gameObjectDiffs, pathPatchesPerGameObject, jsonPatchesPerGameObject) — see the skill body for details. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Modify + +## Three modification surfaces + +Per GameObject — parallel arrays must have the same length as `gameObjectRefs`: + +1. `gameObjectDiffs` — full `SerializedMember` diff per GameObject (legacy, backwards compatible). +2. `pathPatchesPerGameObject` — list of `{path, value}` patches per GameObject routed through `Reflector.TryModifyAt`; atomic per-path modification. +3. `jsonPatchesPerGameObject` — JSON Merge Patch per GameObject routed through `Reflector.TryPatch`. + +When more than one is supplied for the same GameObject they run in this order: `jsonPatch` → `pathPatches` → `diff`. At least one of the three is required. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-modify --input '{ + "gameObjectRefs": "string_value", + "gameObjectDiffs": "string_value", + "pathPatchesPerGameObject": "string_value", + "jsonPatchesPerGameObject": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-modify --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 | +|------|------|----------|-------------| +| `gameObjectRefs` | `any` | Yes | Array of GameObjects in opened Prefab or in the active Scene. | +| `gameObjectDiffs` | `any` | No | Optional. Each item in the array represents a GameObject modification of the 'gameObjectRefs' at the same index. Usually a GameObject is a container for components. Each component may have fields and properties for modification. If you need to modify components of a GameObject, please use 'gameobject-component-modify' tool. Ignore values that should not be modified. Any unknown or wrong located fields and properties will be ignored. Check the result of this command to see what was changed. The ignored fields and properties will be listed. | +| `pathPatchesPerGameObject` | `any` | No | Optional. Per-GameObject list of path-scoped patches routed through Reflector.TryModifyAt. Outer index aligns with 'gameObjectRefs'; inner list contains {path, value} entries. Pass null or omit for GameObjects that should not receive path patches. | +| `jsonPatchesPerGameObject` | `any` | No | Optional. Per-GameObject JSON Merge Patch (RFC 7396, extended with [i]/[key] keys) routed through Reflector.TryPatch. Outer index aligns with 'gameObjectRefs'. Pass null or omit for GameObjects that should not receive a JSON patch. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRefs": { + "$ref": "#/$defs/AIGD.GameObjectRefList" + }, + "gameObjectDiffs": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMemberList" + }, + "pathPatchesPerGameObject": { + "$ref": "#/$defs/System.Collections.Generic.List(System.Collections.Generic.List(AIGD.PathPatch))" + }, + "jsonPatchesPerGameObject": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRefList": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "description": "Array of GameObjects in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "System.Collections.Generic.List(AIGD.PathPatch)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.PathPatch" + } + }, + "AIGD.PathPatch": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Slash-delimited path to the target field/element/entry. Plain segment navigates a field or property (e.g. 'admin' or 'admin/name'). Use '[i]' for array/list index (e.g. 'planets/[0]/orbitRadius'). Use '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Required." + }, + "Value": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "The new value to write at the path. Use the standard SerializedMember envelope: 'typeName' + 'value' for primitives, or nested 'fields'/'props' for complex types. Required — omitting it overwrites the target with a default empty SerializedMember." + } + } + }, + "System.Collections.Generic.List(System.Collections.Generic.List(AIGD.PathPatch))": { + "type": "array", + "items": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.PathPatch)" + } + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "gameObjectRefs" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.Logs" + } + }, + "$defs": { + "com.IvanMurzak.ReflectorNet.Model.LogEntry": { + "type": "object", + "properties": { + "Depth": { + "type": "integer" + }, + "Message": { + "type": "string" + }, + "Type": { + "type": "string", + "enum": [ + "Trace", + "Debug", + "Info", + "Success", + "Warning", + "Error", + "Critical" + ] + } + }, + "required": [ + "Depth", + "Type" + ] + }, + "com.IvanMurzak.ReflectorNet.Model.Logs": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.LogEntry" + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/gameobject-set-parent/SKILL.md b/.opencode/skills/gameobject-set-parent/SKILL.md new file mode 100644 index 0000000..828e9fc --- /dev/null +++ b/.opencode/skills/gameobject-set-parent/SKILL.md @@ -0,0 +1,148 @@ +--- +name: gameobject-set-parent +description: Reparent a batch of GameObjects under a new parent in the currently opened Prefab or active Scene. Per-item failures are reported in the returned status string instead of aborting the batch. Use 'gameobject-find' to locate the GameObjects first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# GameObject / Set Parent + +Set parent GameObject to list of GameObjects in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObjects first. + +## Inputs + +- `gameObjectRefs` — list of children to reparent. +- `parentGameObjectRef` — new parent. Must resolve, otherwise the call returns early with an error string. +- `worldPositionStays` (default `true`) — preserve world-space transform when reparenting (passed to `Transform.SetParent`). + +## Behavior + +Iterates `gameObjectRefs` and reparents each one independently; per-item resolve errors are appended to the returned status string instead of throwing. After the loop, if at least one reparent succeeded, marks the active scene dirty and repaints editor windows. + +## How to Call + +```bash +unity-mcp-cli run-tool gameobject-set-parent --input '{ + "gameObjectRefs": "string_value", + "parentGameObjectRef": "string_value", + "worldPositionStays": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool gameobject-set-parent --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool gameobject-set-parent --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 | +|------|------|----------|-------------| +| `gameObjectRefs` | `any` | Yes | List of references to the GameObjects to set new parent. | +| `parentGameObjectRef` | `any` | Yes | Reference to the parent GameObject. | +| `worldPositionStays` | `boolean` | No | A boolean flag indicating whether the GameObject's world position should remain unchanged when setting its parent. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRefs": { + "$ref": "#/$defs/AIGD.GameObjectRefList" + }, + "parentGameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "worldPositionStays": { + "type": "boolean" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRefList": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "description": "Array of GameObjects in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRefs", + "parentGameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/inputsystem-action-add/SKILL.md b/.opencode/skills/inputsystem-action-add/SKILL.md new file mode 100644 index 0000000..7e02125 --- /dev/null +++ b/.opencode/skills/inputsystem-action-add/SKILL.md @@ -0,0 +1,124 @@ +--- +name: inputsystem-action-add +description: Add an Action (with type and optional expectedControlType) to an ActionMap in a `.inputactions` asset, optionally with an initial binding path, and save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Add Action + +Add an `InputAction` to an existing `InputActionMap`. An Action represents a single input intent (e.g. 'Jump', 'Move', 'Fire'). + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` — required. Name of the ActionMap to add the Action to. +- `actionName` — required. Name of the new Action (unique within the map). +- `actionType` — input behavior type: `Button` (default), `Value`, or `PassThrough`. +- `expectedControlType` — optional control layout the action expects (e.g. `Button`, `Vector2`, `Axis`). +- `binding` — optional initial binding control path (e.g. `/buttonSouth`). +- `groups` / `interactions` / `processors` — optional binding metadata applied to the initial binding. + +## Behavior + +Loads the asset, adds the Action to the named map (failing if the action name already exists), sets its `expectedControlType` when provided, saves and re-imports the asset. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-action-add --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value", + "actionType": "string_value", + "expectedControlType": "string_value", + "binding": "string_value", + "groups": "string_value", + "interactions": "string_value", + "processors": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-action-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-action-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap to add the Action to. | +| `actionName` | `string` | Yes | Name of the new Action (unique within the map). | +| `actionType` | `string` | No | Input behavior type: Button (default), Value, or PassThrough. | +| `expectedControlType` | `string` | No | Optional expected control type / layout (e.g. 'Button', 'Vector2', 'Axis'). | +| `binding` | `string` | No | Optional initial binding control path (e.g. '/buttonSouth'). | +| `groups` | `string` | No | Optional binding group(s) for the initial binding (semicolon-separated). | +| `interactions` | `string` | No | Optional interactions for the initial binding (e.g. 'press,hold'). | +| `processors` | `string` | No | Optional processors for the initial binding (e.g. 'invert'). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + }, + "actionType": { + "type": "string", + "enum": [ + "Value", + "Button", + "PassThrough" + ] + }, + "expectedControlType": { + "type": "string" + }, + "binding": { + "type": "string" + }, + "groups": { + "type": "string" + }, + "interactions": { + "type": "string" + }, + "processors": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-action-remove/SKILL.md b/.opencode/skills/inputsystem-action-remove/SKILL.md new file mode 100644 index 0000000..e2240e1 --- /dev/null +++ b/.opencode/skills/inputsystem-action-remove/SKILL.md @@ -0,0 +1,85 @@ +--- +name: inputsystem-action-remove +description: Remove an Action (and its Bindings) from an ActionMap in a `.inputactions` asset and save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Remove Action + +Remove an `InputAction` from an `InputActionMap`. This deletes the Action and every Binding associated with it. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` — required. Name of the ActionMap containing the Action. +- `actionName` — required. Name of the Action to remove. + +## Behavior + +Loads the asset, removes the named Action from the map (failing if it does not exist), saves and re-imports the asset. Destructive. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-action-remove --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-action-remove --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-action-remove --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap containing the Action. | +| `actionName` | `string` | Yes | Name of the Action to remove. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-actionmap-add/SKILL.md b/.opencode/skills/inputsystem-actionmap-add/SKILL.md new file mode 100644 index 0000000..6ff2420 --- /dev/null +++ b/.opencode/skills/inputsystem-actionmap-add/SKILL.md @@ -0,0 +1,78 @@ +--- +name: inputsystem-actionmap-add +description: Add a new ActionMap to an existing `.inputactions` InputActionAsset and save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Add ActionMap + +Add a new `InputActionMap` to an InputActionAsset. An ActionMap groups related Actions (e.g. a 'Player' map and a 'UI' map). + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` — required. Name of the new ActionMap. Must be unique within the asset. + +## Behavior + +Loads the asset, adds the ActionMap (failing if a map of that name already exists), saves the asset back to disk, and re-imports it. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-actionmap-add --input '{ + "assetPath": "string_value", + "mapName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-actionmap-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-actionmap-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the new ActionMap (unique within the asset). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-actionmap-remove/SKILL.md b/.opencode/skills/inputsystem-actionmap-remove/SKILL.md new file mode 100644 index 0000000..90697db --- /dev/null +++ b/.opencode/skills/inputsystem-actionmap-remove/SKILL.md @@ -0,0 +1,78 @@ +--- +name: inputsystem-actionmap-remove +description: Remove an ActionMap (and all its Actions and Bindings) from a `.inputactions` asset and save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Remove ActionMap + +Remove an `InputActionMap` from an InputActionAsset. This deletes the map along with every Action and Binding it contains. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` — required. Name of the ActionMap to remove. + +## Behavior + +Loads the asset, removes the named ActionMap (failing if it does not exist), saves and re-imports the asset. Destructive. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-actionmap-remove --input '{ + "assetPath": "string_value", + "mapName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-actionmap-remove --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-actionmap-remove --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap to remove. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-asset-create/SKILL.md b/.opencode/skills/inputsystem-asset-create/SKILL.md new file mode 100644 index 0000000..f3dc1ff --- /dev/null +++ b/.opencode/skills/inputsystem-asset-create/SKILL.md @@ -0,0 +1,77 @@ +--- +name: inputsystem-asset-create +description: Create a new `.inputactions` InputActionAsset at an 'Assets/'-rooted path, optionally seeding an initial ActionMap. Returns the created asset path. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Create InputActionAsset + +Create a new Unity Input System `InputActionAsset` (a `.inputactions` file). This is the container for ActionMaps, Actions, Bindings and Control Schemes. + +## Inputs + +- `assetPath` — required. An 'Assets/'-rooted path ending in `.inputactions` (e.g. `Assets/Input/Player.inputactions`). Intermediate folders must already exist (use 'assets-create-folder'). +- `initialActionMap` — optional. When provided, an empty ActionMap with this name is added to the new asset. + +## Behavior + +Creates an empty `InputActionAsset`, optionally adds the initial ActionMap, serializes it to JSON, writes the file, and imports it into the AssetDatabase. Fails if an asset already exists at the path. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-asset-create --input '{ + "assetPath": "string_value", + "initialActionMap": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-asset-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-asset-create --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path ending in '.inputactions' for the new asset. | +| `initialActionMap` | `string` | No | Optional name for an initial ActionMap to add to the new asset. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "initialActionMap": { + "type": "string" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-binding-add/SKILL.md b/.opencode/skills/inputsystem-binding-add/SKILL.md new file mode 100644 index 0000000..a619548 --- /dev/null +++ b/.opencode/skills/inputsystem-binding-add/SKILL.md @@ -0,0 +1,110 @@ +--- +name: inputsystem-binding-add +description: Add a simple (non-composite) Binding to an Action in a `.inputactions` asset, with an optional control path, groups, interactions and processors, then save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Add Binding + +Add an `InputBinding` to an existing `InputAction`. A binding maps a physical control path (e.g. `/space`) to the Action. For composite bindings (2DVector / 1DAxis) use 'inputsystem-binding-composite-add' instead. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` — required. ActionMap containing the Action. +- `actionName` — required. Action to add the binding to. +- `path` — control path (e.g. `/space`, `/leftStick`). +- `groups` — optional control-scheme group(s) (semicolon-separated, e.g. `Keyboard&Mouse`). +- `interactions` — optional interactions (e.g. `hold`, `press,tap`). +- `processors` — optional processors (e.g. `invert`, `scale(factor=2)`). + +## Behavior + +Loads the asset, resolves the Action, appends a binding with the supplied metadata, saves and re-imports the asset, and returns the new binding's index. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-binding-add --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value", + "path": "string_value", + "groups": "string_value", + "interactions": "string_value", + "processors": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap containing the Action. | +| `actionName` | `string` | Yes | Name of the Action to add the binding to. | +| `path` | `string` | Yes | Control path for the binding (e.g. '/space'). | +| `groups` | `string` | No | Optional control-scheme group(s), semicolon-separated. | +| `interactions` | `string` | No | Optional interactions (e.g. 'hold', 'press,tap'). | +| `processors` | `string` | No | Optional processors (e.g. 'invert'). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + }, + "path": { + "type": "string" + }, + "groups": { + "type": "string" + }, + "interactions": { + "type": "string" + }, + "processors": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName", + "path" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-binding-composite-add/SKILL.md b/.opencode/skills/inputsystem-binding-composite-add/SKILL.md new file mode 100644 index 0000000..cff17c9 --- /dev/null +++ b/.opencode/skills/inputsystem-binding-composite-add/SKILL.md @@ -0,0 +1,108 @@ +--- +name: inputsystem-binding-composite-add +description: Add a composite Binding (e.g. `2DVector` / WASD, `1DAxis`) with its named parts to an Action in a `.inputactions` asset, then save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Add Composite Binding + +Add a composite `InputBinding` to an `InputAction`. A composite synthesizes a value (e.g. a `Vector2`) from several part bindings. The classic example is a `2DVector` (WASD) composite with `up`/`down`/`left`/`right` parts; a `1DAxis` composite has `negative`/`positive` parts. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` / `actionName` — required. The Action that receives the composite. +- `composite` — composite type, e.g. `2DVector`, `1DAxis`, `Axis`, `Dpad` (default `2DVector`). +- `parts` — required. One or more `{ name, path }` entries (e.g. `up` → `/w`). +- `interactions` / `processors` — optional, applied to the composite root. + +## Behavior + +Loads the asset, resolves the Action, adds the composite via `AddCompositeBinding` and chains each part via `.With(name, path)`, saves and re-imports the asset. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-binding-composite-add --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value", + "parts": "string_value", + "composite": "string_value", + "interactions": "string_value", + "processors": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-composite-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-composite-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap containing the Action. | +| `actionName` | `string` | Yes | Name of the Action to add the composite to. | +| `parts` | `string` | Yes | Composite parts: each entry has a 'name' (e.g. 'up') and a control 'path' (e.g. '/w'). RQL: [CompositePart] | +| `composite` | `string` | No | Composite type, e.g. '2DVector' (default), '1DAxis', 'Axis', 'Dpad'. | +| `interactions` | `string` | No | Optional interactions applied to the composite root. | +| `processors` | `string` | No | Optional processors applied to the composite root. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + }, + "parts": { + "type": "string" + }, + "composite": { + "type": "string" + }, + "interactions": { + "type": "string" + }, + "processors": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName", + "parts" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-binding-remove/SKILL.md b/.opencode/skills/inputsystem-binding-remove/SKILL.md new file mode 100644 index 0000000..2354a85 --- /dev/null +++ b/.opencode/skills/inputsystem-binding-remove/SKILL.md @@ -0,0 +1,91 @@ +--- +name: inputsystem-binding-remove +description: Remove a Binding by its index from an Action in a `.inputactions` asset, then save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Remove Binding + +Remove an `InputBinding` from an `InputAction` by its index within that Action's binding list. Use 'inputsystem-get' to discover binding indices first. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` / `actionName` — required. The Action that owns the binding. +- `bindingIndex` — required. Zero-based index of the binding within the Action. + +## Behavior + +Loads the asset, resolves the Action, erases the binding at the given index (failing if out of range), saves and re-imports the asset. Note: erasing a composite root also affects its parts. Destructive. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-binding-remove --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value", + "bindingIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-remove --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-remove --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap containing the Action. | +| `actionName` | `string` | Yes | Name of the Action that owns the binding. | +| `bindingIndex` | `integer` | Yes | Zero-based index of the binding within the Action's binding list. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + }, + "bindingIndex": { + "type": "integer" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName", + "bindingIndex" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-binding-set/SKILL.md b/.opencode/skills/inputsystem-binding-set/SKILL.md new file mode 100644 index 0000000..5ab51ce --- /dev/null +++ b/.opencode/skills/inputsystem-binding-set/SKILL.md @@ -0,0 +1,115 @@ +--- +name: inputsystem-binding-set +description: Update a Binding's path, groups, interactions and/or processors by index on an Action in a `.inputactions` asset, then save it. Only the supplied fields are changed. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Set Binding + +Update fields of an existing `InputBinding` (identified by its index on an `InputAction`). Only the parameters you provide are applied; the rest are left unchanged. Use 'inputsystem-get' to find the binding index first. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `mapName` / `actionName` — required. The Action that owns the binding. +- `bindingIndex` — required. Zero-based index of the binding. +- `path` — optional new control path. +- `groups` — optional new control-scheme group(s). +- `interactions` — optional new interactions. +- `processors` — optional new processors. + +## Behavior + +Loads the asset, resolves the Action and binding index (failing if out of range), applies each supplied field via the `ChangeBinding` syntax (`WithPath` / `WithGroups` / `WithInteractions` / `WithProcessors`), saves and re-imports the asset. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-binding-set --input '{ + "assetPath": "string_value", + "mapName": "string_value", + "actionName": "string_value", + "bindingIndex": 0, + "path": "string_value", + "groups": "string_value", + "interactions": "string_value", + "processors": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-set --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-binding-set --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `mapName` | `string` | Yes | Name of the ActionMap containing the Action. | +| `actionName` | `string` | Yes | Name of the Action that owns the binding. | +| `bindingIndex` | `integer` | Yes | Zero-based index of the binding to update. | +| `path` | `string` | No | Optional new control path. | +| `groups` | `string` | No | Optional new control-scheme group(s). | +| `interactions` | `string` | No | Optional new interactions. | +| `processors` | `string` | No | Optional new processors. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "mapName": { + "type": "string" + }, + "actionName": { + "type": "string" + }, + "bindingIndex": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "groups": { + "type": "string" + }, + "interactions": { + "type": "string" + }, + "processors": { + "type": "string" + } + }, + "required": [ + "assetPath", + "mapName", + "actionName", + "bindingIndex" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-controlscheme-add/SKILL.md b/.opencode/skills/inputsystem-controlscheme-add/SKILL.md new file mode 100644 index 0000000..d706629 --- /dev/null +++ b/.opencode/skills/inputsystem-controlscheme-add/SKILL.md @@ -0,0 +1,96 @@ +--- +name: inputsystem-controlscheme-add +description: Add a Control Scheme (with optional required / optional device requirements) to a `.inputactions` asset, then save it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Add Control Scheme + +Add an `InputControlScheme` to an InputActionAsset. A control scheme groups bindings by a set of devices (e.g. a 'Keyboard&Mouse' scheme and a 'Gamepad' scheme), letting the same Actions support multiple input setups. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `schemeName` — required. Unique control-scheme name. +- `requiredDevices` — optional device control paths that MUST be present (e.g. ``). +- `optionalDevices` — optional device control paths that MAY be present (e.g. ``). + +## Behavior + +Loads the asset, adds the control scheme via `AddControlScheme`, registers each required / optional device requirement, saves and re-imports the asset. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-controlscheme-add --input '{ + "assetPath": "string_value", + "schemeName": "string_value", + "requiredDevices": [], + "optionalDevices": [] +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-controlscheme-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-controlscheme-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `schemeName` | `string` | Yes | Unique name of the new control scheme. | +| `requiredDevices` | `array` | No | Optional required device control paths (e.g. ''). All must be present for the scheme to be usable. | +| `optionalDevices` | `array` | No | Optional optional-device control paths (e.g. ''). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "schemeName": { + "type": "string" + }, + "requiredDevices": { + "type": "array", + "items": { + "type": "string" + } + }, + "optionalDevices": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "assetPath", + "schemeName" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-get/SKILL.md b/.opencode/skills/inputsystem-get/SKILL.md new file mode 100644 index 0000000..a8eb6bf --- /dev/null +++ b/.opencode/skills/inputsystem-get/SKILL.md @@ -0,0 +1,71 @@ +--- +name: inputsystem-get +description: Read the full structure of a `.inputactions` InputActionAsset — its ActionMaps, Actions (type / expectedControlType), Bindings (path / groups / interactions / processors / index) and Control Schemes. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Get Asset Structure + +Inspect an `InputActionAsset` and return its structure so you can discover map names, action names, and binding indices to drive the other tools. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. + +## Behavior + +Loads the asset and walks its ActionMaps → Actions → Bindings plus its Control Schemes, returning a compact structured summary (including each binding's zero-based index, whether it is a composite, and its part metadata). Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-get --input '{ + "assetPath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-get --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-modify/SKILL.md b/.opencode/skills/inputsystem-modify/SKILL.md new file mode 100644 index 0000000..16efe57 --- /dev/null +++ b/.opencode/skills/inputsystem-modify/SKILL.md @@ -0,0 +1,78 @@ +--- +name: inputsystem-modify +description: "Generic write escape-hatch: apply a `SerializedMember` diff to the `InputActionAsset` object itself via ReflectorNet `TryModify`, for fields not covered by the dedicated tools. Use 'inputsystem-get' first to inspect the structure." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Modify Asset (generic) + +Modify an `InputActionAsset` by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for asset-level fields/properties that the dedicated tools do not expose. + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. +- `data` — the `SerializedMember` diff to apply. Route **fields** through the `fields` channel and **properties** through the `props` channel — ReflectorNet resolves them separately with no cross-fallback. + +## Behavior + +Loads the asset, applies the diff via `Reflector.TryModify`, and on success re-serializes and saves the asset back to disk. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-modify --input '{ + "assetPath": "string_value", + "data": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-modify --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | +| `data` | `string` | Yes | The SerializedMember diff to apply. Fields go through the 'fields' channel; properties through 'props'. RQL: SerializedMember | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "data": { + "type": "string" + } + }, + "required": [ + "assetPath", + "data" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/inputsystem-save/SKILL.md b/.opencode/skills/inputsystem-save/SKILL.md new file mode 100644 index 0000000..e685f90 --- /dev/null +++ b/.opencode/skills/inputsystem-save/SKILL.md @@ -0,0 +1,71 @@ +--- +name: inputsystem-save +description: Re-serialize a `.inputactions` InputActionAsset to disk and re-import it. Useful to force-persist an asset after external edits. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# InputSystem / Save Asset + +Persist an `InputActionAsset` to its `.inputactions` file. The mutation tools save automatically; this tool is an explicit save for cases where the on-disk JSON should be regenerated (e.g. after edits made outside these tools). + +## Inputs + +- `assetPath` — required. Path to the existing `.inputactions` asset. + +## Behavior + +Loads the asset, re-serializes it to JSON via `ToJson()`, writes the file, and re-imports it into the AssetDatabase. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool inputsystem-save --input '{ + "assetPath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool inputsystem-save --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool inputsystem-save --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | 'Assets/'-rooted path to the existing '.inputactions' asset. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/navigation-agent-add/SKILL.md b/.opencode/skills/navigation-agent-add/SKILL.md new file mode 100644 index 0000000..11d787f --- /dev/null +++ b/.opencode/skills/navigation-agent-add/SKILL.md @@ -0,0 +1,284 @@ +--- +name: navigation-agent-add +description: Add and configure a `NavMeshAgent` (from the built-in `com.unity.modules.ai`) on a GameObject — or create a new GameObject to host it. Configure agent type, speed, acceleration, angular speed, stopping distance, and the area mask. Returns the GameObject reference and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Add NavMeshAgent + +Add a `NavMeshAgent` to a GameObject so it can pathfind across a baked NavMesh. Use 'navigation-agent-set-destination' to move it. + +## Inputs + +- `gameObjectRef` — optional GameObject to add the agent to. When omitted, a new GameObject is created. +- `name` — optional name for the new GameObject (default `NavMeshAgent`); ignored when `gameObjectRef` is given. +- `agentTypeId` — optional NavMesh agent-type id (default 0 = Humanoid). +- `speed` — optional max movement speed (default 3.5). +- `acceleration` — optional max acceleration (default 8). +- `angularSpeed` — optional max turning speed in deg/s (default 120). +- `stoppingDistance` — optional stop distance from the destination (default 0). +- `areaMask` — optional traversable-area bitmask (default -1 = all areas). + +## Behavior + +Adds (or reuses) a `NavMeshAgent`, assigns the configured properties, marks the scene dirty, repaints, and returns the GameObject reference, the agent component reference, and the instanceId. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-agent-add --input '{ + "gameObjectRef": "string_value", + "name": "string_value", + "agentTypeId": 0, + "speed": 0, + "acceleration": 0, + "angularSpeed": 0, + "stoppingDistance": 0, + "areaMask": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-agent-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-agent-add --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | No | Optional GameObject to add the NavMeshAgent to. When omitted, a new GameObject is created. | +| `name` | `string` | No | Name for the new GameObject (ignored when gameObjectRef is provided). | +| `agentTypeId` | `integer` | No | NavMesh agent-type id (0 = Humanoid by default). | +| `speed` | `number` | No | Maximum movement speed. | +| `acceleration` | `number` | No | Maximum acceleration. | +| `angularSpeed` | `number` | No | Maximum turning speed in degrees per second. | +| `stoppingDistance` | `number` | No | Distance from the destination at which the agent stops. | +| `areaMask` | `integer` | No | Traversable-area bitmask (-1 = all areas). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "name": { + "type": "string" + }, + "agentTypeId": { + "type": "integer" + }, + "speed": { + "type": "number" + }, + "acceleration": { + "type": "number" + }, + "angularSpeed": { + "type": "number" + }, + "stoppingDistance": { + "type": "number" + }, + "areaMask": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentAddResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentAddResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the NavMeshAgent GameObject." + }, + "agentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshAgent component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the GameObject hosting the agent." + }, + "gameObjectName": { + "type": "string", + "description": "Name of the GameObject." + }, + "agentTypeId": { + "type": "integer", + "description": "Resolved agent-type id." + }, + "speed": { + "type": "number", + "description": "Resolved speed." + }, + "acceleration": { + "type": "number", + "description": "Resolved acceleration." + }, + "stoppingDistance": { + "type": "number", + "description": "Resolved stopping distance." + }, + "areaMask": { + "type": "integer", + "description": "Resolved area mask." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "instanceId", + "agentTypeId", + "speed", + "acceleration", + "stoppingDistance", + "areaMask", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-agent-set-destination/SKILL.md b/.opencode/skills/navigation-agent-set-destination/SKILL.md new file mode 100644 index 0000000..b3737fd --- /dev/null +++ b/.opencode/skills/navigation-agent-set-destination/SKILL.md @@ -0,0 +1,288 @@ +--- +name: navigation-agent-set-destination +description: Set the destination of a `NavMeshAgent` so it pathfinds toward a world-space point. Optionally provide a target GameObject instead of explicit coordinates. The agent must be on a baked NavMesh for a path to be computed (most relevant in play mode). +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Set Agent Destination + +Set a `NavMeshAgent`'s destination. The agent computes a path across the baked NavMesh and begins moving toward the destination (path computation/movement happens in play mode; in edit mode the destination is still assigned). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `NavMeshAgent` (required). +- `destination` — the world-space destination point. Ignored when `targetRef` is provided. +- `targetRef` — optional GameObject whose position is used as the destination. + +## Behavior + +Resolves the agent, computes the destination (from `targetRef` if given, else `destination`), and — when the agent is active and placed on a NavMesh — calls `SetDestination`. Off the NavMesh (e.g. before baking, in edit mode) it reports the intended destination without mutating, so the call is always safe. Returns `accepted` plus the agent's `hasPath` / `pathPending` state. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-agent-set-destination --input '{ + "gameObjectRef": "string_value", + "destination": "string_value", + "targetRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-agent-set-destination --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-agent-set-destination --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the NavMeshAgent component. | +| `destination` | `any` | No | World-space destination point (ignored when targetRef is provided). | +| `targetRef` | `any` | No | Optional GameObject whose position is used as the destination. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "destination": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "targetRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentSetDestinationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentSetDestinationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the NavMeshAgent GameObject." + }, + "agentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshAgent component." + }, + "destination": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "The resolved destination point." + }, + "accepted": { + "type": "boolean", + "description": "Whether SetDestination accepted the request (false if the agent is off the NavMesh)." + }, + "isOnNavMesh": { + "type": "boolean", + "description": "Whether the agent is currently on a baked NavMesh." + }, + "hasPath": { + "type": "boolean", + "description": "Whether the agent has a computed path." + }, + "pathPending": { + "type": "boolean", + "description": "Whether a path is still being computed." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "destination", + "accepted", + "isOnNavMesh", + "hasPath", + "pathPending", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-get/SKILL.md b/.opencode/skills/navigation-get/SKILL.md new file mode 100644 index 0000000..951a8ca --- /dev/null +++ b/.opencode/skills/navigation-get/SKILL.md @@ -0,0 +1,295 @@ +--- +name: navigation-get +description: "Generic read: serialize any NavMesh `Component` (NavMeshSurface / NavMeshModifier / NavMeshModifierVolume / NavMeshLink / NavMeshAgent) on a GameObject via ReflectorNet. Pair with 'navigation-modify' to write changes back. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Get Component + +Serialize any NavMesh component on a GameObject using ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one NavMesh component; otherwise the first recognized NavMesh component is used. +- `deepSerialization` — when `true`, recurses through nested objects; otherwise only top-level members. + +## Behavior + +Finds the target NavMesh component, serializes it via ReflectorNet, and returns the serialized member plus the resolved component type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the NavMesh component. | +| `componentRef` | `any` | No | Optional reference to a specific NavMesh component if the GameObject has multiple. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the serialized component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the serialized component." + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized component data." + } + }, + "required": [ + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-link-add/SKILL.md b/.opencode/skills/navigation-link-add/SKILL.md new file mode 100644 index 0000000..e4c6014 --- /dev/null +++ b/.opencode/skills/navigation-link-add/SKILL.md @@ -0,0 +1,312 @@ +--- +name: navigation-link-add +description: Add and configure a `NavMeshLink` on a GameObject. A NavMeshLink connects two points on (or off) the NavMesh — e.g. a jump-across or a doorway — so agents can traverse gaps the baked mesh does not cover. Points are local to the GameObject's transform. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Add NavMeshLink + +Add a `NavMeshLink` to a GameObject. The link bridges `startPoint` and `endPoint` (in the GameObject's local space), letting agents cross between otherwise-disconnected NavMesh regions. + +## Inputs + +- `gameObjectRef` — the GameObject to add the link to (required). +- `startPoint` — local-space start of the link (default 0,0,-2.5). +- `endPoint` — local-space end of the link (default 0,0,2.5). +- `width` — link width in meters (default 0). +- `bidirectional` — when `true`, the link is traversable both ways (default true). +- `costModifier` — cost override; negative means use the default cost (default -1). +- `area` — NavMesh area index of the link (default 2 = Jump). + +## Behavior + +Adds (or reuses) a `NavMeshLink`, assigns the configured fields (which auto-rebuild the link), marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-link-add --input '{ + "gameObjectRef": "string_value", + "startPoint": "string_value", + "endPoint": "string_value", + "width": 0, + "bidirectional": false, + "costModifier": 0, + "area": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-link-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-link-add --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject to add the NavMeshLink to. | +| `startPoint` | `any` | No | Local-space start point of the link. | +| `endPoint` | `any` | No | Local-space end point of the link. | +| `width` | `number` | No | Link width in meters. | +| `bidirectional` | `boolean` | No | If true, the link is traversable in both directions. | +| `costModifier` | `integer` | No | Cost modifier for traversing the link; negative uses the default cost. | +| `area` | `integer` | No | NavMesh area index of the link (2 = Jump by default). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "startPoint": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "endPoint": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "width": { + "type": "number" + }, + "bidirectional": { + "type": "boolean" + }, + "costModifier": { + "type": "integer" + }, + "area": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-LinkAddResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-LinkAddResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject hosting the link." + }, + "linkRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshLink component." + }, + "startPoint": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved local start point." + }, + "endPoint": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved local end point." + }, + "width": { + "type": "number", + "description": "Resolved width." + }, + "bidirectional": { + "type": "boolean", + "description": "Resolved bidirectional flag." + }, + "area": { + "type": "integer", + "description": "Resolved area index." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "startPoint", + "endPoint", + "width", + "bidirectional", + "area", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-list/SKILL.md b/.opencode/skills/navigation-list/SKILL.md new file mode 100644 index 0000000..c1ad29f --- /dev/null +++ b/.opencode/skills/navigation-list/SKILL.md @@ -0,0 +1,246 @@ +--- +name: navigation-list +description: List every `NavMeshSurface` and `NavMeshAgent` in the active scene with their key settings (agent type, baked-data presence for surfaces; speed, on-NavMesh state for agents). Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / List Surfaces and Agents + +Enumerate the NavMesh components in the active scene so you can inspect what is set up. + +## Inputs + +- `includeInactive` (bool, default true) — include components on inactive/disabled GameObjects. + +## Behavior + +Finds all `NavMeshSurface` and `NavMeshAgent` instances, reports each surface's agent-type id and whether it has baked NavMeshData, and each agent's agent-type id, speed, and whether it is currently on a NavMesh. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-list --input '{ + "includeInactive": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-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 | +|------|------|----------|-------------| +| `includeInactive` | `boolean` | No | If true (default), include components on inactive/disabled GameObjects. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeInactive": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationListResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the surface GameObject." + }, + "surfaceRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshSurface component." + }, + "name": { + "type": "string", + "description": "Name of the GameObject." + }, + "agentTypeId": { + "type": "integer", + "description": "Agent-type id this surface bakes for." + }, + "hasNavMeshData": { + "type": "boolean", + "description": "Whether the surface has baked NavMeshData." + } + }, + "required": [ + "agentTypeId", + "hasNavMeshData" + ] + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the agent GameObject." + }, + "agentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshAgent component." + }, + "name": { + "type": "string", + "description": "Name of the GameObject." + }, + "agentTypeId": { + "type": "integer", + "description": "Agent-type id of the agent." + }, + "speed": { + "type": "number", + "description": "Movement speed of the agent." + }, + "isOnNavMesh": { + "type": "boolean", + "description": "Whether the agent is currently on a baked NavMesh." + } + }, + "required": [ + "agentTypeId", + "speed", + "isOnNavMesh" + ] + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationListResponse": { + "type": "object", + "properties": { + "surfaceCount": { + "type": "integer", + "description": "Number of NavMeshSurfaces found." + }, + "agentCount": { + "type": "integer", + "description": "Number of NavMeshAgents found." + }, + "surfaces": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceListItem-1", + "description": "The NavMeshSurfaces in the active scene." + }, + "agents": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-AgentListItem-1", + "description": "The NavMeshAgents in the active scene." + } + }, + "required": [ + "surfaceCount", + "agentCount" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-modifier-add/SKILL.md b/.opencode/skills/navigation-modifier-add/SKILL.md new file mode 100644 index 0000000..c8be997 --- /dev/null +++ b/.opencode/skills/navigation-modifier-add/SKILL.md @@ -0,0 +1,255 @@ +--- +name: navigation-modifier-add +description: Add and configure a `NavMeshModifier` on a GameObject. A NavMeshModifier overrides how that object (and optionally its children) is treated during baking — its NavMesh area, whether it is ignored, and link generation. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Add NavMeshModifier + +Add a `NavMeshModifier` to a GameObject so its geometry is baked with overridden parameters. + +## Inputs + +- `gameObjectRef` — the GameObject to add the modifier to (required). +- `overrideArea` — when `true`, the object's NavMesh area is overridden with `area`. +- `area` — the NavMesh area index to assign when `overrideArea` is true (default 0 = Walkable). +- `ignoreFromBuild` — when `true`, the object is excluded from the bake entirely. +- `applyToChildren` — when `true`, the override also applies to child objects. + +## Behavior + +Adds (or reuses) a `NavMeshModifier`, assigns the configured flags, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-modifier-add --input '{ + "gameObjectRef": "string_value", + "overrideArea": false, + "area": 0, + "ignoreFromBuild": false, + "applyToChildren": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-modifier-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-modifier-add --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject to add the NavMeshModifier to. | +| `overrideArea` | `boolean` | No | If true, override the NavMesh area of this object with 'area'. | +| `area` | `integer` | No | NavMesh area index to assign when overrideArea is true (0 = Walkable). | +| `ignoreFromBuild` | `boolean` | No | If true, exclude this object from the NavMesh bake. | +| `applyToChildren` | `boolean` | No | If true, apply the override to child objects as well. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "overrideArea": { + "type": "boolean" + }, + "area": { + "type": "integer" + }, + "ignoreFromBuild": { + "type": "boolean" + }, + "applyToChildren": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-ModifierAddResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-ModifierAddResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject hosting the modifier." + }, + "modifierRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshModifier component." + }, + "overrideArea": { + "type": "boolean", + "description": "Resolved overrideArea flag." + }, + "area": { + "type": "integer", + "description": "Resolved area index." + }, + "ignoreFromBuild": { + "type": "boolean", + "description": "Resolved ignoreFromBuild flag." + }, + "applyToChildren": { + "type": "boolean", + "description": "Resolved applyToChildren flag." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "overrideArea", + "area", + "ignoreFromBuild", + "applyToChildren", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-modifier-volume-add/SKILL.md b/.opencode/skills/navigation-modifier-volume-add/SKILL.md new file mode 100644 index 0000000..339c48d --- /dev/null +++ b/.opencode/skills/navigation-modifier-volume-add/SKILL.md @@ -0,0 +1,284 @@ +--- +name: navigation-modifier-volume-add +description: Add and configure a `NavMeshModifierVolume` on a GameObject. A modifier volume marks a box-shaped region of space so that any NavMesh baked inside it is assigned a specific area (e.g. a non-walkable or higher-cost zone). +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Add NavMeshModifierVolume + +Add a `NavMeshModifierVolume` to a GameObject. Unlike a NavMeshModifier (which is tied to geometry), a volume affects whatever NavMesh is generated inside its box region. + +## Inputs + +- `gameObjectRef` — the GameObject to add the volume to (required). +- `size` — the box size of the volume (default 4,4,4). +- `center` — the box center offset (default 0,0,0). +- `area` — the NavMesh area index assigned inside the volume (default 0 = Walkable). + +## Behavior + +Adds (or reuses) a `NavMeshModifierVolume`, assigns size / center / area, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-modifier-volume-add --input '{ + "gameObjectRef": "string_value", + "size": "string_value", + "center": "string_value", + "area": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-modifier-volume-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-modifier-volume-add --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject to add the NavMeshModifierVolume to. | +| `size` | `any` | No | Box size of the volume. | +| `center` | `any` | No | Box center offset of the volume. | +| `area` | `integer` | No | NavMesh area index assigned inside the volume (0 = Walkable). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "center": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "area": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-ModifierVolumeAddResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-ModifierVolumeAddResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject hosting the volume." + }, + "volumeRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshModifierVolume component." + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved box size." + }, + "center": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved box center." + }, + "area": { + "type": "integer", + "description": "Resolved area index." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "size", + "center", + "area", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-modify/SKILL.md b/.opencode/skills/navigation-modify/SKILL.md new file mode 100644 index 0000000..e1f58ab --- /dev/null +++ b/.opencode/skills/navigation-modify/SKILL.md @@ -0,0 +1,307 @@ +--- +name: navigation-modify +description: "Generic write: apply a `SerializedMember` diff to any NavMesh `Component` on a GameObject via ReflectorNet `TryModify`. Use 'navigation-get' first to inspect the structure so the diff is targeted. Remember: fields go through the `fields` channel, properties through `props`." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Modify Component + +Modify any NavMesh component on a GameObject by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `data` — the `SerializedMember` diff to apply. Include only the members you want to change. C# fields must be supplied through the `fields` channel and properties through `props` (no cross-fallback). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one NavMesh component; otherwise the first recognized NavMesh component is used. + +## Behavior + +Finds the target NavMesh component, applies the diff via `Reflector.TryModify`, and on success marks the component + scene dirty and repaints. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-modify --input '{ + "gameObjectRef": "string_value", + "data": "string_value", + "componentRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the NavMesh component. | +| `data` | `any` | Yes | The SerializedMember diff to apply. Only include members you want to change. | +| `componentRef` | `any` | No | Optional reference to a specific NavMesh component if the GameObject has multiple. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "data" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationModifyResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-NavigationModifyResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the modified component." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications and any warnings/errors." + } + }, + "required": [ + "success", + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-set-bake-settings/SKILL.md b/.opencode/skills/navigation-set-bake-settings/SKILL.md new file mode 100644 index 0000000..5e5d552 --- /dev/null +++ b/.opencode/skills/navigation-set-bake-settings/SKILL.md @@ -0,0 +1,249 @@ +--- +name: navigation-set-bake-settings +description: Tune NavMesh bake settings. Agent radius / height / max-slope / step-height belong to a NavMesh agent type (in project NavMesh settings) and apply to every surface baking for that type. The voxel size is a per-surface override; pass `gameObjectRef` (a NavMeshSurface) with `voxelSize` to set it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Set Bake Settings + +Configure the parameters that control how a NavMesh is voxelized and baked. + +Agent radius / height / max-slope / step-height are stored on the **agent type** (id `agentTypeId`, default 0 = Humanoid) in the project's NavMesh settings, so they affect all surfaces baking for that type. The **voxel size** is a per-`NavMeshSurface` override. + +## Inputs + +- `agentTypeId` — the NavMesh agent type to edit (default 0 = Humanoid). +- `agentRadius` — optional agent radius (meters). +- `agentHeight` — optional agent height (meters). +- `maxSlope` — optional maximum walkable slope (degrees, 0–60). +- `stepHeight` — optional maximum step / climb height (meters). +- `gameObjectRef` — optional NavMeshSurface GameObject whose voxel-size override to set. +- `voxelSize` — optional voxel size for that surface (only applied when `gameObjectRef` is provided; sets `overrideVoxelSize = true`). + +## Behavior + +Edits the agent type's bake settings via the `NavMeshProjectSettings` serialized object (only the provided values change), and optionally enables and sets the surface voxel-size override. Marks dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-set-bake-settings --input '{ + "agentTypeId": 0, + "agentRadius": "string_value", + "agentHeight": "string_value", + "maxSlope": "string_value", + "stepHeight": "string_value", + "gameObjectRef": "string_value", + "voxelSize": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-set-bake-settings --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-set-bake-settings --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 | +|------|------|----------|-------------| +| `agentTypeId` | `integer` | No | NavMesh agent-type id to edit (0 = Humanoid by default). | +| `agentRadius` | `any` | No | Agent radius in meters. | +| `agentHeight` | `any` | No | Agent height in meters. | +| `maxSlope` | `any` | No | Maximum walkable slope in degrees (0-60). | +| `stepHeight` | `any` | No | Maximum step / climb height in meters. | +| `gameObjectRef` | `any` | No | Optional NavMeshSurface GameObject whose voxel-size override to set. | +| `voxelSize` | `any` | No | Voxel size for the surface (applied only when gameObjectRef is provided). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "agentTypeId": { + "type": "integer" + }, + "agentRadius": { + "$ref": "#/$defs/System.Single" + }, + "agentHeight": { + "$ref": "#/$defs/System.Single" + }, + "maxSlope": { + "$ref": "#/$defs/System.Single" + }, + "stepHeight": { + "$ref": "#/$defs/System.Single" + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "voxelSize": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "System.Single": { + "type": "number" + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SetBakeSettingsResponse" + } + }, + "$defs": { + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SetBakeSettingsResponse": { + "type": "object", + "properties": { + "agentTypeId": { + "type": "integer", + "description": "The edited agent-type id." + }, + "agentSettingsApplied": { + "type": "boolean", + "description": "Whether agent-type bake settings were applied." + }, + "agentRadius": { + "type": "number", + "description": "Resolved agent radius after the edit." + }, + "agentHeight": { + "type": "number", + "description": "Resolved agent height after the edit." + }, + "maxSlope": { + "type": "number", + "description": "Resolved maximum slope after the edit." + }, + "stepHeight": { + "type": "number", + "description": "Resolved step / climb height after the edit." + }, + "surfaceRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the surface whose voxel size was set, if any." + }, + "voxelSizeApplied": { + "type": "boolean", + "description": "Whether the surface voxel size override was applied." + }, + "voxelSize": { + "type": "number", + "description": "Resolved voxel size for the surface, if set." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "agentTypeId", + "agentSettingsApplied", + "agentRadius", + "agentHeight", + "maxSlope", + "stepHeight", + "voxelSizeApplied", + "voxelSize", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-surface-add/SKILL.md b/.opencode/skills/navigation-surface-add/SKILL.md new file mode 100644 index 0000000..0723689 --- /dev/null +++ b/.opencode/skills/navigation-surface-add/SKILL.md @@ -0,0 +1,294 @@ +--- +name: navigation-surface-add +description: Add and configure a `NavMeshSurface` component (from `com.unity.ai.navigation`) on a GameObject — or create a new GameObject to host it. Configure agent type, geometry-collection mode, layer mask, default area, and the box volume (size/center). Returns the GameObject reference and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Add NavMeshSurface + +Add a `NavMeshSurface` to a GameObject. A NavMeshSurface defines a region of the scene that is baked into a runtime NavMesh that agents can traverse. Use 'navigation-set-bake-settings' to tune the agent radius/height/slope/step and voxel size, then 'navigation-surface-bake' to bake. + +## Inputs + +- `gameObjectRef` — optional GameObject to add the surface to. When omitted, a new GameObject is created. +- `name` — optional name for the new GameObject (default `NavMesh Surface`); ignored when `gameObjectRef` is given. +- `agentTypeId` — optional NavMesh agent-type id this surface bakes for (default 0 = Humanoid). +- `collectObjects` — optional geometry collection mode: `0` All, `1` Volume, `2` Children (default 0 All). +- `defaultArea` — optional default NavMesh area index applied to collected geometry (default 0 = Walkable). +- `layerMask` — optional include-layers bitmask for geometry collection (default -1 = Everything). +- `size` — optional box volume size (only used when `collectObjects` = Volume). +- `center` — optional box volume center offset. + +## Behavior + +Adds (or reuses) a `NavMeshSurface`, assigns the configured properties, marks the scene dirty, repaints, and returns the GameObject reference, the surface component reference, and the instanceId. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-surface-add --input '{ + "gameObjectRef": "string_value", + "name": "string_value", + "agentTypeId": 0, + "collectObjects": 0, + "defaultArea": 0, + "layerMask": 0, + "size": "string_value", + "center": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-surface-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-surface-add --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | No | Optional GameObject to add the NavMeshSurface to. When omitted, a new GameObject is created. | +| `name` | `string` | No | Name for the new GameObject (ignored when gameObjectRef is provided). | +| `agentTypeId` | `integer` | No | NavMesh agent-type id this surface bakes for (0 = Humanoid by default). | +| `collectObjects` | `integer` | No | Geometry collection mode: 0 = All, 1 = Volume, 2 = Children. | +| `defaultArea` | `integer` | No | Default NavMesh area index applied to collected geometry (0 = Walkable). | +| `layerMask` | `integer` | No | Include-layers bitmask for geometry collection (-1 = Everything). | +| `size` | `any` | No | Box volume size (used only when collectObjects = Volume). | +| `center` | `any` | No | Box volume center offset. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "name": { + "type": "string" + }, + "agentTypeId": { + "type": "integer" + }, + "collectObjects": { + "type": "integer" + }, + "defaultArea": { + "type": "integer" + }, + "layerMask": { + "type": "integer" + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "center": { + "$ref": "#/$defs/UnityEngine.Vector3" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceAddResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceAddResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the NavMeshSurface GameObject." + }, + "surfaceRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshSurface component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the GameObject hosting the surface." + }, + "gameObjectName": { + "type": "string", + "description": "Name of the GameObject." + }, + "agentTypeId": { + "type": "integer", + "description": "Resolved agent-type id." + }, + "collectObjects": { + "type": "integer", + "description": "Resolved geometry collection mode." + }, + "defaultArea": { + "type": "integer", + "description": "Resolved default area index." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "instanceId", + "agentTypeId", + "collectObjects", + "defaultArea", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/navigation-surface-bake/SKILL.md b/.opencode/skills/navigation-surface-bake/SKILL.md new file mode 100644 index 0000000..286a40f --- /dev/null +++ b/.opencode/skills/navigation-surface-bake/SKILL.md @@ -0,0 +1,227 @@ +--- +name: navigation-surface-bake +description: Bake (build) the NavMesh for a `NavMeshSurface`, or clear its existing baked data. Pass `clear = true` to remove the baked NavMeshData instead of building it. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Navigation / Bake or Clear NavMeshSurface + +Build or clear the runtime NavMesh for a `NavMeshSurface`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `NavMeshSurface` (required). +- `clear` — when `true`, removes the surface's baked NavMeshData (`RemoveData`) instead of baking. Default `false` (bake via `BuildNavMesh`). + +## Behavior + +When baking, collects the surface's geometry sources and builds the NavMeshData, then marks the surface dirty so the result is saved. When clearing, removes the active NavMeshData from the surface. Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool navigation-surface-bake --input '{ + "gameObjectRef": "string_value", + "clear": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool navigation-surface-bake --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool navigation-surface-bake --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the NavMeshSurface component. | +| `clear` | `boolean` | No | If true, clears the baked NavMeshData instead of baking it. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "clear": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceBakeResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Navigation-SurfaceBakeResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the NavMeshSurface GameObject." + }, + "surfaceRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the NavMeshSurface component." + }, + "cleared": { + "type": "boolean", + "description": "Whether the surface was cleared (true) or baked (false)." + }, + "hasNavMeshData": { + "type": "boolean", + "description": "Whether the surface has baked NavMeshData after the operation." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "cleared", + "hasNavMeshData", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/object-get-data/SKILL.md b/.opencode/skills/object-get-data/SKILL.md new file mode 100644 index 0000000..f5cd134 --- /dev/null +++ b/.opencode/skills/object-get-data/SKILL.md @@ -0,0 +1,188 @@ +--- +name: object-get-data +description: Get serialized data for a Unity `UnityEngine.Object` — all serializable fields and properties. Supports token-saving path-scoped reads via `paths` or `viewQuery`. Pair with 'object-modify' when you need to write back. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Object / Get Data + +Get data of the specified Unity Object. Returns serialized data of the object including its properties and fields. If need to modify the data use 'object-modify' tool. + +## Path-scoped reads (token-saving) + +Supply `paths` (a list of paths) to read only the listed fields/elements via `Reflector.TryReadAt`, or `viewQuery` (a `ViewQuery`) to navigate to a subtree and/or filter by name regex / max depth / type via `Reflector.View`. These two parameters are mutually exclusive — supply at most one. When neither is supplied the full object is serialized (backwards compatible). + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool object-get-data --input '{ + "objectRef": "string_value", + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool object-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool object-get-data --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 | +|------|------|----------|-------------| +| `objectRef` | `any` | Yes | Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object. | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt. Each path may target a different depth. Path syntax: 'fieldName', 'nested/field', 'arrayField/[i]', 'dictField/[key]'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View — combines a starting Path, a case-insensitive NamePattern regex, MaxDepth, and an optional TypeFilter. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "objectRef": { + "$ref": "#/$defs/AIGD.ObjectRef" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "System.Type": { + "type": "string" + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + }, + "required": [ + "objectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "$defs": { + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/object-modify/SKILL.md b/.opencode/skills/object-modify/SKILL.md new file mode 100644 index 0000000..728f5c0 --- /dev/null +++ b/.opencode/skills/object-modify/SKILL.md @@ -0,0 +1,287 @@ +--- +name: object-modify +description: Modify a Unity `UnityEngine.Object`'s serializable fields/properties. Three modification surfaces are available (`objectDiff`, `pathPatches`, `jsonPatch`) — see the skill body. Use 'object-get-data' first to inspect the object structure. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Object / Modify + +Modify the specified Unity Object. Allows direct modification of object fields and properties. Use 'object-get-data' first to inspect the object structure before modifying. + +## Three modification surfaces + +Use whichever fits the task: + +1. `objectDiff` — full `SerializedMember` diff (legacy, backwards compatible). +2. `pathPatches` — list of `{path, value}` pairs routed through `Reflector.TryModifyAt`; atomic per-path modification, multiple entries can target different depths. +3. `jsonPatch` — a JSON Merge Patch (RFC 7396, extended with `[i]`/`[key]` notation) routed through `Reflector.TryPatch`; multiple fields at any depth in a single call. + +When more than one is supplied they run in this order: `jsonPatch` → `pathPatches` → `objectDiff`. At least one is required. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. + +## How to Call + +```bash +unity-mcp-cli run-tool object-modify --input '{ + "objectRef": "string_value", + "objectDiff": "string_value", + "pathPatches": "string_value", + "jsonPatch": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool object-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool object-modify --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 | +|------|------|----------|-------------| +| `objectRef` | `any` | Yes | Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object. | +| `objectDiff` | `any` | No | Optional. The full object data to apply (legacy path). Should contain 'fields' and/or 'props' with the values to modify. +Only include the fields/properties you want to change. +Any unknown or invalid fields and properties will be reported in the response. | +| `pathPatches` | `any` | No | Optional. List of path-scoped patches routed through Reflector.TryModifyAt. | +| `jsonPatch` | `any` | No | Optional. JSON Merge Patch (RFC 7396, extended with [i]/[key] keys) routed through Reflector.TryPatch. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "objectRef": { + "$ref": "#/$defs/AIGD.ObjectRef" + }, + "objectDiff": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "pathPatches": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.PathPatch)" + }, + "jsonPatch": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": true + } + ] + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.PathPatch": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Slash-delimited path to the target field/element/entry. Plain segment navigates a field or property (e.g. 'admin' or 'admin/name'). Use '[i]' for array/list index (e.g. 'planets/[0]/orbitRadius'). Use '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Required." + }, + "Value": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "The new value to write at the path. Use the standard SerializedMember envelope: 'typeName' + 'value' for primitives, or nested 'fields'/'props' for complex types. Required — omitting it overwrites the target with a default empty SerializedMember." + } + } + }, + "System.Collections.Generic.List(AIGD.PathPatch)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.PathPatch" + } + } + }, + "required": [ + "objectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.ModifyObjectResponse" + } + }, + "$defs": { + "AIGD.ObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object instance. It could be GameObject, Component, Asset, etc. Anything extended from UnityEngine.Object." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "AIGD.ModifyObjectResponse": { + "type": "object", + "properties": { + "Success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "Reference": { + "$ref": "#/$defs/AIGD.ObjectRef", + "description": "Reference to the modified object." + }, + "Data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Updated object data after modification." + }, + "Logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications made and any warnings/errors encountered." + } + }, + "required": [ + "Success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/package-add/SKILL.md b/.opencode/skills/package-add/SKILL.md new file mode 100644 index 0000000..c889a8a --- /dev/null +++ b/.opencode/skills/package-add/SKILL.md @@ -0,0 +1,75 @@ +--- +name: package-add +description: Install a Unity package from the registry, a Git URL, or a local path. Modifies `manifest.json` and triggers package resolution; may also trigger a domain reload — the final result is delivered after the reload via the request's `requestId`. Use 'package-search' / 'package-list' for discovery first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Package Manager / Add + +Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages. + +## `packageId` formats + +- Plain package ID: `com.unity.textmeshpro` (installs latest compatible version). +- Pinned version: `com.unity.textmeshpro@3.0.6`. +- Git URL: `https://github.com/user/repo.git`. +- Git URL with branch/tag: `https://github.com/user/repo.git#v1.0.0`. +- Local path: `file:../MyPackage`. + +## Processing model + +Returns `Processing` immediately with the supplied `requestId`. Once `Client.Add` completes, a follow-up result is delivered: success → `SchedulePostDomainReloadNotification` (delivers after the reload finishes), failure → an immediate error notification with the underlying Unity error message. + +## How to Call + +```bash +unity-mcp-cli run-tool package-add --input '{ + "packageId": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool package-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool package-add --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 | +|------|------|----------|-------------| +| `packageId` | `string` | Yes | The package ID to install. Formats: Package ID 'com.unity.textmeshpro' (installs latest compatible version), Package ID with version 'com.unity.textmeshpro@3.0.6', Git URL 'https://github.com/user/repo.git', Git URL with branch/tag 'https://github.com/user/repo.git#v1.0.0', Local path 'file:../MyPackage'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "packageId": { + "type": "string" + } + }, + "required": [ + "packageId" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/package-list/SKILL.md b/.opencode/skills/package-list/SKILL.md new file mode 100644 index 0000000..df762fc --- /dev/null +++ b/.opencode/skills/package-list/SKILL.md @@ -0,0 +1,85 @@ +--- +name: package-list +description: List all UPM packages installed in the Unity project — name, version, source, description. Optionally filter by source (registry, embedded, local, git, built-in, local tarball), by name/display/description substring, and by direct-dependency-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Package Manager / List Installed + +List all packages installed in the Unity project (UPM packages). Returns information about each installed package including name, version, source, and description. Use this to check which packages are currently installed before adding or removing packages. + +## Inputs + +- `sourceFilter` (default `All`) — restrict by Unity `PackageSource`: `All`, `Registry`, `Embedded`, `Local`, `Git`, `BuiltIn`, `LocalTarball`. +- `nameFilter` (optional) — case-insensitive substring filter over name / displayName / description. Results are prioritized: exact name → exact displayName → name substring → displayName substring → description substring. +- `directDependenciesOnly` (default `false`) — when true, return only packages listed in `manifest.json` (no transitive dependencies). + +## How to Call + +```bash +unity-mcp-cli run-tool package-list --input '{ + "sourceFilter": "string_value", + "nameFilter": "string_value", + "directDependenciesOnly": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool package-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool package-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 | +|------|------|----------|-------------| +| `sourceFilter` | `string` | No | Filter packages by source. | +| `nameFilter` | `string` | No | Filter packages by name, display name, or description (case-insensitive). Results are prioritized: exact name match, exact display name match, name substring, display name substring, description substring. | +| `directDependenciesOnly` | `boolean` | No | Include only direct dependencies (packages in manifest.json). If false, includes all resolved packages. Default: false | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sourceFilter": { + "type": "string", + "enum": [ + "All", + "Registry", + "Embedded", + "Local", + "Git", + "BuiltIn", + "LocalTarball" + ] + }, + "nameFilter": { + "type": "string" + }, + "directDependenciesOnly": { + "type": "boolean" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/package-remove/SKILL.md b/.opencode/skills/package-remove/SKILL.md new file mode 100644 index 0000000..65faa3a --- /dev/null +++ b/.opencode/skills/package-remove/SKILL.md @@ -0,0 +1,71 @@ +--- +name: package-remove +description: Uninstall a UPM package from the Unity project. Modifies `manifest.json` and may trigger a domain reload — the final result is delivered after the reload via the request's `requestId`. Built-in packages and packages that are dependencies of others cannot be removed. Use 'package-list' to list installed packages first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Package Manager / Remove + +Remove (uninstall) a package from the Unity project. This removes the package from the project's manifest.json and triggers package resolution. Note: Built-in packages and packages that are dependencies of other installed packages cannot be removed. Note: Package removal may trigger a domain reload. The result will be sent after the reload completes. Use 'package-list' tool to list installed packages first. + +## Inputs + +- `packageId` — package name (e.g. `com.unity.textmeshpro`). A trailing `@` is stripped automatically before being passed to `Client.Remove`, so accidental versioned IDs still work. + +## Behavior + +First verifies the package is installed via an offline `Client.List` — returns a clear `PackageNotFound` error if not. On removal failure, surfaces Unity's error message. On success, schedules a post-domain-reload notification so the response is delivered after Unity finishes the resolution. + +## How to Call + +```bash +unity-mcp-cli run-tool package-remove --input '{ + "packageId": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool package-remove --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool package-remove --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 | +|------|------|----------|-------------| +| `packageId` | `string` | Yes | The ID of the package to remove. Example: 'com.unity.textmeshpro'. Do not include version number. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "packageId": { + "type": "string" + } + }, + "required": [ + "packageId" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/package-search/SKILL.md b/.opencode/skills/package-search/SKILL.md new file mode 100644 index 0000000..70d506a --- /dev/null +++ b/.opencode/skills/package-search/SKILL.md @@ -0,0 +1,83 @@ +--- +name: package-search +description: Search Unity's package registry plus locally installed packages (Git, local, embedded sources) by query string. Returns available versions and installation status. Online mode fetches exact matches from the live registry then supplements with cached substring matches. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Package Manager / Search + +Search for packages in both Unity Package Manager registry and installed packages. Use this to find packages by name before installing them. Returns available versions and installation status. Searches both the Unity registry and locally installed packages (including Git, local, and embedded sources). Results are prioritized: exact name match, exact display name match, name substring, display name substring, description substring. Note: Online mode fetches exact matches from live registry, then supplements with cached substring matches. + +## Inputs + +- `query` — package id, name, display name, or description keyword (case-insensitive). Required. +- `maxResults` (default 10) — caps the returned list. +- `offlineMode` (default `true`) — when `false`, hits the live registry for exact matches; cached registry data still backs the substring matches in both modes. + +## Result composition + +Each entry includes name, display name, latest version, truncated description, install status, installed version (if any), and the top-5 compatible versions. + +## How to Call + +```bash +unity-mcp-cli run-tool package-search --input '{ + "query": "string_value", + "maxResults": 0, + "offlineMode": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool package-search --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool package-search --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 | +|------|------|----------|-------------| +| `query` | `string` | Yes | The package id, name, or description. Can be: Full package id 'com.unity.textmeshpro', Full package name 'TextMesh Pro', Partial name 'TextMesh' (will search in Unity registry and installed packages), Description keyword 'rendering' (searches in package descriptions). | +| `maxResults` | `integer` | No | Maximum number of results to return. Default: 10 | +| `offlineMode` | `boolean` | No | Whether to perform the search in offline mode (uses cached registry data only). Default: true. Set to false to fetch latest exact matches from Unity registry. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "query": { + "type": "string" + }, + "maxResults": { + "type": "integer" + }, + "offlineMode": { + "type": "boolean" + } + }, + "required": [ + "query" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/particle-system-get/SKILL.md b/.opencode/skills/particle-system-get/SKILL.md new file mode 100644 index 0000000..15ca66e --- /dev/null +++ b/.opencode/skills/particle-system-get/SKILL.md @@ -0,0 +1,542 @@ +--- +name: particle-system-get +description: Inspect a `UnityEngine.ParticleSystem` component on a GameObject — runtime state (playing/paused/emitting/stopped, particle count, time) plus opt-in serialized data for any of the ~24 particle modules (Main, Emission, Shape, Velocity, Noise, Collision, Trails, Renderer, etc.). Pair with 'particle-system-modify' to write changes back. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# ParticleSystem / Get + +Inspect a `UnityEngine.ParticleSystem` component on a GameObject. Returns runtime state (`isPlaying`, `isPaused`, `isEmitting`, `isStopped`, `particleCount`, `time`) plus opt-in serialized data for any of the particle modules. Use 'particle-system-modify' afterwards to write changes back. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ParticleSystem` component (required). +- `componentRef` — optional. Resolves a specific `ParticleSystem` when the GameObject has more than one; otherwise the first `ParticleSystem` found is used. +- `includeMain`, `includeEmission`, `includeShape`, `includeVelocityOverLifetime`, `includeLimitVelocityOverLifetime`, `includeInheritVelocity`, `includeLifetimeByEmitterSpeed`, `includeForceOverLifetime`, `includeColorOverLifetime`, `includeColorBySpeed`, `includeSizeOverLifetime`, `includeSizeBySpeed`, `includeRotationOverLifetime`, `includeRotationBySpeed`, `includeExternalForces`, `includeNoise`, `includeCollision`, `includeTrigger`, `includeSubEmitters`, `includeTextureSheetAnimation`, `includeLights`, `includeTrails`, `includeCustomData`, `includeRenderer` — per-module toggles. `includeMain` defaults to `true`; everything else defaults to `false`. +- `includeAll` — when `true`, overrides every per-module flag and emits all modules. +- `deepSerialization` — when `true`, recurses through nested objects via ReflectorNet; otherwise only top-level members are serialized (cheaper, smaller payload). + +## Behavior + +Only the modules whose include-flags resolve to `true` are serialized — this keeps responses small when you only need one or two modules. `includeRenderer` reads the sibling `UnityEngine.ParticleSystemRenderer` component on the same GameObject and is skipped silently when no renderer is present. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool particle-system-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "includeMain": false, + "includeEmission": false, + "includeShape": false, + "includeVelocityOverLifetime": false, + "includeLimitVelocityOverLifetime": false, + "includeInheritVelocity": false, + "includeLifetimeByEmitterSpeed": false, + "includeForceOverLifetime": false, + "includeColorOverLifetime": false, + "includeColorBySpeed": false, + "includeSizeOverLifetime": false, + "includeSizeBySpeed": false, + "includeRotationOverLifetime": false, + "includeRotationBySpeed": false, + "includeExternalForces": false, + "includeNoise": false, + "includeCollision": false, + "includeTrigger": false, + "includeSubEmitters": false, + "includeTextureSheetAnimation": false, + "includeLights": false, + "includeTrails": false, + "includeCustomData": false, + "includeRenderer": false, + "includeAll": false, + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool particle-system-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool particle-system-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the ParticleSystem component. | +| `componentRef` | `any` | No | Optional reference to a specific ParticleSystem component if the GameObject has multiple. If not provided, uses the first ParticleSystem found. | +| `includeMain` | `boolean` | No | Include Main module data (duration, looping, prewarm, startDelay, startLifetime, startSpeed, startSize, startRotation, startColor, gravityModifier, simulationSpace, scalingMode, playOnAwake, maxParticles, etc.). | +| `includeEmission` | `boolean` | No | Include Emission module data (rateOverTime, rateOverDistance, bursts). | +| `includeShape` | `boolean` | No | Include Shape module data (shapeType, radius, angle, arc, position, rotation, scale, mesh, texture, etc.). | +| `includeVelocityOverLifetime` | `boolean` | No | Include Velocity over Lifetime module data (x, y, z, space, orbital, radial, speedModifier). | +| `includeLimitVelocityOverLifetime` | `boolean` | No | Include Limit Velocity over Lifetime module data (limit, dampen, separateAxes, drag). | +| `includeInheritVelocity` | `boolean` | No | Include Inherit Velocity module data (mode, curve). | +| `includeLifetimeByEmitterSpeed` | `boolean` | No | Include Lifetime by Emitter Speed module data (curve, range). | +| `includeForceOverLifetime` | `boolean` | No | Include Force over Lifetime module data (x, y, z, space, randomized). | +| `includeColorOverLifetime` | `boolean` | No | Include Color over Lifetime module data (color gradient). | +| `includeColorBySpeed` | `boolean` | No | Include Color by Speed module data (color, range). | +| `includeSizeOverLifetime` | `boolean` | No | Include Size over Lifetime module data (size curve, separateAxes). | +| `includeSizeBySpeed` | `boolean` | No | Include Size by Speed module data (size, range). | +| `includeRotationOverLifetime` | `boolean` | No | Include Rotation over Lifetime module data (angular velocity, separateAxes). | +| `includeRotationBySpeed` | `boolean` | No | Include Rotation by Speed module data (angular velocity, range). | +| `includeExternalForces` | `boolean` | No | Include External Forces module data (multiplier, influenceFilter). | +| `includeNoise` | `boolean` | No | Include Noise module data (strength, frequency, scrollSpeed, damping, octaves, quality, remap). | +| `includeCollision` | `boolean` | No | Include Collision module data (type, mode, planes, dampen, bounce, lifetimeLoss). | +| `includeTrigger` | `boolean` | No | Include Trigger module data (inside, outside, enter, exit actions). | +| `includeSubEmitters` | `boolean` | No | Include Sub Emitters module data (birth, collision, death, trigger, manual emitters). | +| `includeTextureSheetAnimation` | `boolean` | No | Include Texture Sheet Animation module data (mode, tiles, animation, frameOverTime). | +| `includeLights` | `boolean` | No | Include Lights module data (ratio, light, color, range, intensity). | +| `includeTrails` | `boolean` | No | Include Trails module data (mode, ratio, lifetime, width, color). | +| `includeCustomData` | `boolean` | No | Include Custom Data module data (modes, vectors, colors). | +| `includeRenderer` | `boolean` | No | Include Renderer module data (renderMode, material, sortMode, alignment, shadows). | +| `includeAll` | `boolean` | No | Include ALL modules data. Overrides individual flags. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including all nested objects. Otherwise, only serializes top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "includeMain": { + "type": "boolean" + }, + "includeEmission": { + "type": "boolean" + }, + "includeShape": { + "type": "boolean" + }, + "includeVelocityOverLifetime": { + "type": "boolean" + }, + "includeLimitVelocityOverLifetime": { + "type": "boolean" + }, + "includeInheritVelocity": { + "type": "boolean" + }, + "includeLifetimeByEmitterSpeed": { + "type": "boolean" + }, + "includeForceOverLifetime": { + "type": "boolean" + }, + "includeColorOverLifetime": { + "type": "boolean" + }, + "includeColorBySpeed": { + "type": "boolean" + }, + "includeSizeOverLifetime": { + "type": "boolean" + }, + "includeSizeBySpeed": { + "type": "boolean" + }, + "includeRotationOverLifetime": { + "type": "boolean" + }, + "includeRotationBySpeed": { + "type": "boolean" + }, + "includeExternalForces": { + "type": "boolean" + }, + "includeNoise": { + "type": "boolean" + }, + "includeCollision": { + "type": "boolean" + }, + "includeTrigger": { + "type": "boolean" + }, + "includeSubEmitters": { + "type": "boolean" + }, + "includeTextureSheetAnimation": { + "type": "boolean" + }, + "includeLights": { + "type": "boolean" + }, + "includeTrails": { + "type": "boolean" + }, + "includeCustomData": { + "type": "boolean" + }, + "includeRenderer": { + "type": "boolean" + }, + "includeAll": { + "type": "boolean" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.ParticleSystem.Editor.GetParticleSystemResponse", + "description": "Response containing ParticleSystem data with requested modules." + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.ParticleSystem.Editor.GetParticleSystemResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the ParticleSystem component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the ParticleSystem component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the ParticleSystem component in the GameObject's component list." + }, + "isPlaying": { + "type": "boolean", + "description": "Whether the ParticleSystem is currently playing." + }, + "isPaused": { + "type": "boolean", + "description": "Whether the ParticleSystem is currently paused." + }, + "isEmitting": { + "type": "boolean", + "description": "Whether the ParticleSystem is currently emitting." + }, + "isStopped": { + "type": "boolean", + "description": "Whether the ParticleSystem is currently stopped." + }, + "particleCount": { + "type": "integer", + "description": "Current particle count." + }, + "time": { + "type": "number", + "description": "Current simulation time." + }, + "main": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Main module data." + }, + "emission": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Emission module data." + }, + "shape": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Shape module data." + }, + "velocityOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Velocity over Lifetime module data." + }, + "limitVelocityOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Limit Velocity over Lifetime module data." + }, + "inheritVelocity": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Inherit Velocity module data." + }, + "lifetimeByEmitterSpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Lifetime by Emitter Speed module data." + }, + "forceOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Force over Lifetime module data." + }, + "colorOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Color over Lifetime module data." + }, + "colorBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Color by Speed module data." + }, + "sizeOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Size over Lifetime module data." + }, + "sizeBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Size by Speed module data." + }, + "rotationOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Rotation over Lifetime module data." + }, + "rotationBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Rotation by Speed module data." + }, + "externalForces": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "External Forces module data." + }, + "noise": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Noise module data." + }, + "collision": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Collision module data." + }, + "trigger": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Trigger module data." + }, + "subEmitters": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Sub Emitters module data." + }, + "textureSheetAnimation": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Texture Sheet Animation module data." + }, + "lights": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Lights module data." + }, + "trails": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Trails module data." + }, + "customData": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Custom Data module data." + }, + "renderer": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Renderer module data." + } + }, + "required": [ + "componentIndex", + "isPlaying", + "isPaused", + "isEmitting", + "isStopped", + "particleCount", + "time" + ], + "description": "Response containing ParticleSystem data with requested modules." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/particle-system-modify/SKILL.md b/.opencode/skills/particle-system-modify/SKILL.md new file mode 100644 index 0000000..3185158 --- /dev/null +++ b/.opencode/skills/particle-system-modify/SKILL.md @@ -0,0 +1,419 @@ +--- +name: particle-system-modify +description: Modify a `UnityEngine.ParticleSystem` component on a GameObject. Pass `SerializedMember` payloads only for the modules you want to change; everything else is left alone. Use 'particle-system-get' first to inspect the current structure. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# ParticleSystem / Modify + +Modify a `UnityEngine.ParticleSystem` component on a GameObject. Pass `SerializedMember` payloads only for the modules you want to change; omitted modules are left untouched. Use 'particle-system-get' first to inspect the current structure so the diff is targeted. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ParticleSystem` component (required). +- `componentRef` — optional. Resolves a specific `ParticleSystem` when the GameObject has more than one; otherwise the first `ParticleSystem` found is used. +- `main`, `emission`, `shape`, `velocityOverLifetime`, `limitVelocityOverLifetime`, `inheritVelocity`, `lifetimeByEmitterSpeed`, `forceOverLifetime`, `colorOverLifetime`, `colorBySpeed`, `sizeOverLifetime`, `sizeBySpeed`, `rotationOverLifetime`, `rotationBySpeed`, `externalForces`, `noise`, `collision`, `trigger`, `subEmitters`, `textureSheetAnimation`, `lights`, `trails`, `customData`, `renderer` — optional `SerializedMember` payloads per module. Include only the properties you want to change. + +## Behavior + +Each non-null module is applied via `Reflector.TryModify` and logged with a `[ModuleName]` prefix in the response's `logs` array. The `renderer` payload targets the sibling `UnityEngine.ParticleSystemRenderer` component on the same GameObject; if absent, the call logs the miss instead of throwing. When at least one module was modified, the GameObject and the `ParticleSystem` are marked dirty so the change persists. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool particle-system-modify --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "main": "string_value", + "emission": "string_value", + "shape": "string_value", + "velocityOverLifetime": "string_value", + "limitVelocityOverLifetime": "string_value", + "inheritVelocity": "string_value", + "lifetimeByEmitterSpeed": "string_value", + "forceOverLifetime": "string_value", + "colorOverLifetime": "string_value", + "colorBySpeed": "string_value", + "sizeOverLifetime": "string_value", + "sizeBySpeed": "string_value", + "rotationOverLifetime": "string_value", + "rotationBySpeed": "string_value", + "externalForces": "string_value", + "noise": "string_value", + "collision": "string_value", + "trigger": "string_value", + "subEmitters": "string_value", + "textureSheetAnimation": "string_value", + "lights": "string_value", + "trails": "string_value", + "customData": "string_value", + "renderer": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool particle-system-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool particle-system-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the ParticleSystem component. | +| `componentRef` | `any` | No | Optional reference to a specific ParticleSystem component if the GameObject has multiple. If not provided, uses the first ParticleSystem found. | +| `main` | `any` | No | Main module data to apply. Only include properties you want to change. | +| `emission` | `any` | No | Emission module data to apply. Only include properties you want to change. | +| `shape` | `any` | No | Shape module data to apply. Only include properties you want to change. | +| `velocityOverLifetime` | `any` | No | Velocity over Lifetime module data to apply. Only include properties you want to change. | +| `limitVelocityOverLifetime` | `any` | No | Limit Velocity over Lifetime module data to apply. Only include properties you want to change. | +| `inheritVelocity` | `any` | No | Inherit Velocity module data to apply. Only include properties you want to change. | +| `lifetimeByEmitterSpeed` | `any` | No | Lifetime by Emitter Speed module data to apply. Only include properties you want to change. | +| `forceOverLifetime` | `any` | No | Force over Lifetime module data to apply. Only include properties you want to change. | +| `colorOverLifetime` | `any` | No | Color over Lifetime module data to apply. Only include properties you want to change. | +| `colorBySpeed` | `any` | No | Color by Speed module data to apply. Only include properties you want to change. | +| `sizeOverLifetime` | `any` | No | Size over Lifetime module data to apply. Only include properties you want to change. | +| `sizeBySpeed` | `any` | No | Size by Speed module data to apply. Only include properties you want to change. | +| `rotationOverLifetime` | `any` | No | Rotation over Lifetime module data to apply. Only include properties you want to change. | +| `rotationBySpeed` | `any` | No | Rotation by Speed module data to apply. Only include properties you want to change. | +| `externalForces` | `any` | No | External Forces module data to apply. Only include properties you want to change. | +| `noise` | `any` | No | Noise module data to apply. Only include properties you want to change. | +| `collision` | `any` | No | Collision module data to apply. Only include properties you want to change. | +| `trigger` | `any` | No | Trigger module data to apply. Only include properties you want to change. | +| `subEmitters` | `any` | No | Sub Emitters module data to apply. Only include properties you want to change. | +| `textureSheetAnimation` | `any` | No | Texture Sheet Animation module data to apply. Only include properties you want to change. | +| `lights` | `any` | No | Lights module data to apply. Only include properties you want to change. | +| `trails` | `any` | No | Trails module data to apply. Only include properties you want to change. | +| `customData` | `any` | No | Custom Data module data to apply. Only include properties you want to change. | +| `renderer` | `any` | No | Renderer module data to apply. Only include properties you want to change. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "main": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "emission": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "shape": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "velocityOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "limitVelocityOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "inheritVelocity": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "lifetimeByEmitterSpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "forceOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "colorOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "colorBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "sizeOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "sizeBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "rotationOverLifetime": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "rotationBySpeed": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "externalForces": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "noise": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "collision": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "trigger": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "subEmitters": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "textureSheetAnimation": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "lights": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "trails": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "customData": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "renderer": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.ParticleSystem.Editor.ModifyParticleSystemResponse", + "description": "Response containing the result of modifying a ParticleSystem." + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.ParticleSystem.Editor.ModifyParticleSystemResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the ParticleSystem component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified ParticleSystem component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the ParticleSystem component in the GameObject's component list." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications made and any warnings/errors encountered." + } + }, + "required": [ + "success", + "componentIndex" + ], + "description": "Response containing the result of modifying a ParticleSystem." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/ping/SKILL.md b/.opencode/skills/ping/SKILL.md new file mode 100644 index 0000000..250f6c6 --- /dev/null +++ b/.opencode/skills/ping/SKILL.md @@ -0,0 +1,82 @@ +--- +name: ping +description: Lightweight readiness probe. Returns the input `message` echoed back, or `'pong'` when omitted. Useful for CLI health checks and SignalR connectivity smoke tests. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Ping + +Lightweight readiness probe. Returns the input message or 'pong' if omitted. + +## Inputs + +- `message` (optional) — when present, echoed back verbatim. + +## Behavior + +No I/O, no Unity API calls — pure echo. Ideal for measuring round-trip latency or confirming the MCP transport is alive before invoking a heavier tool. + +## How to Call + +```bash +unity-mcp-cli run-system-tool ping --input '{ + "message": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-system-tool ping --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-system-tool ping --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 | +|------|------|----------|-------------| +| `message` | `string` | No | Optional message to echo back. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "message": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/probuilder-bevel/SKILL.md b/.opencode/skills/probuilder-bevel/SKILL.md new file mode 100644 index 0000000..e2aea47 --- /dev/null +++ b/.opencode/skills/probuilder-bevel/SKILL.md @@ -0,0 +1,90 @@ +--- +name: probuilder-bevel +description: Bevel (chamfer) selected edges of a `ProBuilderMesh`, replacing each sharp edge with an angled face. Identify edges by their `[vertexA, vertexB]` index pairs — use 'probuilder-get-mesh-info' to discover them. `amount` is clamped to (0, 1). +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Bevel ProBuilder edges + +Bevel (chamfer) selected edges of a `ProBuilderMesh`, replacing each sharp edge with an angled face for a smoother appearance. Use 'probuilder-get-mesh-info' first to discover edges by their vertex pairs. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `edges` — array of edge definitions; each edge is `[vertexA, vertexB]`. Example: `[[0,1], [2,3]]` bevels two edges. +- `amount` — bevel strength in the range (0, 1). `0.001` is barely visible, `0.999` reaches face center. Recommended `0.05`–`0.2`. Internally clamped. + +## Behavior + +Vertex indices are validated against `vertexCount`. After `BevelEdges` runs, the mesh is rebuilt (`ToMesh` → `Refresh`), the `ProBuilderMesh` and GameObject are marked dirty, and Editor windows repaint. Returns the number of edges processed, the clamped amount, and post-op face/vertex/edge counts. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-bevel --input '{ + "gameObjectRef": "string_value", + "edges": [], + "amount": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-bevel --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-bevel --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `edges` | `array` | Yes | Array of edge definitions. Each edge is defined by two vertex indices [vertexA, vertexB]. Example: [[0,1], [2,3]] bevels edges from vertex 0 to 1 and from vertex 2 to 3. | +| `amount` | `number` | No | Bevel amount from 0 (no bevel) to 1 (maximum bevel reaching face center). Recommended values: 0.05 to 0.2. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "edges": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "amount": { + "type": "number" + } + }, + "required": [ + "gameObjectRef", + "edges" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-bridge/SKILL.md b/.opencode/skills/probuilder-bridge/SKILL.md new file mode 100644 index 0000000..7ecc281 --- /dev/null +++ b/.opencode/skills/probuilder-bridge/SKILL.md @@ -0,0 +1,101 @@ +--- +name: probuilder-bridge +description: Create a single new face that bridges two existing edges of a `ProBuilderMesh`. Useful for connecting separate parts of geometry or filling gaps. Pair with 'probuilder-get-mesh-info' to discover valid edges. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Bridge two edges in a ProBuilder mesh + +Create a single new face that bridges two existing edges of a `ProBuilderMesh`. Useful for connecting separate parts of geometry or filling gaps between disjoint sections. Pair with 'probuilder-get-mesh-info' to discover valid edges first. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `edgeA` — first edge as `[vertexA, vertexB]`. +- `edgeB` — second edge as `[vertexA, vertexB]`. +- `allowNonManifold` — when `true`, permits the bridge to share an edge with more than two faces. Defaults to `false`. + +## Example + +`edgeA=[0,1]`, `edgeB=[4,5]` creates a quad face between the two edges. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), dirty-flagged, and the Editor repaints. Returns the index of the new face, before/after face counts, and post-op vertex/edge counts. Throws when the bridge cannot be formed (e.g., edges already connected or non-manifold check blocked it). The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-bridge --input '{ + "gameObjectRef": "string_value", + "edgeA": [], + "edgeB": [], + "allowNonManifold": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-bridge --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-bridge --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `edgeA` | `array` | Yes | First edge as [vertexA, vertexB]. | +| `edgeB` | `array` | Yes | Second edge as [vertexA, vertexB]. | +| `allowNonManifold` | `boolean` | No | If true, allows creation of non-manifold geometry (edges shared by more than 2 faces). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "edgeA": { + "type": "array", + "items": { + "type": "integer" + } + }, + "edgeB": { + "type": "array", + "items": { + "type": "integer" + } + }, + "allowNonManifold": { + "type": "boolean" + } + }, + "required": [ + "gameObjectRef", + "edgeA", + "edgeB" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-connect-edges/SKILL.md b/.opencode/skills/probuilder-connect-edges/SKILL.md new file mode 100644 index 0000000..05797bf --- /dev/null +++ b/.opencode/skills/probuilder-connect-edges/SKILL.md @@ -0,0 +1,98 @@ +--- +name: probuilder-connect-edges +description: Insert new edges connecting the midpoints of selected edges within faces of a `ProBuilderMesh` — adds edge loops and extra geometry detail. Supply either `edges` (explicit list) or `faceDirection` (semantic selection); exactly one is required. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Connect edges in a ProBuilder mesh + +Insert new edges connecting the midpoints of selected edges within faces of a `ProBuilderMesh`. When a face has more than two edges to connect, a center vertex is added. Useful for creating new edge loops and adding geometry detail. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `edges` — explicit list of edges to connect, each as `[vertexA, vertexB]`. Use 'probuilder-get-mesh-info' to discover valid indices. +- `faceDirection` — semantic alternative: connects all edges of faces pointing this direction (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). Exactly one of `edges` / `faceDirection` is required. + +## Examples + +- Connect opposite edges of the top face: `faceDirection="up"`. +- Connect specific edges: `edges=[[0,1], [2,3]]`. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-connect-edges --input '{ + "gameObjectRef": "string_value", + "edges": [], + "faceDirection": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-connect-edges --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-connect-edges --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `edges` | `array` | No | Array of edge definitions. Each edge is [vertexA, vertexB]. Use ProBuilder_GetMeshInfo to get vertex indices. | +| `faceDirection` | `string` | No | Semantic face selection - connect edges of faces facing this direction. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "edges": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-create-poly-shape/SKILL.md b/.opencode/skills/probuilder-create-poly-shape/SKILL.md new file mode 100644 index 0000000..ed17918 --- /dev/null +++ b/.opencode/skills/probuilder-create-poly-shape/SKILL.md @@ -0,0 +1,125 @@ +--- +name: probuilder-create-poly-shape +description: Create a 3D `ProBuilderMesh` from a 2D polygon outline (x,z points) extruded upward by `height`. Perfect for floor plans, room layouts, terrain patches, walls, platforms — any shape definable by a 2D outline. Requires ≥3 points. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Create a ProBuilder shape from polygon points + +Create a 3D `ProBuilderMesh` from a 2D polygon outline (x,z points) extruded upward by `height`. Perfect for: + +- Floor plans and room layouts. +- Custom terrain patches. +- Architectural elements (walls, platforms). +- Any shape that can be defined by a 2D outline. + +## Inputs + +- `points` — array of 2D points as `[x, z]`. Minimum 3 points; should be in clockwise or counter-clockwise order. +- `height` — extrusion height upward (Y axis). Default `1`. +- `name` — optional GameObject name. +- `parentGameObjectRef` — optional parent; root of the scene when omitted. +- `position`, `rotation` — optional `Vector3` transform values (rotation in euler degrees). +- `flipNormals` — when `true`, flip the resulting face normals so the shape points inward. +- `isLocalSpace` — when `true`, position/rotation are interpreted in the parent's local space. + +## Examples + +- Rectangle: `points=[[0,0], [4,0], [4,3], [0,3]]`, `height=2.5`. +- L-shape: `points=[[0,0], [3,0], [3,2], [1,2], [1,3], [0,3]]`, `height=3`. +- Triangle: `points=[[0,0], [2,0], [1,1.7]]`, `height=1`. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-create-poly-shape --input '{ + "points": [], + "height": 0, + "name": "string_value", + "parentGameObjectRef": "string_value", + "position": "string_value", + "rotation": "string_value", + "flipNormals": false, + "isLocalSpace": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-create-poly-shape --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-create-poly-shape --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 | +|------|------|----------|-------------| +| `points` | `array` | Yes | 2D polygon points as [x,z] coordinates. Minimum 3 points. Points should be in clockwise or counter-clockwise order. Example: [[0,0], [4,0], [4,3], [0,3]] creates a 4x3 rectangle. | +| `height` | `number` | No | Height to extrude the polygon upward. Default is 1. | +| `name` | `string` | No | Name of the new GameObject. | +| `parentGameObjectRef` | `string` | No | Parent GameObject reference. If not provided, the shape will be created at the root of the scene. RQL: GameObjectRef | +| `position` | `string` | No | Position of the shape in world or local space. RQL: Vector3 | +| `rotation` | `string` | No | Rotation of the shape in euler angles (degrees). RQL: Vector3 | +| `flipNormals` | `boolean` | No | If true, flip the normals so the faces point inward instead of outward. | +| `isLocalSpace` | `boolean` | No | If true, position/rotation are in local space relative to parent. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "points": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "number" + } + } + }, + "height": { + "type": "number" + }, + "name": { + "type": "string" + }, + "parentGameObjectRef": { + "type": "string" + }, + "position": { + "type": "string" + }, + "rotation": { + "type": "string" + }, + "flipNormals": { + "type": "boolean" + }, + "isLocalSpace": { + "type": "boolean" + } + }, + "required": [ + "points" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-create-shape/SKILL.md b/.opencode/skills/probuilder-create-shape/SKILL.md new file mode 100644 index 0000000..21d35f9 --- /dev/null +++ b/.opencode/skills/probuilder-create-shape/SKILL.md @@ -0,0 +1,126 @@ +--- +name: probuilder-create-shape +description: Create a new editable `ProBuilderMesh` GameObject in the active scene from a `ShapeType` primitive (Cube, Cylinder, Sphere, Plane, Prism, Cone, Stair, etc.). Optionally set name, parent, transform, size, and world/local space. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Create a ProBuilder shape + +Create a new editable `ProBuilderMesh` GameObject in the active scene. ProBuilder shapes are editable 3D meshes that can be further modified with the rest of the ProBuilder tools (extrude, bevel, subdivide, etc.). + +## Inputs + +- `shapeType` — `ShapeType` enum (Cube, Cylinder, Sphere, Plane, Prism, Cone, Stair, Door, Pipe, Arch, Sprite, Torus, etc.). +- `name` — optional GameObject name. +- `parentGameObjectRef` — optional parent; root of the scene when omitted. +- `position`, `rotation`, `scale` — optional `Vector3` transform values. Rotation is euler degrees. Defaults: zero / zero / one. +- `size` — `Vector3` width/height/depth of the generated shape. Default `(1, 1, 1)`. +- `isLocalSpace` — when `true`, position/rotation/scale are interpreted in the parent's local space; otherwise world space. + +## Behavior + +Uses `ShapeGenerator.CreateShape` with `PivotLocation.Center`, applies the transform values, rebuilds the mesh, marks dirty, and repaints the Editor. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-create-shape --input '{ + "shapeType": "string_value", + "name": "string_value", + "parentGameObjectRef": "string_value", + "position": "string_value", + "rotation": "string_value", + "scale": "string_value", + "size": "string_value", + "isLocalSpace": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-create-shape --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-create-shape --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 | +|------|------|----------|-------------| +| `shapeType` | `string` | Yes | The type of shape to create. | +| `name` | `string` | No | Name of the new GameObject. | +| `parentGameObjectRef` | `string` | No | Parent GameObject reference. If not provided, the shape will be created at the root of the scene. RQL: GameObjectRef | +| `position` | `string` | No | Position of the shape in world or local space. RQL: Vector3 | +| `rotation` | `string` | No | Rotation of the shape in euler angles (degrees). RQL: Vector3 | +| `scale` | `string` | No | Scale of the shape. RQL: Vector3 | +| `size` | `string` | No | Size of the shape (width, height, depth). Default is (1, 1, 1). RQL: Vector3 | +| `isLocalSpace` | `boolean` | No | If true, position/rotation/scale are in local space relative to parent. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "shapeType": { + "type": "string", + "enum": [ + "Cube", + "Stair", + "CurvedStair", + "Prism", + "Cylinder", + "Plane", + "Door", + "Pipe", + "Cone", + "Sprite", + "Arch", + "Sphere", + "Torus" + ] + }, + "name": { + "type": "string" + }, + "parentGameObjectRef": { + "type": "string" + }, + "position": { + "type": "string" + }, + "rotation": { + "type": "string" + }, + "scale": { + "type": "string" + }, + "size": { + "type": "string" + }, + "isLocalSpace": { + "type": "boolean" + } + }, + "required": [ + "shapeType" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-delete-faces/SKILL.md b/.opencode/skills/probuilder-delete-faces/SKILL.md new file mode 100644 index 0000000..773a120 --- /dev/null +++ b/.opencode/skills/probuilder-delete-faces/SKILL.md @@ -0,0 +1,99 @@ +--- +name: probuilder-delete-faces +description: Delete selected faces from a `ProBuilderMesh`, creating holes or removing geometry. Supply either `faceIndices` (explicit list) or `faceDirection` (semantic selection); exactly one is required. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Delete ProBuilder faces + +Delete selected faces from a `ProBuilderMesh`, creating holes or removing geometry entirely. Faces can be selected explicitly by index or semantically by direction. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `faceIndices` — explicit array of face indices to delete. Use 'probuilder-get-mesh-info' to discover valid indices. +- `faceDirection` — semantic alternative (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). Exactly one of `faceIndices` / `faceDirection` is required. + +## Examples + +- Delete the bottom face: `faceDirection="down"`. +- Delete specific faces: `faceIndices=[0, 2, 4]`. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), the `ProBuilderMesh` and GameObject are marked dirty, and Editor windows repaint. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-delete-faces --input '{ + "gameObjectRef": "string_value", + "faceIndices": [], + "faceDirection": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-delete-faces --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-delete-faces --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `faceIndices` | `array` | No | Array of face indices to delete. Use this OR faceDirection, not both. Use ProBuilder_GetMeshInfo to get valid face indices. | +| `faceDirection` | `string` | No | Semantic face selection by direction. Use this OR faceIndices, not both. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "faceIndices": { + "type": "array", + "items": { + "type": "integer" + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-extrude/SKILL.md b/.opencode/skills/probuilder-extrude/SKILL.md new file mode 100644 index 0000000..bdae33a --- /dev/null +++ b/.opencode/skills/probuilder-extrude/SKILL.md @@ -0,0 +1,116 @@ +--- +name: probuilder-extrude +description: Extrude selected faces of a `ProBuilderMesh` along their normals, creating new geometry. Supply either `faceIndices` (explicit) or `faceDirection` (semantic); exactly one is required. Positive `distance` extrudes outward, negative inward. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Extrude ProBuilder faces + +Extrude selected faces of a `ProBuilderMesh` along their normals, creating new geometry by pushing faces outward (positive distance) or inward (negative distance). Faces can be selected explicitly by index or semantically by direction. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `faceIndices` — explicit array of face indices to extrude. +- `faceDirection` — semantic alternative (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). Exactly one of `faceIndices` / `faceDirection` is required. +- `distance` — extrusion distance. Positive = outward, negative = inward. Default `0.5`. +- `extrudeMethod` — `IndividualFaces` (each face extrudes independently), `FaceNormal` (faces extrude as a group along the averaged normal — the default), or `VertexNormal` (vertices move along their normals). + +## Examples + +- Extrude the top face up by 1 unit: `faceDirection="up"`, `distance=1`. +- Extrude specific faces: `faceIndices=[0, 2, 4]`. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), dirty-flagged, and the Editor repaints. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-extrude --input '{ + "gameObjectRef": "string_value", + "faceIndices": [], + "faceDirection": "string_value", + "distance": 0, + "extrudeMethod": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-extrude --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-extrude --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `faceIndices` | `array` | No | Array of face indices to extrude. Use this OR faceDirection, not both. Use ProBuilder_GetMeshInfo to get valid face indices. | +| `faceDirection` | `string` | No | Semantic face selection by direction. Use this OR faceIndices, not both. | +| `distance` | `number` | No | Distance to extrude the faces. Positive values extrude outward along face normals, negative values extrude inward. | +| `extrudeMethod` | `string` | No | Extrusion method: IndividualFaces (each face extrudes independently), FaceNormal (faces extrude as a group along averaged normal), VertexNormal (vertices move along their normals). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "faceIndices": { + "type": "array", + "items": { + "type": "integer" + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + }, + "distance": { + "type": "number" + }, + "extrudeMethod": { + "type": "string", + "enum": [ + "IndividualFaces", + "VertexNormal", + "FaceNormal" + ] + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-flip-normals/SKILL.md b/.opencode/skills/probuilder-flip-normals/SKILL.md new file mode 100644 index 0000000..d2b7ad6 --- /dev/null +++ b/.opencode/skills/probuilder-flip-normals/SKILL.md @@ -0,0 +1,102 @@ +--- +name: probuilder-flip-normals +description: Reverse the normal direction of selected faces in a `ProBuilderMesh`, flipping them inside-out. Useful for creating interior spaces (a room from the inside of a cube) or fixing inverted faces. Defaults to all faces when no selection is supplied. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Flip face normals in a ProBuilder mesh + +Reverse the normal direction of selected faces in a `ProBuilderMesh`, flipping them inside-out. Useful for creating interior spaces (a room from the inside of a cube) or fixing inverted faces produced by other operations. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `faceIndices` — optional explicit list of face indices to flip. +- `faceDirection` — optional semantic alternative (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). + +When both are omitted, **every face** is flipped. + +## Examples + +- Flip all faces: leave both `faceIndices` and `faceDirection` empty. +- Flip top face only: `faceDirection=Up`. +- Flip specific faces: `faceIndices=[0, 2, 4]`. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), dirty-flagged, and the Editor repaints. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-flip-normals --input '{ + "gameObjectRef": "string_value", + "faceIndices": [], + "faceDirection": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-flip-normals --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-flip-normals --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `faceIndices` | `array` | No | Array of face indices to flip. If empty and faceDirection is empty, flips all faces. | +| `faceDirection` | `string` | No | Semantic face selection by direction. If empty and faceIndices is empty, flips all faces. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "faceIndices": { + "type": "array", + "items": { + "type": "integer" + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-get-mesh-info/SKILL.md b/.opencode/skills/probuilder-get-mesh-info/SKILL.md new file mode 100644 index 0000000..d3b4432 --- /dev/null +++ b/.opencode/skills/probuilder-get-mesh-info/SKILL.md @@ -0,0 +1,99 @@ +--- +name: probuilder-get-mesh-info +description: "Inspect a `ProBuilderMesh` — face/vertex/edge counts plus optional face-by-face detail. Use `detail=\"summary\"` for a token-efficient overview, `detail=\"full\"` for detailed face data. Often skippable when other tools accept `faceDirection` semantic selection." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Get ProBuilder mesh information + +Inspect a `ProBuilderMesh` — totals (face/vertex/edge counts) plus optional face-by-face detail (per-face vertex positions, edges, semantic direction). The other ProBuilder tools accept `faceDirection` (semantic selection like `"up"`, `"down"`) — when that suffices, you can skip this call entirely. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `detail` — `Summary` (default, cheap overview with face directions) or `Full` (per-face data). +- `includeVertexPositions` — `Full` only. Include each face's vertex positions in the response. +- `includeEdges` — `Full` only. Include each face's edges. Default `true`. +- `maxFacesToShow` — `Full` only. Cap on face-detail entries (default `20`; pass `-1` for all). Keeps the response small for high-face meshes. + +## Tip + +With semantic face selection (`faceDirection`) available on Extrude / DeleteFaces / SetFaceMaterial and friends, you often don't need this tool — just pass `faceDirection="up"` etc. directly. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-get-mesh-info --input '{ + "gameObjectRef": "string_value", + "detail": "string_value", + "includeVertexPositions": false, + "includeEdges": false, + "maxFacesToShow": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-get-mesh-info --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-get-mesh-info --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `detail` | `string` | No | Detail level for output. | +| `includeVertexPositions` | `boolean` | No | If true, includes detailed vertex positions for each face (only with detail='full'). | +| `includeEdges` | `boolean` | No | If true, includes edge information for each face (only with detail='full'). | +| `maxFacesToShow` | `integer` | No | Maximum number of faces to include in detail (only with detail='full'). Use -1 for all faces. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "detail": { + "type": "string", + "enum": [ + "Summary", + "Full" + ] + }, + "includeVertexPositions": { + "type": "boolean" + }, + "includeEdges": { + "type": "boolean" + }, + "maxFacesToShow": { + "type": "integer" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-merge-objects/SKILL.md b/.opencode/skills/probuilder-merge-objects/SKILL.md new file mode 100644 index 0000000..177e949 --- /dev/null +++ b/.opencode/skills/probuilder-merge-objects/SKILL.md @@ -0,0 +1,81 @@ +--- +name: probuilder-merge-objects +description: Combine multiple `ProBuilderMesh` GameObjects into one merged mesh. The first GameObject in the list becomes the merge target. Source GameObjects are deleted by default. Useful for optimizing draw calls and unifying composite props. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Merge multiple ProBuilder meshes into one + +Combine multiple `ProBuilderMesh` GameObjects into a single merged mesh. The first GameObject in `gameObjectRefs` becomes the merge target — subsequent meshes are absorbed into it. Useful for optimizing draw calls or creating a unified object from parts. + +## Inputs + +- `gameObjectRefs` — array of GameObject references (≥2). Each must carry a `ProBuilderMesh` component. The first reference is the merge target. +- `deleteSourceObjects` — when `true` (default), delete the non-target source GameObjects after merging. Set `false` to keep them in the scene. + +## Example + +Merge a table assembled from four leg meshes and a top into a single GameObject for shipping. + +## Behavior + +All meshes are rebuilt (`ToMesh` → `Refresh`), the resulting GameObject is marked dirty, and the Editor repaints. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-merge-objects --input '{ + "gameObjectRefs": "string_value", + "deleteSourceObjects": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-merge-objects --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-merge-objects --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 | +|------|------|----------|-------------| +| `gameObjectRefs` | `string` | Yes | Array of GameObject references with ProBuilderMesh components to merge. First object becomes the merge target. RQL: [GameObjectRef] | +| `deleteSourceObjects` | `boolean` | No | If true, delete the source GameObjects after merging (except the target). Default is true. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRefs": { + "type": "string" + }, + "deleteSourceObjects": { + "type": "boolean" + } + }, + "required": [ + "gameObjectRefs" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-set-face-material/SKILL.md b/.opencode/skills/probuilder-set-face-material/SKILL.md new file mode 100644 index 0000000..c62b27f --- /dev/null +++ b/.opencode/skills/probuilder-set-face-material/SKILL.md @@ -0,0 +1,106 @@ +--- +name: probuilder-set-face-material +description: Assign a material to specific faces of a `ProBuilderMesh`, enabling multi-material meshes (e.g., grass on top, dirt on sides). Supply either `faceIndices` (explicit) or `faceDirection` (semantic); exactly one is required. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Set material on ProBuilder faces + +Assign a material to specific faces of a `ProBuilderMesh`, enabling multi-material meshes where different faces have different materials (e.g., grass on top, dirt on the sides). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `materialPath` — project path to the material asset (e.g., `Assets/Materials/Grass.mat`) or a bare material name. Required. +- `faceIndices` — explicit array of face indices. +- `faceDirection` — semantic alternative (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). Exactly one of `faceIndices` / `faceDirection` is required. + +## Examples + +- Set material on the top face: `faceDirection="up"`. +- Set material on specific faces: `faceIndices=[0, 2, 4]`. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), dirty-flagged, and the Editor repaints. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-set-face-material --input '{ + "gameObjectRef": "string_value", + "materialPath": "string_value", + "faceIndices": [], + "faceDirection": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-set-face-material --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-set-face-material --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `materialPath` | `string` | Yes | Path to the material asset (e.g., 'Assets/Materials/MyMaterial.mat') or material name. | +| `faceIndices` | `array` | No | Array of face indices to apply the material to. Use this OR faceDirection, not both. Use ProBuilder_GetMeshInfo to get valid face indices. | +| `faceDirection` | `string` | No | Semantic face selection by direction. Use this OR faceIndices, not both. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "materialPath": { + "type": "string" + }, + "faceIndices": { + "type": "array", + "items": { + "type": "integer" + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + } + }, + "required": [ + "gameObjectRef", + "materialPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-set-pivot/SKILL.md b/.opencode/skills/probuilder-set-pivot/SKILL.md new file mode 100644 index 0000000..d4cdd65 --- /dev/null +++ b/.opencode/skills/probuilder-set-pivot/SKILL.md @@ -0,0 +1,94 @@ +--- +name: probuilder-set-pivot +description: Move the pivot (origin) of a `ProBuilderMesh` without shifting the visible geometry. Choose `Center` (mesh bounds), `FirstVertex`, or `Custom` (world-space position). The mesh data is rebaked so the visual position stays fixed. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Set the pivot point of a ProBuilder mesh + +Move the pivot (origin) of a `ProBuilderMesh` without shifting the visible geometry. The mesh data is rebaked so the visual position stays fixed while the GameObject's transform origin moves to the new pivot. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `pivotLocation` — `MeshPivotLocation` enum: `Center` (mesh bounds center), `FirstVertex`, or `Custom`. +- `customPosition` — required when `pivotLocation = Custom`. World-space pivot position. + +## Examples + +- Center the pivot: `pivotLocation=Center`. +- Set pivot to first vertex: `pivotLocation=FirstVertex`. +- Set custom pivot: `pivotLocation=Custom`, `customPosition=(0, 0, 0)`. + +## Behavior + +The mesh is rebuilt (`ToMesh` → `Refresh`), dirty-flagged, and the Editor repaints. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-set-pivot --input '{ + "gameObjectRef": "string_value", + "pivotLocation": "string_value", + "customPosition": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-set-pivot --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-set-pivot --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `pivotLocation` | `string` | No | Where to place the pivot. | +| `customPosition` | `string` | No | Custom world position for pivot (only used when pivotLocation=Custom). RQL: Vector3 | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "pivotLocation": { + "type": "string", + "enum": [ + "Center", + "FirstVertex", + "Custom" + ] + }, + "customPosition": { + "type": "string" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/probuilder-subdivide-edges/SKILL.md b/.opencode/skills/probuilder-subdivide-edges/SKILL.md new file mode 100644 index 0000000..84c413c --- /dev/null +++ b/.opencode/skills/probuilder-subdivide-edges/SKILL.md @@ -0,0 +1,104 @@ +--- +name: probuilder-subdivide-edges +description: Insert new vertices on selected edges of a `ProBuilderMesh`, splitting each edge into smaller segments. Supply either `edges` (explicit list) or `faceDirection` (subdivides all edges of faces facing that direction); exactly one is required. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Subdivide edges in a ProBuilder mesh + +Insert new vertices on selected edges of a `ProBuilderMesh`, subdividing each into smaller segments. Useful for adding detail to specific edges for further manipulation (extrude, bevel, etc.). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `ProBuilderMesh` component. +- `edges` — explicit list of edges to subdivide, each as `[vertexA, vertexB]`. Use 'probuilder-get-mesh-info' to discover valid edges. +- `faceDirection` — semantic alternative: subdivides all edges of faces pointing this direction (`Up`, `Down`, `Left`, `Right`, `Forward`, `Back`). Exactly one of `edges` / `faceDirection` is required. +- `subdivisions` — number of subdivisions per edge. `1` splits each edge in half, `2` into thirds, and so on. Default `1`. + +## Examples + +- Subdivide all edges of the top face: `faceDirection="up"`, `subdivisions=2`. +- Subdivide specific edges: `edges=[[0,1], [2,3]]`, `subdivisions=1`. + +## How to Call + +```bash +unity-mcp-cli run-tool probuilder-subdivide-edges --input '{ + "gameObjectRef": "string_value", + "edges": [], + "faceDirection": "string_value", + "subdivisions": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool probuilder-subdivide-edges --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool probuilder-subdivide-edges --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the GameObject with a ProBuilderMesh component. RQL: GameObjectRef | +| `edges` | `array` | No | Array of edge definitions. Each edge is [vertexA, vertexB]. Use ProBuilder_GetMeshInfo to get vertex indices. | +| `faceDirection` | `string` | No | Semantic face selection - subdivide all edges of faces facing this direction. | +| `subdivisions` | `integer` | No | Number of subdivisions per edge. 1 = splits edge in half, 2 = splits into thirds, etc. Default is 1. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "edges": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "faceDirection": { + "type": "string", + "enum": [ + "Up", + "Down", + "Left", + "Right", + "Forward", + "Back" + ] + }, + "subdivisions": { + "type": "integer" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/profiler-capture-frame/SKILL.md b/.opencode/skills/profiler-capture-frame/SKILL.md new file mode 100644 index 0000000..d11adc2 --- /dev/null +++ b/.opencode/skills/profiler-capture-frame/SKILL.md @@ -0,0 +1,122 @@ +--- +name: profiler-capture-frame +description: Capture the current frame's timing info (delta time, FPS, frame counts, runtime). Snapshot only — historical frames live in Unity's Profiler window. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Capture Frame + +Reads `UnityEngine.Time` fields and returns them in a single struct. This tool is intentionally a single-frame snapshot — Unity's runtime API does not expose historical frame-data outside the Profiler window. + +## Fields + +- `FrameTimeMs` — `Time.deltaTime * 1000f`. +- `Fps` — `1 / Time.deltaTime` (0 when delta is zero). +- `TotalFrameCount` — `Time.frameCount` (includes skipped renders). +- `RealtimeSinceStartup` — `Time.realtimeSinceStartup`. +- `RenderedFrameCount` — `Time.renderedFrameCount`. + +## Behavior + +Uses only built-in Unity APIs (`UnityEngine.Time`). No external Unity package is required. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-capture-frame --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-capture-frame --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-capture-frame --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-FrameCaptureData", + "description": "Single-frame snapshot of timing information from UnityEngine.Time. No historical frame data; use the Profiler window for that." + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-FrameCaptureData": { + "type": "object", + "properties": { + "FrameTimeMs": { + "type": "number", + "description": "Time.deltaTime in milliseconds at the moment of capture." + }, + "Fps": { + "type": "number", + "description": "Frames per second derived from Time.deltaTime." + }, + "TotalFrameCount": { + "type": "integer", + "description": "Total frame count since application start (Time.frameCount). May include skipped renders." + }, + "RealtimeSinceStartup": { + "type": "number", + "description": "Time.realtimeSinceStartup, in seconds." + }, + "RenderedFrameCount": { + "type": "integer", + "description": "Frames actually rendered (Time.renderedFrameCount)." + } + }, + "required": [ + "FrameTimeMs", + "Fps", + "TotalFrameCount", + "RealtimeSinceStartup", + "RenderedFrameCount" + ], + "description": "Single-frame snapshot of timing information from UnityEngine.Time. No historical frame data; use the Profiler window for that." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-clear-data/SKILL.md b/.opencode/skills/profiler-clear-data/SKILL.md new file mode 100644 index 0000000..dcc853a --- /dev/null +++ b/.opencode/skills/profiler-clear-data/SKILL.md @@ -0,0 +1,78 @@ +--- +name: profiler-clear-data +description: Discard all frames currently held by the Editor Profiler (UnityEditorInternal.ProfilerDriver.ClearAllFrames). Cannot be undone. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Clear Data + +Invokes `UnityEditorInternal.ProfilerDriver.ClearAllFrames()` on the main thread. `UnityEditorInternal` is a built-in editor namespace — no external Unity package is required. + +## Behavior + +After this call, the Profiler window's frame history is empty; subsequent recording starts from frame 0. Returns `true` on success. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-clear-data --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-clear-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-clear-data --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-enable-module/SKILL.md b/.opencode/skills/profiler-enable-module/SKILL.md new file mode 100644 index 0000000..da06d68 --- /dev/null +++ b/.opencode/skills/profiler-enable-module/SKILL.md @@ -0,0 +1,91 @@ +--- +name: profiler-enable-module +description: Toggle the wrapper's local 'enabled' flag for a named profiler module. Bookkeeping only — Unity's runtime API does not expose direct module control; for real module visibility use the Profiler window. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Enable Module + +Adds or removes the given module name from the wrapper's `EnabledModules` set. This is local bookkeeping consumed by `profiler-get-status` and `profiler-list-modules`; Unity's runtime API does not allow programmatic toggling of Profiler-window modules from a built-in namespace, so this tool intentionally does not pretend to. + +## Inputs + +- `moduleName` (required) — one of the names returned by `profiler-list-modules`. +- `enabled` (default `true`) — set to `false` to mark the module disabled. + +## Errors + +- Returns an `[Error]` string when `moduleName` is empty or unknown. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-enable-module --input '{ + "moduleName": "string_value", + "enabled": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-enable-module --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-enable-module --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 | +|------|------|----------|-------------| +| `moduleName` | `string` | Yes | Profiler module name (e.g. 'CPU', 'GPU', 'Memory'). | +| `enabled` | `boolean` | No | True to mark the module enabled in local bookkeeping; false to mark disabled. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "moduleName": { + "type": "string" + }, + "enabled": { + "type": "boolean" + } + }, + "required": [ + "moduleName" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-get-memory-stats/SKILL.md b/.opencode/skills/profiler-get-memory-stats/SKILL.md new file mode 100644 index 0000000..3a1a7da --- /dev/null +++ b/.opencode/skills/profiler-get-memory-stats/SKILL.md @@ -0,0 +1,146 @@ +--- +name: profiler-get-memory-stats +description: Return memory statistics snapshot from UnityEngine.Profiling.Profiler — reserved, allocated, mono heap, graphics, etc. (in MB). +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Get Memory Stats + +Reads UnityEngine.Profiling.Profiler scalar memory counters and converts each from bytes to megabytes (`/1048576f`). + +## Fields + +- `TotalReservedMemoryMB` — `GetTotalReservedMemoryLong()`. +- `TotalAllocatedMemoryMB` — `GetTotalAllocatedMemoryLong()`. +- `TotalUnusedReservedMemoryMB` — `GetTotalUnusedReservedMemoryLong()`. +- `MonoHeapSizeMB` — `GetMonoHeapSizeLong()`. +- `MonoUsedSizeMB` — `GetMonoUsedSizeLong()`. +- `TempAllocatorSizeMB` — `GetTempAllocatorSize()`. +- `GraphicsMemoryMB` — `GetAllocatedMemoryForGraphicsDriver()`. +- `MaxUsedMemoryMB` — `maxUsedMemory`. +- `UsedHeapSizeMB` — `usedHeapSizeLong`. + +## Behavior + +Uses only built-in Unity APIs (`UnityEngine.Profiling.Profiler`). No external Unity package is required. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-get-memory-stats --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-get-memory-stats --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-get-memory-stats --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-MemoryStatsData", + "description": "Memory statistics from the Unity Profiler. All values in megabytes unless otherwise noted." + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-MemoryStatsData": { + "type": "object", + "properties": { + "TotalReservedMemoryMB": { + "type": "number", + "description": "Total reserved memory (UnityEngine.Profiling.Profiler.GetTotalReservedMemoryLong / 1048576)." + }, + "TotalAllocatedMemoryMB": { + "type": "number", + "description": "Total allocated memory (UnityEngine.Profiling.Profiler.GetTotalAllocatedMemoryLong / 1048576)." + }, + "TotalUnusedReservedMemoryMB": { + "type": "number", + "description": "Total unused reserved memory (UnityEngine.Profiling.Profiler.GetTotalUnusedReservedMemoryLong / 1048576)." + }, + "MonoHeapSizeMB": { + "type": "number", + "description": "Mono heap size (UnityEngine.Profiling.Profiler.GetMonoHeapSizeLong / 1048576)." + }, + "MonoUsedSizeMB": { + "type": "number", + "description": "Mono used size (UnityEngine.Profiling.Profiler.GetMonoUsedSizeLong / 1048576)." + }, + "TempAllocatorSizeMB": { + "type": "number", + "description": "Temp allocator size (UnityEngine.Profiling.Profiler.GetTempAllocatorSize / 1048576)." + }, + "GraphicsMemoryMB": { + "type": "number", + "description": "Graphics memory reserved by the driver (UnityEngine.Profiling.Profiler.GetAllocatedMemoryForGraphicsDriver / 1048576)." + }, + "MaxUsedMemoryMB": { + "type": "number", + "description": "Maximum used memory observed (UnityEngine.Profiling.Profiler.maxUsedMemory / 1048576)." + }, + "UsedHeapSizeMB": { + "type": "number", + "description": "Used heap size (UnityEngine.Profiling.Profiler.usedHeapSizeLong / 1048576)." + } + }, + "required": [ + "TotalReservedMemoryMB", + "TotalAllocatedMemoryMB", + "TotalUnusedReservedMemoryMB", + "MonoHeapSizeMB", + "MonoUsedSizeMB", + "TempAllocatorSizeMB", + "GraphicsMemoryMB", + "MaxUsedMemoryMB", + "UsedHeapSizeMB" + ], + "description": "Memory statistics from the Unity Profiler. All values in megabytes unless otherwise noted." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-get-rendering-stats/SKILL.md b/.opencode/skills/profiler-get-rendering-stats/SKILL.md new file mode 100644 index 0000000..5e58450 --- /dev/null +++ b/.opencode/skills/profiler-get-rendering-stats/SKILL.md @@ -0,0 +1,122 @@ +--- +name: profiler-get-rendering-stats +description: Return current frame timing, FPS, vsync, target frame rate, threading mode, and graphics device type from Unity Time / QualitySettings / SystemInfo. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Get Rendering Stats + +Snapshots rendering-related fields from `UnityEngine.Time`, `UnityEngine.QualitySettings`, `UnityEngine.Application` and `UnityEngine.SystemInfo`. All values are read from built-in Unity APIs so no external Unity package is required. + +## Fields + +- `FrameTimeMs` — `Time.deltaTime * 1000f`. +- `Fps` — `1 / Time.deltaTime` (0 when delta is zero). +- `VSyncCount` — `QualitySettings.vSyncCount`. +- `TargetFrameRate` — `Application.targetFrameRate`. +- `RenderingThreadingMode` — `SystemInfo.renderingThreadingMode.ToString()`. +- `GraphicsDeviceType` — `SystemInfo.graphicsDeviceType.ToString()`. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-get-rendering-stats --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-get-rendering-stats --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-get-rendering-stats --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-RenderingStatsData", + "description": "Rendering statistics from Unity's Time / QualitySettings / SystemInfo. No external package required." + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-RenderingStatsData": { + "type": "object", + "properties": { + "FrameTimeMs": { + "type": "number", + "description": "Last reported frame time (Time.deltaTime * 1000) in milliseconds." + }, + "Fps": { + "type": "number", + "description": "Frames per second derived from Time.deltaTime." + }, + "VSyncCount": { + "type": "integer", + "description": "QualitySettings.vSyncCount." + }, + "TargetFrameRate": { + "type": "integer", + "description": "Application.targetFrameRate." + }, + "RenderingThreadingMode": { + "type": "string", + "description": "SystemInfo.renderingThreadingMode." + }, + "GraphicsDeviceType": { + "type": "string", + "description": "SystemInfo.graphicsDeviceType." + } + }, + "required": [ + "FrameTimeMs", + "Fps", + "VSyncCount", + "TargetFrameRate" + ], + "description": "Rendering statistics from Unity's Time / QualitySettings / SystemInfo. No external package required." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-get-script-stats/SKILL.md b/.opencode/skills/profiler-get-script-stats/SKILL.md new file mode 100644 index 0000000..73e6de0 --- /dev/null +++ b/.opencode/skills/profiler-get-script-stats/SKILL.md @@ -0,0 +1,130 @@ +--- +name: profiler-get-script-stats +description: Return script execution timing (frame time, fixed dt, time scale, frame count, runtime) plus Mono / GC memory usage in MB. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Get Script Stats + +Snapshots fields from `UnityEngine.Time`, `UnityEngine.Profiling.Profiler.GetMonoUsedSizeLong()` and `System.GC.GetTotalMemory(false)`. All values are produced by built-in Unity APIs. + +## Fields + +- `FrameTimeMs` — `Time.deltaTime * 1000f`. +- `FixedDeltaTimeMs` — `Time.fixedDeltaTime * 1000f`. +- `TimeScale` — `Time.timeScale`. +- `TotalFrameCount` — `Time.frameCount`. +- `RealtimeSinceStartup` — `Time.realtimeSinceStartup`. +- `MonoMemoryUsageMB` — `Profiler.GetMonoUsedSizeLong() / 1048576f`. +- `GCMemoryUsageMB` — `GC.GetTotalMemory(false) / 1048576f`. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-get-script-stats --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-get-script-stats --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-get-script-stats --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ScriptStatsData", + "description": "Script statistics derived from UnityEngine.Time + UnityEngine.Profiling.Profiler." + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ScriptStatsData": { + "type": "object", + "properties": { + "FrameTimeMs": { + "type": "number", + "description": "Time.deltaTime in milliseconds." + }, + "FixedDeltaTimeMs": { + "type": "number", + "description": "Time.fixedDeltaTime in milliseconds." + }, + "TimeScale": { + "type": "number", + "description": "Time.timeScale." + }, + "TotalFrameCount": { + "type": "integer", + "description": "Total frame count since application start (Time.frameCount)." + }, + "RealtimeSinceStartup": { + "type": "number", + "description": "Time.realtimeSinceStartup, in seconds." + }, + "MonoMemoryUsageMB": { + "type": "number", + "description": "Mono used size (Profiler.GetMonoUsedSizeLong / 1048576), in megabytes." + }, + "GCMemoryUsageMB": { + "type": "number", + "description": "System.GC.GetTotalMemory(false) / 1048576, in megabytes." + } + }, + "required": [ + "FrameTimeMs", + "FixedDeltaTimeMs", + "TimeScale", + "TotalFrameCount", + "RealtimeSinceStartup", + "MonoMemoryUsageMB", + "GCMemoryUsageMB" + ], + "description": "Script statistics derived from UnityEngine.Time + UnityEngine.Profiling.Profiler." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-get-status/SKILL.md b/.opencode/skills/profiler-get-status/SKILL.md new file mode 100644 index 0000000..ebaf681 --- /dev/null +++ b/.opencode/skills/profiler-get-status/SKILL.md @@ -0,0 +1,121 @@ +--- +name: profiler-get-status +description: Return the Unity profiler's current enabled state, active modules, max-used memory, and platform support flag. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Get Status + +Snapshots `UnityEngine.Profiling.Profiler` state and returns it in a single response. + +## Fields + +- `ProfilerEnabled` — `Profiler.enabled`. +- `ActiveModules` — names of modules this wrapper considers enabled (local bookkeeping). +- `MaxUsedMemoryMB` — `Profiler.maxUsedMemory / 1048576f`. +- `Supported` — `Profiler.supported`. + +## Behavior + +Uses only built-in Unity APIs. No external Unity package is required. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-get-status --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-get-status --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-get-status --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerStatusData", + "description": "Profiler status data including memory and module information." + } + }, + "$defs": { + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerStatusData": { + "type": "object", + "properties": { + "ProfilerEnabled": { + "type": "boolean", + "description": "Whether Unity's runtime profiler is currently enabled (UnityEngine.Profiling.Profiler.enabled)." + }, + "ActiveModules": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)", + "description": "List of profiler modules this wrapper considers active. Local bookkeeping only." + }, + "MaxUsedMemoryMB": { + "type": "number", + "description": "Maximum used memory recorded by the profiler, in megabytes." + }, + "Supported": { + "type": "boolean", + "description": "Whether profiling is supported on this platform (UnityEngine.Profiling.Profiler.supported)." + } + }, + "required": [ + "ProfilerEnabled", + "MaxUsedMemoryMB", + "Supported" + ], + "description": "Profiler status data including memory and module information." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-list-modules/SKILL.md b/.opencode/skills/profiler-list-modules/SKILL.md new file mode 100644 index 0000000..d126cb0 --- /dev/null +++ b/.opencode/skills/profiler-list-modules/SKILL.md @@ -0,0 +1,115 @@ +--- +name: profiler-list-modules +description: List all known profiler module names with their local 'enabled' bookkeeping flag. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / List Modules + +Returns `Tool_Profiler.AvailableModules` projected into a `ProfilerModulesData` list, with each entry's `Enabled` field reflecting the wrapper's local bookkeeping. + +## Behavior + +Uses only built-in Unity APIs and in-process state. No external Unity package is required. Pair with `profiler-enable-module` to flip the bookkeeping flag. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-list-modules --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-list-modules --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-list-modules --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModulesData", + "description": "Container for 'profiler-list-modules' output." + } + }, + "$defs": { + "System.Collections.Generic.List(com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModuleInfo)": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModuleInfo", + "description": "Profiler module entry returned by 'profiler-list-modules'." + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModuleInfo": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "Module name (e.g. 'CPU', 'Memory')." + }, + "Enabled": { + "type": "boolean", + "description": "Whether the wrapper considers this module enabled. Local bookkeeping only." + } + }, + "required": [ + "Enabled" + ], + "description": "Profiler module entry returned by 'profiler-list-modules'." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModulesData": { + "type": "object", + "properties": { + "Modules": { + "$ref": "#/$defs/System.Collections.Generic.List(com.IvanMurzak.Unity.MCP.Editor.API.Tool_Profiler-ProfilerModuleInfo)", + "description": "All known profiler modules and their wrapper-side enabled flag." + } + }, + "description": "Container for 'profiler-list-modules' output." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-load-data/SKILL.md b/.opencode/skills/profiler-load-data/SKILL.md new file mode 100644 index 0000000..42f2ffa --- /dev/null +++ b/.opencode/skills/profiler-load-data/SKILL.md @@ -0,0 +1,89 @@ +--- +name: profiler-load-data +description: Read back a previously-saved JSON snapshot from `profiler-save-data` and return its raw text. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Load Data + +Reads `filePath` as UTF-8 text and returns the file body unchanged. Caller is responsible for parsing. + +## Inputs + +- `filePath` (required) — path written by `profiler-save-data`. + +## Errors + +- Returns `[Error]` when `filePath` is empty, the file does not exist, exceeds the 10 MB size cap, or the read fails. + +## Behavior + +Uses `System.IO.File.ReadAllText` (BCL) — no external Unity package is required. Files larger than 10 MB are rejected up-front to avoid OOM on a stray call. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-load-data --input '{ + "filePath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-load-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-load-data --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 | +|------|------|----------|-------------| +| `filePath` | `string` | Yes | Path to a profiler snapshot file previously written by 'profiler-save-data'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filePath": { + "type": "string" + } + }, + "required": [ + "filePath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-save-data/SKILL.md b/.opencode/skills/profiler-save-data/SKILL.md new file mode 100644 index 0000000..c6dbae1 --- /dev/null +++ b/.opencode/skills/profiler-save-data/SKILL.md @@ -0,0 +1,89 @@ +--- +name: profiler-save-data +description: Save a snapshot of profiler-derived stats (status + memory + rendering + script + frame capture) to a JSON file. Built-in Unity APIs only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Save Data + +Composes the outputs of `profiler-get-status`, `profiler-get-memory-stats`, `profiler-get-rendering-stats`, `profiler-get-script-stats` and `profiler-capture-frame` into a single JSON document and writes it to `filePath`. Creates any missing parent directories. + +## Inputs + +- `filePath` (required) — absolute or workspace-relative path to write to. + +## Errors + +- Returns `[Error]` when `filePath` is empty or the write fails (message includes the underlying exception text). + +## Behavior + +Uses `System.Text.Json` (BCL) for serialization and `System.IO.File.WriteAllText` for the write. No external Unity package is required. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-save-data --input '{ + "filePath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-save-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-save-data --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 | +|------|------|----------|-------------| +| `filePath` | `string` | Yes | Absolute or workspace-relative output file path. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filePath": { + "type": "string" + } + }, + "required": [ + "filePath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-start/SKILL.md b/.opencode/skills/profiler-start/SKILL.md new file mode 100644 index 0000000..9a86e9c --- /dev/null +++ b/.opencode/skills/profiler-start/SKILL.md @@ -0,0 +1,80 @@ +--- +name: profiler-start +description: "Enable Unity's runtime profiler and open the Profiler window. Idempotent: calling when already enabled returns the current enabled state without error." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Start + +Enables `UnityEngine.Profiling.Profiler.enabled = true` and opens `Window > Analysis > Profiler` via `EditorApplication.ExecuteMenuItem`. Returns `true` once the profiler is enabled. + +## Behavior + +Uses only built-in Unity APIs (`UnityEngine.Profiling`, `UnityEditor.EditorApplication`). No external Unity package is required. + +Snapshot-based: this tool does not stream historical frame data — use Unity's Profiler window directly for that. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-start --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-start --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-start --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/profiler-stop/SKILL.md b/.opencode/skills/profiler-stop/SKILL.md new file mode 100644 index 0000000..c19930d --- /dev/null +++ b/.opencode/skills/profiler-stop/SKILL.md @@ -0,0 +1,78 @@ +--- +name: profiler-stop +description: Disable Unity's runtime profiler. Idempotent — calling when already disabled returns the current disabled state. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Profiler / Stop + +Sets `UnityEngine.Profiling.Profiler.enabled = false`. Returns the post-call value of `Profiler.enabled` (expected `false`). + +## Behavior + +Uses only built-in Unity APIs (`UnityEngine.Profiling`). No external Unity package is required. + +## How to Call + +```bash +unity-mcp-cli run-tool profiler-stop --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool profiler-stop --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool profiler-stop --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/reflection-method-call/SKILL.md b/.opencode/skills/reflection-method-call/SKILL.md new file mode 100644 index 0000000..2eb4e4c --- /dev/null +++ b/.opencode/skills/reflection-method-call/SKILL.md @@ -0,0 +1,254 @@ +--- +name: reflection-method-call +description: Call a C# method by reflection — including private methods. Requires a method schema obtained via 'reflection-method-find'. Supports static methods, instance methods (with optional target deserialization), and main-thread / off-thread execution. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Method C# / Call + +Call C# method. Any method could be called, even private methods. It requires to receive proper method schema. Use 'reflection-method-find' to find available method before using it. Receives input parameters and returns result. + +## Match levels (apply to `typeName`, `MethodName`, `Parameters`) + +- `typeNameMatchLevel` / `methodNameMatchLevel` (default 1 — contains ignoring case): `0` ignore filter, `1` contains-ic, `2` contains-cs, `3` starts-with-ic, `4` starts-with-cs, `5` equals-ic, `6` equals-cs. +- `parametersMatchLevel` (default 2 — equals): `0` ignore filter, `1` count matches, `2` equals. + +## Inputs + +- `targetObject` (optional) — for instance methods. When null, a new instance is created from the declaring type. Required shape: `{ type, value }` (value is deserialized to `type`). +- `inputParameters` (optional) — list of `{ type, name, value }`. Names are enhanced against the resolved method signature if omitted. +- `executeInMainThread` (default `true`) — Unity API calls should keep this true; set false only for thread-safe pure logic. + +## How to Call + +```bash +unity-mcp-cli run-tool reflection-method-call --input '{ + "filter": "string_value", + "knownNamespace": false, + "typeNameMatchLevel": 0, + "methodNameMatchLevel": 0, + "parametersMatchLevel": 0, + "targetObject": "string_value", + "inputParameters": "string_value", + "executeInMainThread": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool reflection-method-call --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool reflection-method-call --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 | +|------|------|----------|-------------| +| `filter` | `any` | Yes | Method reference. Used to find method in codebase of the project. | +| `knownNamespace` | `boolean` | No | Set to true if 'Namespace' is known and full namespace name is specified in the 'filter.Namespace' property. Otherwise, set to false. | +| `typeNameMatchLevel` | `integer` | No | Minimal match level for 'typeName'. 0 - ignore 'filter.typeName', 1 - contains ignoring case (default value), 2 - contains case sensitive, 3 - starts with ignoring case, 4 - starts with case sensitive, 5 - equals ignoring case, 6 - equals case sensitive. | +| `methodNameMatchLevel` | `integer` | No | Minimal match level for 'MethodName'. 0 - ignore 'filter.MethodName', 1 - contains ignoring case (default value), 2 - contains case sensitive, 3 - starts with ignoring case, 4 - starts with case sensitive, 5 - equals ignoring case, 6 - equals case sensitive. | +| `parametersMatchLevel` | `integer` | No | Minimal match level for 'Parameters'. 0 - ignore 'filter.Parameters', 1 - parameters count is the same, 2 - equals (default value). | +| `targetObject` | `any` | No | Specify target object to call method on. Should be null if the method is static or if there is no specific target instance. New instance of the specified class will be created if the method is instance method and the targetObject is null. Required: type - full type name of the object to call method on, value - serialized object value (it will be deserialized to the specified type). | +| `inputParameters` | `any` | No | Method input parameters. Per each parameter specify: type - full type name of the object to call method on, name - parameter name, value - serialized object value (it will be deserialized to the specified type). | +| `executeInMainThread` | `boolean` | No | Set to true if the method should be executed in the main thread. Otherwise, set to false. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filter": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.MethodRef" + }, + "knownNamespace": { + "type": "boolean" + }, + "typeNameMatchLevel": { + "type": "integer" + }, + "methodNameMatchLevel": { + "type": "integer" + }, + "parametersMatchLevel": { + "type": "integer" + }, + "targetObject": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "inputParameters": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMemberList" + }, + "executeInMainThread": { + "type": "boolean" + } + }, + "$defs": { + "System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter)": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter", + "description": "Parameter of a method. Contains type and name of the parameter." + } + }, + "com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Type of the parameter including namespace. Sample: 'System.String', 'System.Int32', 'UnityEngine.GameObject', etc." + }, + "name": { + "type": "string", + "description": "Name of the parameter. It may be empty if the name is unknown." + } + }, + "description": "Parameter of a method. Contains type and name of the parameter." + }, + "com.IvanMurzak.ReflectorNet.Model.MethodRef": { + "type": "object", + "properties": { + "namespace": { + "type": "string", + "description": "Namespace of the class. It may be empty if the class is in the global namespace or the namespace is unknown." + }, + "typeName": { + "type": "string", + "description": "Class name, or substring a class name. It may be empty if the class is unknown." + }, + "methodName": { + "type": "string", + "description": "Method name, or substring of the method name. It may be empty if the method is unknown." + }, + "inputParameters": { + "$ref": "#/$defs/System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter)", + "description": "List of input parameters. Can be null if the method has no parameters or the parameters are unknown." + } + }, + "description": "Method reference. Used to find method in codebase of the project." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + } + }, + "required": [ + "filter" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "$defs": { + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/reflection-method-find/SKILL.md b/.opencode/skills/reflection-method-find/SKILL.md new file mode 100644 index 0000000..f23dcdb --- /dev/null +++ b/.opencode/skills/reflection-method-find/SKILL.md @@ -0,0 +1,151 @@ +--- +name: reflection-method-find +description: Find C# methods across every loaded assembly by name / type / parameters — including private methods. Returns serialized `MethodData` entries usable as schemas for 'reflection-method-call'. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Method C# / Find + +Find method in the project using C# Reflection. It looks for all assemblies in the project and finds method by its name, class name and parameters. Even private methods are available. Use 'reflection-method-call' to call the method after finding it. + +## Match levels (apply to `typeName`, `MethodName`, `Parameters`) + +- `typeNameMatchLevel` / `methodNameMatchLevel` (default 1 — contains ignoring case): `0` ignore filter, `1` contains-ic, `2` contains-cs, `3` starts-with-ic, `4` starts-with-cs, `5` equals-ic, `6` equals-cs. +- `parametersMatchLevel` (default 0 — ignore filter): `0` ignore, `1` count matches, `2` equals. + +## Output + +On match, returns a `[Success] Found N method(s):` line followed by a JSON dump of every method's `MethodData`. Pass any single entry to 'reflection-method-call' as its `filter`. + +## How to Call + +```bash +unity-mcp-cli run-tool reflection-method-find --input '{ + "filter": "string_value", + "knownNamespace": false, + "typeNameMatchLevel": 0, + "methodNameMatchLevel": 0, + "parametersMatchLevel": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool reflection-method-find --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool reflection-method-find --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 | +|------|------|----------|-------------| +| `filter` | `any` | Yes | Method reference. Used to find method in codebase of the project. | +| `knownNamespace` | `boolean` | No | Set to true if 'Namespace' is known and full namespace name is specified in the 'filter.Namespace' property. Otherwise, set to false. | +| `typeNameMatchLevel` | `integer` | No | Minimal match level for 'typeName'. 0 - ignore 'filter.typeName', 1 - contains ignoring case (default value), 2 - contains case sensitive, 3 - starts with ignoring case, 4 - starts with case sensitive, 5 - equals ignoring case, 6 - equals case sensitive. | +| `methodNameMatchLevel` | `integer` | No | Minimal match level for 'MethodName'. 0 - ignore 'filter.MethodName', 1 - contains ignoring case (default value), 2 - contains case sensitive, 3 - starts with ignoring case, 4 - starts with case sensitive, 5 - equals ignoring case, 6 - equals case sensitive. | +| `parametersMatchLevel` | `integer` | No | Minimal match level for 'Parameters'. 0 - ignore 'filter.Parameters' (default value), 1 - parameters count is the same, 2 - equals. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filter": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.MethodRef" + }, + "knownNamespace": { + "type": "boolean" + }, + "typeNameMatchLevel": { + "type": "integer" + }, + "methodNameMatchLevel": { + "type": "integer" + }, + "parametersMatchLevel": { + "type": "integer" + } + }, + "$defs": { + "System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter)": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter", + "description": "Parameter of a method. Contains type and name of the parameter." + } + }, + "com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Type of the parameter including namespace. Sample: 'System.String', 'System.Int32', 'UnityEngine.GameObject', etc." + }, + "name": { + "type": "string", + "description": "Name of the parameter. It may be empty if the name is unknown." + } + }, + "description": "Parameter of a method. Contains type and name of the parameter." + }, + "com.IvanMurzak.ReflectorNet.Model.MethodRef": { + "type": "object", + "properties": { + "namespace": { + "type": "string", + "description": "Namespace of the class. It may be empty if the class is in the global namespace or the namespace is unknown." + }, + "typeName": { + "type": "string", + "description": "Class name, or substring a class name. It may be empty if the class is unknown." + }, + "methodName": { + "type": "string", + "description": "Method name, or substring of the method name. It may be empty if the method is unknown." + }, + "inputParameters": { + "$ref": "#/$defs/System.Collections.Generic.List(com.IvanMurzak.ReflectorNet.Model.MethodRef-Parameter)", + "description": "List of input parameters. Can be null if the method has no parameters or the parameters are unknown." + } + }, + "description": "Method reference. Used to find method in codebase of the project." + } + }, + "required": [ + "filter" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/rql-mutate/SKILL.md b/.opencode/skills/rql-mutate/SKILL.md new file mode 100644 index 0000000..407d4a4 --- /dev/null +++ b/.opencode/skills/rql-mutate/SKILL.md @@ -0,0 +1,95 @@ +--- +name: rql-mutate +description: "Change the live Unity scene with RQL set/call: bulk edits in one all-or-nothing, undoable call, saved to disk; dry_run previews." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# RQL / Mutate + +Change the live Unity Editor scene with an RQL query whose last stage is set or call. All-or-nothing: every target and value is checked before anything is written; a failure changes nothing. Undoable in the Editor (Ctrl+Z). Changed assets, scenes and the open prefab are saved to disk automatically; an untitled scene needs SaveAs(path). dry_run=true returns the receipt ($ref, member, old, new) without changing anything. Do exactly the change requested; a read-only member fails with readonly-member instead of being approximated. + set path = expr, ... assign members (paths may go through structs: set transform.position.y = transform.position.y + 1) + call Method(args) invoke a method the tools expose +Examples: + objects | where name == "Player" | set transform.position = "(0, 1, 0)" + objects | get components | where $ is Light | set intensity = intensity * 2, color = "#ffcc88" + objects | where tag == "Enemy" | set active = false + unity.asset("Assets/Mats/Red.mat") | set properties["_Color"] = "(1, 0, 0, 1)" + objects | where name == "Spawner" | set targets = append(targets, ref("GameObject#1234")) +Create / add / remove (call; the receipt's result column holds the new object's $ref for follow-up queries): + editor | call CreateGameObject("Props") new root GameObject + editor | call CreateGameObject("Crate", ref("GameObject#1234"), "Cube") child of a parent, optional primitive + objects | where name == "Crate" | call AddComponent("Rigidbody") add a component by type name + objects | where name == "Old" | call Destroy() remove a GameObject (components: get components | where $ is X | call Destroy()) + objects | where name == "Lamp" | set transform.parent = ref("GameObject#1234") reparent (keeps the world position) + objects | where name == "Crate" | call Duplicate() copy next to it (returns the copy) +Scenes, prefabs, assets, Editor state: + editor | call OpenScene("Assets/Scenes/Level.unity") editor | call NewScene("Assets/Scenes/New.unity") + scenes | where path == "" | call SaveAs("Assets/Scenes/New.unity") scenes | where name == "Level" | call SetActive() + editor | call InstantiatePrefab("Assets/Prefabs/Enemy.prefab", ref("GameObject#1234"), "(0, 0, 5)") + objects | where name == "Crate" | call SaveAsPrefab("Assets/Prefabs/Crate.prefab") + editor | call OpenPrefab("Assets/Prefabs/Enemy.prefab") then prefab | recurse children | … then editor | call ClosePrefab() + editor | call CreateMaterial("Assets/Mats/Glow.mat") editor | call MoveAsset("Assets/A.mat", "Assets/Mats/A.mat") + editor | set selection = [ref("GameObject#1234")] editor | set isPlaying = true + profiler | call Start() profiler | call Save("Logs/profile.json") (read: profiler | select memory frame) +Object literals build values: set settings = {speed: 2, "$type": "FastSettings"}. At most 20 targets per call. + +Query part: the RQL of rql-query (full guide and the sources in its description); unity.assets("t:Material"), unity.asset(path), unity.find("Name"), ref("Light#1234"). Stages: where, select, sort, first N, get , recurse children. Operators: == != < > and or not, contains, starts-with, $ is Light. Paths a.b.c, list[0], map["key"]. Vectors/colors as "(1, 2, 3)" or "#ff8800"; enums as strings. + +## How to Call + +```bash +unity-mcp-cli run-tool rql-mutate --input '{ + "query": "string_value", + "dry_run": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool rql-mutate --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool rql-mutate --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 | +|------|------|----------|-------------| +| `query` | `string` | Yes | RQL query ending with a set or call stage, e.g. objects | where name == "Player" | set active = false | +| `dry_run` | `boolean` | No | true = preview the receipt without changing anything | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "query": { + "type": "string" + }, + "dry_run": { + "type": "boolean" + } + }, + "required": [ + "query" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/rql-query/SKILL.md b/.opencode/skills/rql-query/SKILL.md new file mode 100644 index 0000000..92481ac --- /dev/null +++ b/.opencode/skills/rql-query/SKILL.md @@ -0,0 +1,89 @@ +--- +name: rql-query +description: "Query the live Unity scene (GameObjects, components, assets) with RQL in ONE call: filter, project, sort, count, walk hierarchies. Far fewer calls/tokens than reading objects one by one." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# RQL / Query + +Run a read-only RQL query against the live Unity Editor scene and return compact rows. One precise query beats many exploratory calls. Changes need rql-mutate. + +RQL: source | stage | stage ... +Sources: objects (every GameObject in the loaded scenes, inactive included), roots, scenes, selection, prefab (the prefab open in prefab editing mode), console (Editor log entries), shaders, componentTypes, profiler (memory / rendering / frame snapshots; call Start / Stop / Save), tests (test methods; run a selection with tests-run query), testResults (last run), editor (Editor state and operations). Assets: unity.assets("t:Material") or unity.assets("t:Prefab", "Assets/Enemies"), unity.asset("Assets/Mats/Red.mat"). ref("Light#1234") resolves a $ref; unity.find("Player") or unity.find("Level/Pillar_1") a GameObject by unique name or path. +Stages: + where filter + select a b.c alias=(expr) project columns (wrap computed expressions in parentheses) + sort [desc], ... stable sort + first N | skip N | count + get replace each item by a member (lists are flattened) + recurse children [max-depth=N] [include-self=false] walk the hierarchy (input items included by default) + distinct [expr] | group-by expr | sum expr | min expr | max expr | avg expr +Expressions: == != < <= > >= and or not + - * / %; contains, starts-with, ends-with (case-insensitive); matches "regex"; x in [a, b]; x is null; x is not null; $ is Light (includes subclasses); has(member). Literals: numbers, "strings", true/false/null, lists [a, b], objects {x: 1, y: 2}. +Paths: a.b.c, list[0], map["key"]; .member on a list maps over its elements. List methods: .any(pred) .all(pred) .count([pred]) .sum(e) .min(e) .max(e) .first([pred]); inside them bare names refer to the element, falling back to the outer item. +Meta: $ (current item), $ref (stable id such as Light#1234), $type, $path, $index, $depth. Enums compare to strings (type == "Spot"); == on strings is case-sensitive. +Unity: GameObject has components (list), children (list), active, name, tag, layer, transform (position, localPosition, eulerAngles, localScale, parent). Component members are the C# members (public + [SerializeField]); find them via objects | get components | where $ is Light. Vectors/colors print as (x, y, z); write "(1, 2, 3)", [1, 2, 3] or {x: 1, y: 2, z: 3}; colors also "#ff8800". Material shader properties: properties["_Color"]. Destroyed objects read as null (missing references: where target == null). Navigate with paths or get; select only projects output columns. +Results come back as compact rows (header line, then col|col). Long results are truncated — refine with where/first or use count. Unknown members produce warnings with suggestions; rql-schema(type) lists a type's members. + +Examples: + objects | where name contains "Enemy" and active | select $ref name transform.position + objects | get components | where $ is Light and intensity > 2 | select gameObject.name intensity color + roots | recurse children | where components.count() == 1 | select $path name + unity.assets("t:Material") | select name shader.name properties["_Color"] + console | where logType == "Error" | sort sequence desc | first 5 | select message + scenes | select name path isDirty rootCount + componentTypes | where name contains "Collider" | select name + editor | select isPlaying isPaused selection + +## How to Call + +```bash +unity-mcp-cli run-tool rql-query --input '{ + "query": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool rql-query --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool rql-query --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 | +|------|------|----------|-------------| +| `query` | `string` | Yes | RQL query, e.g. objects | where $ is ... | select $ref name | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "query": { + "type": "string" + } + }, + "required": [ + "query" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/rql-schema/SKILL.md b/.opencode/skills/rql-schema/SKILL.md new file mode 100644 index 0000000..c34e9e8 --- /dev/null +++ b/.opencode/skills/rql-schema/SKILL.md @@ -0,0 +1,60 @@ +--- +name: rql-schema +description: List RQL sources and the component types present in the loaded scenes; pass a type name for its members. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# RQL / Schema + +Without a type: RQL sources, asset functions, and the component types present in the loaded scenes (with counts), plus GameObject and Transform members. With a type name (e.g. "Light", "Enemy", "Vector3"): that type's members (name type; ro = read-only) and methods. Use it before querying an unfamiliar component. + +## How to Call + +```bash +unity-mcp-cli run-tool rql-schema --input '{ + "type": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool rql-schema --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool rql-schema --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 | +|------|------|----------|-------------| +| `type` | `string` | No | Optional type name, e.g. "Light", "Rigidbody", "Enemy", "Vector3" | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "type": { + "type": "string" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/scene-create/SKILL.md b/.opencode/skills/scene-create/SKILL.md new file mode 100644 index 0000000..7c0fa2e --- /dev/null +++ b/.opencode/skills/scene-create/SKILL.md @@ -0,0 +1,166 @@ +--- +name: scene-create +description: Create a new Unity scene asset and save it at the given `.unity` path. Use 'scene-list-opened' to inspect the resulting opened-scene set afterwards. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Create + +Create new scene in the project assets. Use 'scene-list-opened' tool to list all opened scenes after creation. + +## Inputs + +- `path` — must end with `.unity`. Non-empty. +- `newSceneSetup` (default `DefaultGameObjects`) — Unity's `NewSceneSetup` flag (`EmptyScene` or `DefaultGameObjects`). +- `newSceneMode` (default `Single`) — `Single` closes other scenes, `Additive` keeps them open. + +## Behavior + +Calls `EditorSceneManager.NewScene` + `SaveScene(path)` on the main thread, repaints editor windows, and returns a `SceneDataShallow` for the newly created scene. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-create --input '{ + "path": "string_value", + "newSceneSetup": "string_value", + "newSceneMode": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-create --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 | +|------|------|----------|-------------| +| `path` | `string` | Yes | Path to the scene file. Should end with ".unity" extension. | +| `newSceneSetup` | `any` | No | | +| `newSceneMode` | `any` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "newSceneSetup": { + "$ref": "#/$defs/UnityEditor.SceneManagement.NewSceneSetup" + }, + "newSceneMode": { + "$ref": "#/$defs/UnityEditor.SceneManagement.NewSceneMode" + } + }, + "$defs": { + "UnityEditor.SceneManagement.NewSceneSetup": { + "type": "string", + "enum": [ + "EmptyScene", + "DefaultGameObjects" + ] + }, + "UnityEditor.SceneManagement.NewSceneMode": { + "type": "string", + "enum": [ + "Single", + "Additive" + ] + } + }, + "required": [ + "path" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SceneDataShallow", + "description": "Scene reference. Used to find a Scene." + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.SceneDataShallow": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "IsLoaded": { + "type": "boolean" + }, + "IsDirty": { + "type": "boolean" + }, + "IsSubScene": { + "type": "boolean" + }, + "IsValidScene": { + "type": "boolean", + "description": "Whether this is a valid Scene. A Scene may be invalid if, for example, you tried to open a Scene that does not exist. In this case, the Scene returned from EditorSceneManager.OpenScene would return False for IsValid." + }, + "RootCount": { + "type": "integer" + }, + "path": { + "type": "string", + "description": "Path to the Scene within the project. Starts with 'Assets/'" + }, + "buildIndex": { + "type": "integer", + "description": "Build index of the Scene in the Build Settings." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "IsLoaded", + "IsDirty", + "IsSubScene", + "IsValidScene", + "RootCount", + "buildIndex", + "instanceID" + ], + "description": "Scene reference. Used to find a Scene." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/scene-get-data/SKILL.md b/.opencode/skills/scene-get-data/SKILL.md new file mode 100644 index 0000000..48f5f21 --- /dev/null +++ b/.opencode/skills/scene-get-data/SKILL.md @@ -0,0 +1,437 @@ +--- +name: scene-get-data +description: Retrieve the list of root GameObjects in the specified opened scene (or the active scene when `openedSceneName` is empty). Supports token-saving path-scoped reads over the root-GameObjects array via `paths` or `viewQuery`. Use 'scene-list-opened' to enumerate scenes. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Get Data + +This tool retrieves the list of root GameObjects in the specified scene. Use 'scene-list-opened' tool to get the list of all opened scenes. + +## Toggles (all default `false` to keep responses small) + +- `includeRootGameObjects` — include root GameObjects in the scene data. +- `includeChildrenDepth` (default 3) — depth of the hierarchy to include. +- `includeBounds` — include 3D bounds for GameObjects. +- `includeData` — include serialized component data for GameObjects. + +## Path-scoped reads (token-saving) + +Supply `paths` to read only the listed fields/elements from the scene's root-GameObjects array via `Reflector.TryReadAt`, or `viewQuery` to navigate/filter the same array via `Reflector.View`. The result populates `Data` on the returned `SceneData`. These two parameters are mutually exclusive. + +## Path syntax + +`fieldName`, `nested/field`, `arrayField/[i]`, `dictField/[key]`. Leading `#/` is stripped. Example: `paths=['[0]/name']` reads the name of the first root GameObject. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-get-data --input '{ + "openedSceneName": "string_value", + "includeRootGameObjects": false, + "includeChildrenDepth": 0, + "includeBounds": false, + "includeData": false, + "paths": "string_value", + "viewQuery": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-get-data --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-get-data --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 | +|------|------|----------|-------------| +| `openedSceneName` | `string` | No | Name of the opened scene. If empty or null, the active scene will be used. | +| `includeRootGameObjects` | `boolean` | No | If true, includes root GameObjects in the scene data. | +| `includeChildrenDepth` | `integer` | No | Determines the depth of the hierarchy to include. | +| `includeBounds` | `boolean` | No | If true, includes bounding box information for GameObjects. | +| `includeData` | `boolean` | No | If true, includes component data for GameObjects. | +| `paths` | `any` | No | Optional. List of paths to read individually via Reflector.TryReadAt against the scene's root-GameObjects array. Path syntax: 'fieldName', '[i]/field', '[i]/component/[j]/property'. Mutually exclusive with 'viewQuery'. | +| `viewQuery` | `any` | No | Optional. View-query filter routed through Reflector.View on the scene's root-GameObjects array. Mutually exclusive with 'paths'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "openedSceneName": { + "type": "string" + }, + "includeRootGameObjects": { + "type": "boolean" + }, + "includeChildrenDepth": { + "type": "integer" + }, + "includeBounds": { + "type": "boolean" + }, + "includeData": { + "type": "boolean" + }, + "paths": { + "$ref": "#/$defs/System.Collections.Generic.List(System.String)" + }, + "viewQuery": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.ViewQuery" + } + }, + "$defs": { + "System.Collections.Generic.List(System.String)": { + "type": "array", + "items": { + "type": "string" + } + }, + "System.Type": { + "type": "string" + }, + "com.IvanMurzak.ReflectorNet.Model.ViewQuery": { + "type": "object", + "properties": { + "Path": { + "type": "string", + "description": "Navigate to this path first, then serialize only that subtree. Path segments are separated by '/'. Use '[i]' for array/list index (e.g. 'users/[2]/name') and '[key]' for dictionary entry (e.g. 'config/[timeout]'). A leading '#/' is stripped automatically. Examples: 'admin/name', 'users/[0]/email', 'config/[timeout]'. Leave null to start from the root object." + }, + "NamePattern": { + "type": "string", + "description": "Case-insensitive .NET regex pattern matched against field and property names. Only branches containing at least one match are kept in the result tree. Examples: 'orbitRadius' (exact name), 'orbit.*' (prefix match), 'radius|speed' (either name). When nothing matches, the root envelope is returned with empty fields/props. Leave null to return all fields and properties without filtering." + }, + "MaxDepth": { + "type": "integer", + "description": "Maximum nesting depth of the returned serialized tree. 0 = root type name and value only — no nested fields or properties. 1 = one level of fields/props visible, their children stripped. 2 = two levels visible, and so on. Leave null (default) for unlimited depth." + }, + "TypeFilter": { + "$ref": "#/$defs/System.Type", + "description": "When set, prunes the result tree to members whose runtime type is assignable to this type. Non-matching branches are removed; the root envelope is always preserved. Examples: typeof(float) keeps only float fields, typeof(IEnumerable) keeps only collections. Leave null to include members of any type." + } + } + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SceneData", + "description": "Scene reference. Used to find a Scene." + } + }, + "$defs": { + "System.Collections.Generic.List(AIGD.GameObjectData)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectData" + } + }, + "AIGD.GameObjectData": { + "type": "object", + "properties": { + "Reference": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "Data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "GameObject editable data (tag, layer, etc)." + }, + "Bounds": { + "$ref": "#/$defs/UnityEngine.Bounds", + "description": "Bounds of the GameObject." + }, + "Hierarchy": { + "$ref": "#/$defs/AIGD.GameObjectMetadata", + "description": "Hierarchy metadata of the GameObject." + }, + "Components": { + "$ref": "#/$defs/AIGD.ComponentDataShallow-1", + "description": "Attached components shallow data of the GameObject (Read-only, use Component modification tool for modification)." + } + } + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "UnityEngine.Bounds": { + "type": "object", + "properties": { + "center": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ] + }, + "size": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ] + } + }, + "required": [ + "center", + "size" + ], + "additionalProperties": false + }, + "AIGD.GameObjectMetadata": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sceneName": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "activeSelf": { + "type": "boolean" + }, + "activeInHierarchy": { + "type": "boolean" + }, + "children": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.GameObjectMetadata)" + } + }, + "required": [ + "instanceID", + "activeSelf", + "activeInHierarchy" + ] + }, + "System.Collections.Generic.List(AIGD.GameObjectMetadata)": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.GameObjectMetadata" + } + }, + "AIGD.ComponentDataShallow-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.ComponentDataShallow" + } + }, + "AIGD.ComponentDataShallow": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId" + }, + "typeName": { + "type": "string" + }, + "isEnabled": { + "type": "string", + "enum": [ + "False", + "True", + "NA" + ] + } + }, + "required": [ + "instanceID", + "isEnabled" + ] + }, + "AIGD.SceneData": { + "type": "object", + "properties": { + "RootGameObjects": { + "$ref": "#/$defs/System.Collections.Generic.List(AIGD.GameObjectData)" + }, + "Data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Path-scoped read or view-query result, populated when 'paths' or 'viewQuery' is supplied to the scene-get-data tool. Null otherwise." + }, + "Name": { + "type": "string" + }, + "IsLoaded": { + "type": "boolean" + }, + "IsDirty": { + "type": "boolean" + }, + "IsSubScene": { + "type": "boolean" + }, + "IsValidScene": { + "type": "boolean", + "description": "Whether this is a valid Scene. A Scene may be invalid if, for example, you tried to open a Scene that does not exist. In this case, the Scene returned from EditorSceneManager.OpenScene would return False for IsValid." + }, + "RootCount": { + "type": "integer" + }, + "path": { + "type": "string", + "description": "Path to the Scene within the project. Starts with 'Assets/'" + }, + "buildIndex": { + "type": "integer", + "description": "Build index of the Scene in the Build Settings." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "IsLoaded", + "IsDirty", + "IsSubScene", + "IsValidScene", + "RootCount", + "buildIndex", + "instanceID" + ], + "description": "Scene reference. Used to find a Scene." + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/scene-list-opened/SKILL.md b/.opencode/skills/scene-list-opened/SKILL.md new file mode 100644 index 0000000..6500353 --- /dev/null +++ b/.opencode/skills/scene-list-opened/SKILL.md @@ -0,0 +1,137 @@ +--- +name: scene-list-opened +description: List every scene currently opened in the Unity Editor as a shallow snapshot (name, path, build flags). Use 'scene-get-data' for the deep view of a specific scene. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / List Opened + +Returns the list of currently opened scenes in Unity Editor. Use 'scene-get-data' tool to get detailed information about a specific scene. + +## Behavior + +Maps `OpenedScenes` through `ToSceneDataShallow()` on the main thread and returns the resulting array. No filtering or pagination — every opened scene is included. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-list-opened --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-list-opened --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-list-opened --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SceneDataShallow-1" + } + }, + "$defs": { + "AIGD.SceneDataShallow": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "IsLoaded": { + "type": "boolean" + }, + "IsDirty": { + "type": "boolean" + }, + "IsSubScene": { + "type": "boolean" + }, + "IsValidScene": { + "type": "boolean", + "description": "Whether this is a valid Scene. A Scene may be invalid if, for example, you tried to open a Scene that does not exist. In this case, the Scene returned from EditorSceneManager.OpenScene would return False for IsValid." + }, + "RootCount": { + "type": "integer" + }, + "path": { + "type": "string", + "description": "Path to the Scene within the project. Starts with 'Assets/'" + }, + "buildIndex": { + "type": "integer", + "description": "Build index of the Scene in the Build Settings." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "IsLoaded", + "IsDirty", + "IsSubScene", + "IsValidScene", + "RootCount", + "buildIndex", + "instanceID" + ], + "description": "Scene reference. Used to find a Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.SceneDataShallow-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.SceneDataShallow", + "description": "Scene reference. Used to find a Scene." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/scene-open/SKILL.md b/.opencode/skills/scene-open/SKILL.md new file mode 100644 index 0000000..8f29183 --- /dev/null +++ b/.opencode/skills/scene-open/SKILL.md @@ -0,0 +1,187 @@ +--- +name: scene-open +description: Open a Unity scene asset in Single or Additive mode. Returns the post-open list of all opened scenes. Use 'assets-find' to locate the scene asset first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Open + +Open scene from the project asset file. Use 'assets-find' tool to find the scene asset first. + +## Inputs + +- `sceneRef` — `AssetObjectRef` pointing at a `SceneAsset`. Throws if the asset cannot be resolved or is not a `SceneAsset`. +- `loadSceneMode` (default `Single`): + - `Single` — closes the currently opened scenes and opens this one. + - `Additive` — keeps the currently opened scenes and opens this one alongside them. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-open --input '{ + "sceneRef": "string_value", + "loadSceneMode": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-open --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-open --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 | +|------|------|----------|-------------| +| `sceneRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. | +| `loadSceneMode` | `string` | No | Open scene mode. Single: closes the current scenes and opens a new one. Additive: keeps the current scene and opens additional one. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sceneRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef" + }, + "loadSceneMode": { + "type": "string", + "enum": [ + "Single", + "Additive", + "AdditiveWithoutLoading" + ] + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "sceneRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SceneDataShallow-1" + } + }, + "$defs": { + "AIGD.SceneDataShallow": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "IsLoaded": { + "type": "boolean" + }, + "IsDirty": { + "type": "boolean" + }, + "IsSubScene": { + "type": "boolean" + }, + "IsValidScene": { + "type": "boolean", + "description": "Whether this is a valid Scene. A Scene may be invalid if, for example, you tried to open a Scene that does not exist. In this case, the Scene returned from EditorSceneManager.OpenScene would return False for IsValid." + }, + "RootCount": { + "type": "integer" + }, + "path": { + "type": "string", + "description": "Path to the Scene within the project. Starts with 'Assets/'" + }, + "buildIndex": { + "type": "integer", + "description": "Build index of the Scene in the Build Settings." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "IsLoaded", + "IsDirty", + "IsSubScene", + "IsValidScene", + "RootCount", + "buildIndex", + "instanceID" + ], + "description": "Scene reference. Used to find a Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.SceneDataShallow-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.SceneDataShallow", + "description": "Scene reference. Used to find a Scene." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/scene-save/SKILL.md b/.opencode/skills/scene-save/SKILL.md new file mode 100644 index 0000000..181218d --- /dev/null +++ b/.opencode/skills/scene-save/SKILL.md @@ -0,0 +1,74 @@ +--- +name: scene-save +description: Save an opened scene back to its asset file (or to a new path when `path` is provided). When `openedSceneName` is empty, saves the currently active scene. Use 'scene-list-opened' to find the scene name first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Save + +Save Opened scene to the asset file. Use 'scene-list-opened' tool to get the list of all opened scenes. + +## Inputs + +- `openedSceneName` (optional) — name of an opened scene to save. Empty/null = active scene. +- `path` (optional) — destination `.unity` path. Empty/null = save back to the scene's existing path. + +## Validation + +Throws if the scene cannot be resolved, has no existing path AND no override path was supplied, or the supplied path does not end with `.unity`. On `EditorSceneManager.SaveScene` failure, surfaces an error with the current opened-scenes list for diagnosis. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-save --input '{ + "openedSceneName": "string_value", + "path": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-save --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-save --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 | +|------|------|----------|-------------| +| `openedSceneName` | `string` | No | Name of the opened scene that should be saved. Could be empty if need to save the current active scene. | +| `path` | `string` | No | Path to the scene file. Should end with ".unity". If null or empty save to the existed scene asset file. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "openedSceneName": { + "type": "string" + }, + "path": { + "type": "string" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/scene-set-active/SKILL.md b/.opencode/skills/scene-set-active/SKILL.md new file mode 100644 index 0000000..54897b0 --- /dev/null +++ b/.opencode/skills/scene-set-active/SKILL.md @@ -0,0 +1,178 @@ +--- +name: scene-set-active +description: Mark an opened scene as the Editor's active scene (the one new GameObjects are added to and that's used as the default for many operations). Use 'scene-list-opened' to enumerate opened scenes first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Set Active + +Set the specified opened scene as the active scene. Use 'scene-list-opened' tool to get the list of all opened scenes. + +## Inputs + +- `sceneRef` — `AssetObjectRef` pointing at a `SceneAsset`. The scene must already be opened. + +## Behavior + +Resolves the `SceneAsset`, finds the matching opened scene (by name then by path), and calls `EditorSceneManager.SetActiveScene`. No-op if the scene is already active. Returns the post-call snapshot of opened scenes. + +## How to Call + +```bash +unity-mcp-cli run-tool scene-set-active --input '{ + "sceneRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-set-active --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-set-active --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 | +|------|------|----------|-------------| +| `sceneRef` | `any` | Yes | Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "sceneRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + } + }, + "required": [ + "sceneRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.SceneDataShallow-1" + } + }, + "$defs": { + "AIGD.SceneDataShallow": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "IsLoaded": { + "type": "boolean" + }, + "IsDirty": { + "type": "boolean" + }, + "IsSubScene": { + "type": "boolean" + }, + "IsValidScene": { + "type": "boolean", + "description": "Whether this is a valid Scene. A Scene may be invalid if, for example, you tried to open a Scene that does not exist. In this case, the Scene returned from EditorSceneManager.OpenScene would return False for IsValid." + }, + "RootCount": { + "type": "integer" + }, + "path": { + "type": "string", + "description": "Path to the Scene within the project. Starts with 'Assets/'" + }, + "buildIndex": { + "type": "integer", + "description": "Build index of the Scene in the Build Settings." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "IsLoaded", + "IsDirty", + "IsSubScene", + "IsValidScene", + "RootCount", + "buildIndex", + "instanceID" + ], + "description": "Scene reference. Used to find a Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "AIGD.SceneDataShallow-1": { + "type": "array", + "items": { + "$ref": "#/$defs/AIGD.SceneDataShallow", + "description": "Scene reference. Used to find a Scene." + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/scene-unload/SKILL.md b/.opencode/skills/scene-unload/SKILL.md new file mode 100644 index 0000000..7d084dc --- /dev/null +++ b/.opencode/skills/scene-unload/SKILL.md @@ -0,0 +1,132 @@ +--- +name: scene-unload +description: Unload an opened scene from the Unity Editor (asynchronously via `SceneManager.UnloadSceneAsync`). Use 'scene-list-opened' to find the scene name first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Scene / Unload + +Unload scene from the Opened scenes in Unity Editor. Use 'scene-list-opened' tool to get the list of all opened scenes. + +## Inputs + +- `name` — required non-empty scene name. Must match an opened scene; otherwise throws. + +## Behavior + +Runs `SceneManager.UnloadSceneAsync` on the main thread and awaits completion. Returns an `UnloadSceneResult` containing the scene name and an `AssetObjectRef` to its asset (or `null` if the scene was not backed by an asset on disk). + +## How to Call + +```bash +unity-mcp-cli run-tool scene-unload --input '{ + "name": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool scene-unload --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool scene-unload --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 | +|------|------|----------|-------------| +| `name` | `string` | Yes | Name of the loaded scene. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/AIGD.UnloadSceneResult" + } + }, + "$defs": { + "AIGD.AssetObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.UnloadSceneResult": { + "type": "object", + "properties": { + "Name": { + "type": "string", + "description": "Name of the unloaded scene." + }, + "AssetObjectRef": { + "$ref": "#/$defs/AIGD.AssetObjectRef", + "description": "Reference to the unloaded scene asset." + } + } + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/screenshot-camera/SKILL.md b/.opencode/skills/screenshot-camera/SKILL.md new file mode 100644 index 0000000..78dfdcf --- /dev/null +++ b/.opencode/skills/screenshot-camera/SKILL.md @@ -0,0 +1,79 @@ +--- +name: screenshot-camera +description: Capture a screenshot from a Unity `Camera` and return it as a PNG image for direct LLM inspection. Falls back to `Camera.main` (then any active camera) when `cameraRef` is null. Width and height are capped to keep response size manageable. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Screenshot / Camera + +Captures a screenshot from a camera and returns it as an image. If no camera is specified, uses the Main Camera. Returns the image directly for visual inspection by the LLM. + +## Inputs + +- `cameraRef` (optional) — reference to a GameObject hosting a `Camera`. When null, `Camera.main` is used; if there is no main camera, the first entry of `Camera.allCameras` is used. +- `width` (default 1920) / `height` (default 1080) — output pixels. Must be > 0 and ≤ `MaxDimension`. + +## Behavior + +Allocates a temporary `RenderTexture`, swaps it onto the chosen camera, calls `Camera.Render`, reads back via `Texture2D.ReadPixels`, encodes as PNG, and restores the camera's prior `targetTexture`. Returns a `ResponseCallTool.Image` with `image/png` MIME and a descriptive caption. + +## How to Call + +```bash +unity-mcp-cli run-tool screenshot-camera --input '{ + "cameraRef": "string_value", + "width": 0, + "height": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool screenshot-camera --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool screenshot-camera --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 | +|------|------|----------|-------------| +| `cameraRef` | `string` | No | Reference to the camera GameObject. If not specified, uses the Main Camera. RQL: GameObjectRef | +| `width` | `integer` | No | Width of the screenshot in pixels. | +| `height` | `integer` | No | Height of the screenshot in pixels. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "cameraRef": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/screenshot-game-view/SKILL.md b/.opencode/skills/screenshot-game-view/SKILL.md new file mode 100644 index 0000000..5483918 --- /dev/null +++ b/.opencode/skills/screenshot-game-view/SKILL.md @@ -0,0 +1,64 @@ +--- +name: screenshot-game-view +description: Capture a screenshot of the Unity Editor's Game View by reading its internal render texture directly. Image size matches the current Game View resolution; the tool corrects Y-flip on DirectX / Metal so the output is always upright. Requires an open Game View window. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Screenshot / Game View + +Captures a screenshot from the Unity Editor Game View and returns it as an image. Reads the Game View's own render texture directly via the Unity Editor API. The image size matches the current Game View resolution. Returns the image directly for visual inspection by the LLM. + +## Behavior + +Locates `UnityEditor.GameView`, repaints it, then reflects the `m_RenderTexture` field and reads back via `Texture2D.ReadPixels`. On graphics APIs whose UV origin is top-left (`SystemInfo.graphicsUVStartsAtTop`), the read-back pixels are vertically flipped before encoding so the orientation matches what the user sees. Returns a PNG image with the resolution baked into the caption. + +## How to Call + +```bash +unity-mcp-cli run-tool screenshot-game-view --input '{ + "nothing": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool screenshot-game-view --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool screenshot-game-view --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 | +|------|------|----------|-------------| +| `nothing` | `string` | No | | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "nothing": { + "type": "string" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/screenshot-isolated/SKILL.md b/.opencode/skills/screenshot-isolated/SKILL.md new file mode 100644 index 0000000..8995383 --- /dev/null +++ b/.opencode/skills/screenshot-isolated/SKILL.md @@ -0,0 +1,150 @@ +--- +name: screenshot-isolated +description: Render a target GameObject from a chosen camera angle with optional layer-based isolation, configurable background (solid/skybox/transparent), multi-light setup via JSON, and Composite (2x2 Front/Right/Back/Top) mode. Returns a PNG image. When isolated=true, inactive children may briefly fire OnEnable — see the body for side-effect notes. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Screenshot / Isolated GameObject + +Renders a screenshot of a target GameObject with configurable isolation, background, camera angle, and lighting. When isolated=true (default), only the target object is visible via layer-based culling and inactive children of the target are temporarily activated for the render (their OnEnable callbacks may fire — restored in finally, but side effects like audio/network/animation events are not undoable). When isolated=false, the existing scene state is rendered as-is without activating inactive objects. Supports custom multi-light setups via JSON. Returns a base64-encoded PNG. + +## Camera views + +`Front` (-Z), `Back` (+Z), `Left` (-X), `Right` (+X), `Top` (+Y), `Bottom` (-Y). `Composite` produces a single 2x2 image (Front, Right, Back, Top) where each sub-view uses the requested `resolution`, so the final image is `resolution*2 x resolution*2`. + +## Background modes + +- `SolidColor` — flat color from `backgroundColor` (hex string). +- `Skybox` — current scene skybox. +- `Transparent` — alpha-zero (ARGB32 PNG; useful for compositing). + +## Lights + +`lights` is an optional JSON array of `IsolatedLightConfig` objects (type, color, intensity, rotation, position, range, spotAngle, innerSpotAngle, shadows, shadowStrength, bounceIntensity, colorTemperature, cookieSize, cullingMask, renderMode). When `null`, a default 1.0-intensity white directional light at rotation `(50, -30, 0)` is used. Empty array `[]` explicitly disables extra lights. + +## Side-effect caveat + +Isolation temporarily activates inactive child GameObjects so their renderers participate in the cull. Activation state is restored in `finally`, but OnEnable-triggered side effects (audio, networking, animation events) are not rewindable. Set `isolated=false` if your scene contains scripts that must not fire OnEnable during the capture. + +## How to Call + +```bash +unity-mcp-cli run-tool screenshot-isolated --input '{ + "gameObjectRef": "string_value", + "includeChildren": false, + "isolated": false, + "backgroundMode": "string_value", + "backgroundColor": "string_value", + "cameraView": "string_value", + "fieldOfView": 0, + "nearClipPlane": 0, + "farClipPlane": 0, + "padding": 0, + "lights": "string_value", + "resolution": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool screenshot-isolated --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool screenshot-isolated --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the target GameObject (by instanceId, path, or name). RQL: GameObjectRef | +| `includeChildren` | `boolean` | No | Include child GameObjects in the render. Default: true. | +| `isolated` | `boolean` | No | When true, renders only the target object using layer-based culling. When false, renders the full scene from the computed camera position. Default: true. | +| `backgroundMode` | `string` | No | Background mode. Default: SolidColor. | +| `backgroundColor` | `string` | No | Hex background color (e.g. '#404040'). Only used when backgroundMode is SolidColor. | +| `cameraView` | `string` | No | Camera angle relative to the target object's bounding box. Default: Front. | +| `fieldOfView` | `number` | No | Camera vertical field of view in degrees. Default: 60. | +| `nearClipPlane` | `number` | No | Camera near clip plane distance. Default: 0.01. | +| `farClipPlane` | `number` | No | Camera far clip plane distance. Default: 1000. | +| `padding` | `number` | No | Framing multiplier around the object. 1.0 = tight fit, 1.5 = 50% extra space. Default: 1.2. | +| `lights` | `string` | No | JSON array of light configurations. Each object defines type, color, intensity, rotation, position, range, spotAngle, shadows, etc. When null, a default white directional light at rotation (50,-30,0) is used. Example: [{"type":"Directional","color":"#FFF4E5","intensity":1.2,"rotation":[45,-45,0]}] | +| `resolution` | `integer` | No | Output image resolution in pixels (width = height). Default: 512. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "includeChildren": { + "type": "boolean" + }, + "isolated": { + "type": "boolean" + }, + "backgroundMode": { + "type": "string", + "enum": [ + "SolidColor", + "Skybox", + "Transparent" + ] + }, + "backgroundColor": { + "type": "string" + }, + "cameraView": { + "type": "string", + "enum": [ + "Front", + "Back", + "Left", + "Right", + "Top", + "Bottom", + "Composite" + ] + }, + "fieldOfView": { + "type": "number" + }, + "nearClipPlane": { + "type": "number" + }, + "farClipPlane": { + "type": "number" + }, + "padding": { + "type": "number" + }, + "lights": { + "type": "string" + }, + "resolution": { + "type": "integer" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/screenshot-scene-view/SKILL.md b/.opencode/skills/screenshot-scene-view/SKILL.md new file mode 100644 index 0000000..9301982 --- /dev/null +++ b/.opencode/skills/screenshot-scene-view/SKILL.md @@ -0,0 +1,73 @@ +--- +name: screenshot-scene-view +description: Capture a screenshot from the Unity Editor Scene View at the requested size. Renders via the Scene View's active camera onto a temporary `RenderTexture`. Requires an open Scene View. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Screenshot / Scene View + +Captures a screenshot from the Unity Editor Scene View and returns it as an image. Returns the image directly for visual inspection by the LLM. + +## Inputs + +- `width` (default 1920) / `height` (default 1080) — output pixels. Must be > 0 and ≤ `MaxDimension`. + +## Behavior + +Uses `SceneView.lastActiveSceneView` (falls back to the first window in `SceneView.sceneViews`). Allocates a temporary `RenderTexture`, swaps it onto the Scene View's camera, calls `Render`, reads back with `Texture2D.ReadPixels`, encodes PNG, and restores the camera's prior `targetTexture`. Throws/errors when no Scene View is open or the Scene View camera is null. + +## How to Call + +```bash +unity-mcp-cli run-tool screenshot-scene-view --input '{ + "width": 0, + "height": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool screenshot-scene-view --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool screenshot-scene-view --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 | +|------|------|----------|-------------| +| `width` | `integer` | No | Width of the screenshot in pixels. | +| `height` | `integer` | No | Height of the screenshot in pixels. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/script-delete/SKILL.md b/.opencode/skills/script-delete/SKILL.md new file mode 100644 index 0000000..6777f88 --- /dev/null +++ b/.opencode/skills/script-delete/SKILL.md @@ -0,0 +1,75 @@ +--- +name: script-delete +description: Delete one or more `.cs` script files from disk, refresh the AssetDatabase, and wait for Unity compilation to settle before delivering the final result via the request's `requestId`. Pair with 'script-read' to inspect files before deletion. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Script / Delete + +Delete the script file(s). Does AssetDatabase.Refresh() and waits for Unity compilation to complete before reporting results. Use 'script-read' tool to read existing script files first. + +## Inputs + +- `files` — non-empty array of `.cs` paths. Every entry must exist on disk. +- `requestId` — required for the processing/delivered-later contract. + +## Behavior + +Validates the array (non-empty, every entry ends with `.cs`, every entry exists). Deletes each file plus its sibling `.meta` (when present). Calls `AssetDatabase.Refresh` and schedules a post-compilation notification — the final response is delivered after Unity finishes the recompile triggered by the delete. + +## How to Call + +```bash +unity-mcp-cli run-tool script-delete --input '{ + "files": [] +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool script-delete --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool script-delete --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 | +|------|------|----------|-------------| +| `files` | `array` | Yes | File paths to the files. Sample: "Assets/Scripts/MyScript.cs". | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "files": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "files" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/script-execute/SKILL.md b/.opencode/skills/script-execute/SKILL.md new file mode 100644 index 0000000..63193c2 --- /dev/null +++ b/.opencode/skills/script-execute/SKILL.md @@ -0,0 +1,120 @@ +--- +name: script-execute +description: "Compiles and runs C# in the Unity Editor (Roslyn): plain statements with the last expression as the result, or a full class with a static method. See the skill body for the modes, usings/include and Unity object parameters." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Script / Execute + +## Modes + +- **Snippet** (default): plain statements. The last expression is the result (`GameObject.Find("Player").name`). Own `using` lines, local classes and functions are allowed; `await` works. Usings for System, LINQ, UnityEngine, UnityEditor and AIGD are already there; an unknown type name is imported automatically when exactly one namespace has it. +- **Full code**: when `csharpCode` declares class `className` with a static method `methodName`, that method runs. +- `isMethodBody=true` forces snippet mode. + +Compile errors point at your own lines (`snippet.cs(2,5)`). + +## usings / include + +- `usings`: extra namespaces, e.g. `["MyGame.Gameplay"]`. +- `include`: helper `.cs` files or folders (recursive), relative to `/.ai-game-dev/snippets`, compiled with the snippet. + +## Passing Unity objects as parameters + +Parameters become the snippet's variables (or the method's arguments, in order): + +- `UnityEngine.GameObject` — resolves an actual GameObject from value `{"instanceID": N}`, `{"name": "..."}`, or `{"path": "..."}`. +- `UnityEngine.Component` (or any component subtype) — resolves from `{"instanceID": N}`. +- `AIGD.GameObjectRef` — passes a `GameObjectRef` POCO directly; call `goRef.FindGameObject()` to resolve it. +- `AIGD.ComponentRef` — passes a `ComponentRef` POCO. +- `AIGD.ObjectRef` — passes a base `ObjectRef` POCO. + +## How to Call + +```bash +unity-mcp-cli run-tool script-execute --input '{ + "csharpCode": "string_value", + "className": "string_value", + "methodName": "string_value", + "parameters": "string_value", + "isMethodBody": false, + "usings": [], + "include": [] +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool script-execute --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool script-execute --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 | +|------|------|----------|-------------| +| `csharpCode` | `string` | Yes | C# code. Snippet: 'var go = GameObject.Find("Player");\ngo.transform.position'. Full: 'public class Script { public static int Main() { return 42; } }'. | +| `className` | `string` | No | Full mode: the class whose static method runs (namespace-qualified or not). | +| `methodName` | `string` | No | Full mode: the static method to run. | +| `parameters` | `string` | No | Values for the snippet's / method's parameters by name, e.g. {go: ref("GameObject#12"), n: 6}. Leave empty if there are none. RQL: SerializedMemberList | +| `isMethodBody` | `boolean` | No | Force snippet mode even when the code declares 'className'. | +| `usings` | `array` | No | Extra namespaces for snippet mode, e.g. ["MyGame.Gameplay"]. | +| `include` | `array` | No | Helper .cs files or folders (recursive) compiled with the code, relative to /.ai-game-dev/snippets. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "csharpCode": { + "type": "string" + }, + "className": { + "type": "string" + }, + "methodName": { + "type": "string" + }, + "parameters": { + "type": "string" + }, + "isMethodBody": { + "type": "boolean" + }, + "usings": { + "type": "array", + "items": { + "type": "string" + } + }, + "include": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "csharpCode" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/script-read/SKILL.md b/.opencode/skills/script-read/SKILL.md new file mode 100644 index 0000000..47e1688 --- /dev/null +++ b/.opencode/skills/script-read/SKILL.md @@ -0,0 +1,83 @@ +--- +name: script-read +description: Read a `.cs` script file and return its content as a string. Supports a 1-based `lineFrom`/`lineTo` slice for partial reads. Pair with 'script-update-or-create' to write back. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Script / Read + +Reads the content of a script file and returns it as a string. Use 'script-update-or-create' tool to update or create script files. + +## Inputs + +- `filePath` — required `.cs` path. Throws if missing on disk. +- `lineFrom` (default 1, 1-based) — start line; clamped into valid range. +- `lineTo` (default -1 = end-of-file, 1-based) — inclusive end line; clamped into valid range. + +## Behavior + +Reads the file with `File.ReadAllLines` and slices `[lineFrom..lineTo]` (inclusive). The slice indices are clamped — passing out-of-range `lineFrom`/`lineTo` is forgiving (read returns at-most the whole file). + +## How to Call + +```bash +unity-mcp-cli run-tool script-read --input '{ + "filePath": "string_value", + "lineFrom": 0, + "lineTo": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool script-read --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool script-read --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 | +|------|------|----------|-------------| +| `filePath` | `string` | Yes | The path to the file. Sample: "Assets/Scripts/MyScript.cs". | +| `lineFrom` | `integer` | No | The line number to start reading from (1-based). | +| `lineTo` | `integer` | No | The line number to stop reading at (1-based, -1 for all lines). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filePath": { + "type": "string" + }, + "lineFrom": { + "type": "integer" + }, + "lineTo": { + "type": "integer" + } + }, + "required": [ + "filePath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/script-update-or-create/SKILL.md b/.opencode/skills/script-update-or-create/SKILL.md new file mode 100644 index 0000000..e06d7f2 --- /dev/null +++ b/.opencode/skills/script-update-or-create/SKILL.md @@ -0,0 +1,79 @@ +--- +name: script-update-or-create +description: Write a `.cs` script file (create or overwrite) with the provided C# code. Validates syntax via Roslyn before write — invalid code is rejected with error details and the file is left untouched. Refreshes the AssetDatabase and delivers the final result via `requestId` after Unity finishes the triggered compilation. Use 'script-read' to inspect existing content first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Script / Update or Create + +Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. Use 'script-read' tool to read existing script files first. + +## Inputs + +- `filePath` — required `.cs` path. +- `content` — C# source. MUST pass `ScriptUtils.IsValidCSharpSyntax`. +- `requestId` — required for the processing/delivered-later contract. + +## Behavior + +Creates any missing parent directories, writes the file, then calls `AssetDatabase.Refresh` and schedules a post-compilation notification so the final response is delivered after Unity finishes the recompile. + +## How to Call + +```bash +unity-mcp-cli run-tool script-update-or-create --input '{ + "filePath": "string_value", + "content": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool script-update-or-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool script-update-or-create --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 | +|------|------|----------|-------------| +| `filePath` | `string` | Yes | The path to the file. Sample: "Assets/Scripts/MyScript.cs". | +| `content` | `string` | Yes | C# code - content of the file. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "filePath": { + "type": "string" + }, + "content": { + "type": "string" + } + }, + "required": [ + "filePath", + "content" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/splines-add-knot/SKILL.md b/.opencode/skills/splines-add-knot/SKILL.md new file mode 100644 index 0000000..099c056 --- /dev/null +++ b/.opencode/skills/splines-add-knot/SKILL.md @@ -0,0 +1,336 @@ +--- +name: splines-add-knot +description: Append a knot to a spline in a `SplineContainer`. A knot is a `BezierKnot` with a local position plus in/out tangents and a rotation. Returns the index of the appended knot. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Add Knot + +Append a new knot to the end of a spline. Knots define the control points the spline curve passes through. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `position` — local-space `Vector3` position of the knot (default zero). +- `tangentIn` — optional in tangent relative to the position (default `(0,0,-1)`). +- `tangentOut` — optional out tangent relative to the position (default `(0,0,1)`). +- `rotation` — optional euler-degrees rotation of the knot (default zero). +- `splineIndex` — which spline in the container to append to (default 0). + +## Behavior + +Builds a `BezierKnot` from the inputs, appends it to the chosen spline, marks the scene dirty, repaints, and returns the appended knot index plus the spline's new knot count. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-add-knot --input '{ + "gameObjectRef": "string_value", + "position": "string_value", + "tangentIn": "string_value", + "tangentOut": "string_value", + "rotation": "string_value", + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-add-knot --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-add-knot --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `position` | `any` | No | Local-space position of the new knot. | +| `tangentIn` | `any` | No | In tangent relative to the knot position. | +| `tangentOut` | `any` | No | Out tangent relative to the knot position. | +| `rotation` | `any` | No | Knot rotation in euler angles (degrees). | +| `splineIndex` | `integer` | No | Index of the spline inside the container to append to (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "knotIndex": { + "type": "integer", + "description": "Index of the affected knot in the spline (-1 when not applicable)." + }, + "knotCount": { + "type": "integer", + "description": "Resulting number of knots in the spline." + }, + "knot": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo", + "description": "Summary of the affected knot, when applicable." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "knotIndex", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-add-spline/SKILL.md b/.opencode/skills/splines-add-spline/SKILL.md new file mode 100644 index 0000000..488ec5e --- /dev/null +++ b/.opencode/skills/splines-add-spline/SKILL.md @@ -0,0 +1,232 @@ +--- +name: splines-add-spline +description: Add an additional empty `Spline` to an existing `SplineContainer`. A container can hold many splines; this appends one and returns its new index. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Add Spline + +Add a new empty `Spline` to a `SplineContainer`. Use this when you need more than one spline on the same GameObject (e.g. a multi-path container). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `closed` — optional; when true the new spline is a closed loop (default false). + +## Behavior + +Appends a new empty spline to the container, applies the `Closed` flag, marks the scene dirty, repaints, and returns the index of the new spline and the resulting spline count. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-add-spline --input '{ + "gameObjectRef": "string_value", + "closed": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-add-spline --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-add-spline --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `closed` | `boolean` | No | If true, the new spline is a closed loop. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "closed": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-AddSplineResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-AddSplineResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the newly added spline." + }, + "splineCount": { + "type": "integer", + "description": "Resulting number of splines in the container." + }, + "closed": { + "type": "boolean", + "description": "Whether the new spline is a closed loop." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "splineCount", + "closed", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-container-create/SKILL.md b/.opencode/skills/splines-container-create/SKILL.md new file mode 100644 index 0000000..cb8ff2f --- /dev/null +++ b/.opencode/skills/splines-container-create/SKILL.md @@ -0,0 +1,220 @@ +--- +name: splines-container-create +description: Create a new GameObject with a `SplineContainer` (and one initial empty `Spline`) in the active scene. Optionally set name, position and rotation. Returns the new GameObject reference and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Create Container + +Create a new GameObject hosting a `SplineContainer` component in the active scene. The `SplineContainer` is the authoring component that holds one or more `Spline`s; this tool seeds it with a single empty spline ready for knots. + +## Inputs + +- `name` — optional GameObject name (default `Spline`). +- `position` — optional world `Vector3` position (default zero). +- `rotation` — optional euler-degrees `Vector3` rotation (default zero). +- `closed` — optional; when true the seeded spline is a closed loop (default false). + +## Behavior + +Creates the GameObject, adds a `SplineContainer` with one empty spline, applies transform and the `Closed` flag, marks the scene dirty, repaints the Editor, and returns the new GameObject reference and instanceId. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-container-create --input '{ + "name": "string_value", + "position": "string_value", + "rotation": "string_value", + "closed": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-container-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-container-create --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 | +|------|------|----------|-------------| +| `name` | `string` | No | Name of the new SplineContainer GameObject. | +| `position` | `any` | No | World-space position of the GameObject. | +| `rotation` | `any` | No | World-space rotation of the GameObject in euler angles (degrees). | +| `closed` | `boolean` | No | If true, the seeded spline is a closed loop. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "closed": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerCreateResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerCreateResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the created SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the created SplineContainer component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the created GameObject." + }, + "gameObjectName": { + "type": "string", + "description": "Name of the created GameObject." + }, + "splineCount": { + "type": "integer", + "description": "Number of splines in the container." + }, + "closed": { + "type": "boolean", + "description": "Whether the seeded spline is a closed loop." + } + }, + "required": [ + "instanceId", + "splineCount", + "closed" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-evaluate/SKILL.md b/.opencode/skills/splines-evaluate/SKILL.md new file mode 100644 index 0000000..26c296a --- /dev/null +++ b/.opencode/skills/splines-evaluate/SKILL.md @@ -0,0 +1,268 @@ +--- +name: splines-evaluate +description: Evaluate a spline at normalized parameter `t` in [0,1], returning the local-space and world-space position, the tangent (direction of travel), and the up vector. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Evaluate + +Sample a spline at a point along its length. `t` is normalized: 0 is the first knot, 1 is the last knot (or the loop point for a closed spline). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `t` — normalized parameter in [0,1] (default 0.5). Values outside are clamped. +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Evaluates local position / tangent / up via `Spline.Evaluate`, transforms the position into world space using the container's transform, and returns all of them. The spline must have at least 2 knots. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-evaluate --input '{ + "gameObjectRef": "string_value", + "t": 0, + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-evaluate --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-evaluate --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `t` | `number` | No | Normalized parameter along the spline in [0,1] (clamped). Default 0.5. | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "t": { + "type": "number" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-EvaluateResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-EvaluateResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the evaluated spline in the container." + }, + "t": { + "type": "number", + "description": "Normalized parameter actually evaluated (after clamping)." + }, + "localPosition": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position at t." + }, + "worldPosition": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "World-space position at t." + }, + "tangent": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Tangent (direction of travel) at t." + }, + "up": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Up vector at t." + } + }, + "required": [ + "splineIndex", + "t", + "localPosition", + "worldPosition", + "tangent", + "up" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-get-knots/SKILL.md b/.opencode/skills/splines-get-knots/SKILL.md new file mode 100644 index 0000000..ebd0253 --- /dev/null +++ b/.opencode/skills/splines-get-knots/SKILL.md @@ -0,0 +1,293 @@ +--- +name: splines-get-knots +description: "Read all knots of a spline in a `SplineContainer`: per-knot position, in/out tangents, rotation, and tangent mode, plus the closed flag. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Get Knots + +Inspect the knots of a specific spline. Useful before editing to know the indices, positions, and tangent modes. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Enumerates every knot of the chosen spline and returns a per-knot summary plus the spline's `Closed` flag. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-get-knots --input '{ + "gameObjectRef": "string_value", + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-get-knots --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-get-knots --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-GetKnotsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-GetKnotsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the spline in the container." + }, + "closed": { + "type": "boolean", + "description": "Whether the spline is a closed loop." + }, + "knotCount": { + "type": "integer", + "description": "Number of knots in the spline." + }, + "knots": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo-1", + "description": "Per-knot summaries." + } + }, + "required": [ + "splineIndex", + "closed", + "knotCount" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-get/SKILL.md b/.opencode/skills/splines-get/SKILL.md new file mode 100644 index 0000000..21c3264 --- /dev/null +++ b/.opencode/skills/splines-get/SKILL.md @@ -0,0 +1,295 @@ +--- +name: splines-get +description: "Generic read: serialize any Splines `Component` (a type in the `UnityEngine.Splines` namespace, e.g. `SplineContainer`, `SplineInstantiate`, `SplineAnimate`) on a GameObject via ReflectorNet. Pair with 'splines-modify' to write changes back. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Get Component + +Serialize any Splines component on a GameObject using ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one Splines component; otherwise the first component whose type lives in the `UnityEngine.Splines` namespace is used. +- `deepSerialization` — when `true`, recurses through nested objects; otherwise only top-level members. + +## Behavior + +Finds the target Splines component, serializes it via ReflectorNet, and returns the serialized member plus the resolved component type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Splines component. | +| `componentRef` | `any` | No | Optional reference to a specific Splines component if the GameObject has multiple. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplinesGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplinesGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the serialized component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the serialized component." + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized component data." + } + }, + "required": [ + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-insert-knot/SKILL.md b/.opencode/skills/splines-insert-knot/SKILL.md new file mode 100644 index 0000000..d99842d --- /dev/null +++ b/.opencode/skills/splines-insert-knot/SKILL.md @@ -0,0 +1,342 @@ +--- +name: splines-insert-knot +description: Insert a knot at a specific index in a spline, shifting later knots forward. Use this to add a control point in the middle of an existing path. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Insert Knot + +Insert a new knot at a given index in a spline. Knots at and after the index shift forward by one. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `knotIndex` — the index to insert at (0..knotCount; required). +- `position` — local-space `Vector3` position of the knot (default zero). +- `tangentIn` / `tangentOut` — optional tangents (defaults `(0,0,-1)` / `(0,0,1)`). +- `rotation` — optional euler-degrees rotation (default zero). +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Validates the index range (0..count inclusive), builds a `BezierKnot`, inserts it, marks dirty, repaints, and returns the inserted knot index and the spline's new knot count. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-insert-knot --input '{ + "gameObjectRef": "string_value", + "knotIndex": 0, + "position": "string_value", + "tangentIn": "string_value", + "tangentOut": "string_value", + "rotation": "string_value", + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-insert-knot --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-insert-knot --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `knotIndex` | `integer` | Yes | Index at which to insert the knot (0..knotCount). | +| `position` | `any` | No | Local-space position of the new knot. | +| `tangentIn` | `any` | No | In tangent relative to the knot position. | +| `tangentOut` | `any` | No | Out tangent relative to the knot position. | +| `rotation` | `any` | No | Knot rotation in euler angles (degrees). | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "knotIndex": { + "type": "integer" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef", + "knotIndex" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "knotIndex": { + "type": "integer", + "description": "Index of the affected knot in the spline (-1 when not applicable)." + }, + "knotCount": { + "type": "integer", + "description": "Resulting number of knots in the spline." + }, + "knot": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo", + "description": "Summary of the affected knot, when applicable." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "knotIndex", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-list/SKILL.md b/.opencode/skills/splines-list/SKILL.md new file mode 100644 index 0000000..cb7b19e --- /dev/null +++ b/.opencode/skills/splines-list/SKILL.md @@ -0,0 +1,224 @@ +--- +name: splines-list +description: List every `SplineContainer` in the active scene with its name, spline count, and the knot count of each spline. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / List Containers + +Enumerate the `SplineContainer`s in the active scene. For each, returns a reference, the name, the number of splines, and per-spline knot counts and closed flags. + +## Inputs + +- `includeInactive` (bool, default true) — include containers on inactive/disabled GameObjects. + +## Behavior + +Finds all `SplineContainer` instances and summarizes them. Read-only. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-list --input '{ + "includeInactive": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-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 | +|------|------|----------|-------------| +| `includeInactive` | `boolean` | No | If true (default), include containers on inactive/disabled GameObjects. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeInactive": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ListResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "name": { + "type": "string", + "description": "Name of the container GameObject." + }, + "splineCount": { + "type": "integer", + "description": "Number of splines in the container." + }, + "splines": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplineSummary-1", + "description": "Per-spline summaries." + } + }, + "required": [ + "splineCount" + ] + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplineSummary-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplineSummary" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplineSummary": { + "type": "object", + "properties": { + "splineIndex": { + "type": "integer", + "description": "Index of the spline in the container." + }, + "knotCount": { + "type": "integer", + "description": "Number of knots in the spline." + }, + "closed": { + "type": "boolean", + "description": "Whether the spline is a closed loop." + } + }, + "required": [ + "splineIndex", + "knotCount", + "closed" + ] + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ListResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Number of SplineContainers found." + }, + "containers": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-ContainerListItem-1", + "description": "The SplineContainers in the active scene." + } + }, + "required": [ + "count" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-modify/SKILL.md b/.opencode/skills/splines-modify/SKILL.md new file mode 100644 index 0000000..aede7db --- /dev/null +++ b/.opencode/skills/splines-modify/SKILL.md @@ -0,0 +1,307 @@ +--- +name: splines-modify +description: "Generic write: apply a `SerializedMember` diff to any Splines `Component` on a GameObject via ReflectorNet `TryModify`. Use 'splines-get' first to inspect the structure so the diff is targeted. Fields go through the `fields` channel, properties through `props` (no cross-fallback)." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Modify Component + +Modify any Splines component on a GameObject by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `data` — the `SerializedMember` diff to apply. Public fields MUST be supplied through the `fields` channel and properties through `props`; ReflectorNet does not cross-fall-back. +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one Splines component; otherwise the first component in the `UnityEngine.Splines` namespace is used. + +## Behavior + +Finds the target Splines component, applies the diff via `Reflector.TryModify`, and on success marks the component + scene dirty and repaints. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-modify --input '{ + "gameObjectRef": "string_value", + "data": "string_value", + "componentRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Splines component. | +| `data` | `any` | Yes | The SerializedMember diff to apply. Only include members you want to change. | +| `componentRef` | `any` | No | Optional reference to a specific Splines component if the GameObject has multiple. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "data" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplinesModifyResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SplinesModifyResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the modified component." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications and any warnings/errors." + } + }, + "required": [ + "success", + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-remove-knot/SKILL.md b/.opencode/skills/splines-remove-knot/SKILL.md new file mode 100644 index 0000000..f187c96 --- /dev/null +++ b/.opencode/skills/splines-remove-knot/SKILL.md @@ -0,0 +1,299 @@ +--- +name: splines-remove-knot +description: "Remove the knot at a given index from a spline, shifting later knots back. Destructive: the removed control point is gone." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Remove Knot + +Remove a knot at a specific index from a spline. Knots after the index shift back by one. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `knotIndex` — the index of the knot to remove (0..knotCount-1; required). +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Validates the index range, removes the knot via `Spline.RemoveAt`, marks the scene dirty, repaints, and returns the spline's new knot count. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-remove-knot --input '{ + "gameObjectRef": "string_value", + "knotIndex": 0, + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-remove-knot --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-remove-knot --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `knotIndex` | `integer` | Yes | Index of the knot to remove (0..knotCount-1). | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "knotIndex": { + "type": "integer" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "knotIndex" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "knotIndex": { + "type": "integer", + "description": "Index of the affected knot in the spline (-1 when not applicable)." + }, + "knotCount": { + "type": "integer", + "description": "Resulting number of knots in the spline." + }, + "knot": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo", + "description": "Summary of the affected knot, when applicable." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "knotIndex", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-set-closed/SKILL.md b/.opencode/skills/splines-set-closed/SKILL.md new file mode 100644 index 0000000..fdba0ec --- /dev/null +++ b/.opencode/skills/splines-set-closed/SKILL.md @@ -0,0 +1,238 @@ +--- +name: splines-set-closed +description: Toggle whether a spline is a closed loop. A closed spline connects its last knot back to its first, forming a continuous loop. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Set Closed + +Set the `Closed` flag of a spline. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `closed` — true to close the loop, false to open it (default true). +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Assigns `Spline.Closed`, marks the scene dirty, repaints, and returns the resulting state. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-set-closed --input '{ + "gameObjectRef": "string_value", + "closed": false, + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-set-closed --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-set-closed --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `closed` | `boolean` | No | True to close the loop, false to open it. | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "closed": { + "type": "boolean" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SetClosedResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-SetClosedResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "closed": { + "type": "boolean", + "description": "Resulting closed-loop state." + }, + "knotCount": { + "type": "integer", + "description": "Number of knots in the spline." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "closed", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-set-knot/SKILL.md b/.opencode/skills/splines-set-knot/SKILL.md new file mode 100644 index 0000000..19e91ce --- /dev/null +++ b/.opencode/skills/splines-set-knot/SKILL.md @@ -0,0 +1,342 @@ +--- +name: splines-set-knot +description: Set position, in/out tangents, and/or rotation of an existing knot in a spline. Only the fields you pass are changed; the rest are preserved. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Set Knot + +Edit an existing knot in place. `BezierKnot` is a value type, so this reads the current knot, applies only the provided fields, and writes it back through the spline indexer (which rebuilds the cached curve). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `knotIndex` — the index of the knot to edit (required). +- `position` — optional new local-space position. +- `tangentIn` / `tangentOut` — optional new tangents. +- `rotation` — optional new euler-degrees rotation. +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Reads the knot, overrides only the supplied fields, writes it back, marks the scene dirty, repaints, and returns the resulting knot summary. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-set-knot --input '{ + "gameObjectRef": "string_value", + "knotIndex": 0, + "position": "string_value", + "tangentIn": "string_value", + "tangentOut": "string_value", + "rotation": "string_value", + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-set-knot --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-set-knot --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `knotIndex` | `integer` | Yes | Index of the knot to edit (0..knotCount-1). | +| `position` | `any` | No | New local-space position of the knot. | +| `tangentIn` | `any` | No | New in tangent relative to the knot position. | +| `tangentOut` | `any` | No | New out tangent relative to the knot position. | +| `rotation` | `any` | No | New knot rotation in euler angles (degrees). | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "knotIndex": { + "type": "integer" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "rotation": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef", + "knotIndex" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "knotIndex": { + "type": "integer", + "description": "Index of the affected knot in the spline (-1 when not applicable)." + }, + "knotCount": { + "type": "integer", + "description": "Resulting number of knots in the spline." + }, + "knot": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo", + "description": "Summary of the affected knot, when applicable." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "knotIndex", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/splines-set-tangent-mode/SKILL.md b/.opencode/skills/splines-set-tangent-mode/SKILL.md new file mode 100644 index 0000000..fc4c86f --- /dev/null +++ b/.opencode/skills/splines-set-tangent-mode/SKILL.md @@ -0,0 +1,306 @@ +--- +name: splines-set-tangent-mode +description: "Set the `TangentMode` of a knot in a spline. Valid modes: Linear, Continuous, Broken, AutoSmooth, Mirrored. The mode controls how the knot's in/out tangents are computed." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Splines / Set Tangent Mode + +Change how a knot's tangents behave by setting its `TangentMode`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `SplineContainer` (required). +- `knotIndex` — the index of the knot (required). +- `tangentMode` — one of `Linear`, `Continuous`, `Broken`, `AutoSmooth`, `Mirrored` (case-insensitive, required). +- `splineIndex` — which spline in the container (default 0). + +## Behavior + +Parses the mode, applies it via `Spline.SetTangentMode(index, mode)`, marks the scene dirty, repaints, and returns the resulting knot summary. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool splines-set-tangent-mode --input '{ + "gameObjectRef": "string_value", + "knotIndex": 0, + "tangentMode": "string_value", + "splineIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool splines-set-tangent-mode --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool splines-set-tangent-mode --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the SplineContainer component. | +| `knotIndex` | `integer` | Yes | Index of the knot to edit (0..knotCount-1). | +| `tangentMode` | `string` | Yes | Tangent mode: Linear, Continuous, Broken, AutoSmooth, or Mirrored (case-insensitive). | +| `splineIndex` | `integer` | No | Index of the spline inside the container (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "knotIndex": { + "type": "integer" + }, + "tangentMode": { + "type": "string" + }, + "splineIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "knotIndex", + "tangentMode" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the knot inside the spline." + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Local-space position of the knot." + }, + "tangentIn": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "In tangent (relative to the knot position)." + }, + "tangentOut": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Out tangent (relative to the knot position)." + }, + "rotationEuler": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Knot rotation in euler angles (degrees)." + }, + "tangentMode": { + "type": "string", + "description": "Tangent mode of the knot." + } + }, + "required": [ + "index", + "position", + "tangentIn", + "tangentOut", + "rotationEuler" + ] + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotMutationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the SplineContainer GameObject." + }, + "containerRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the SplineContainer component." + }, + "splineIndex": { + "type": "integer", + "description": "Index of the affected spline in the container." + }, + "knotIndex": { + "type": "integer", + "description": "Index of the affected knot in the spline (-1 when not applicable)." + }, + "knotCount": { + "type": "integer", + "description": "Resulting number of knots in the spline." + }, + "knot": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Splines-KnotInfo", + "description": "Summary of the affected knot, when applicable." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "splineIndex", + "knotIndex", + "knotCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-add-layer/SKILL.md b/.opencode/skills/terrain-add-layer/SKILL.md new file mode 100644 index 0000000..c2bbb0c --- /dev/null +++ b/.opencode/skills/terrain-add-layer/SKILL.md @@ -0,0 +1,244 @@ +--- +name: terrain-add-layer +description: Add a `TerrainLayer` to a `Terrain`. Provide either the asset path of an existing `.terrainlayer` asset, or a texture asset path to build a new TerrainLayer from. Returns the index of the added layer. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Add Layer + +Append a `TerrainLayer` to a `Terrain`'s `TerrainData.terrainLayers`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `terrainLayerAssetPath` — optional project path to an existing `.terrainlayer` asset to add. +- `diffuseTextureAssetPath` — optional project path to a `Texture2D`. When `terrainLayerAssetPath` is omitted, a new `TerrainLayer` is created in-memory with this diffuse texture and added. +- `tileSizeX` / `tileSizeY` — tile size (world units) for a newly-created layer (default 15,15). + +## Behavior + +Loads or creates the `TerrainLayer`, appends it to `TerrainData.terrainLayers`, marks the asset + scene dirty, repaints, and returns the new layer index. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-add-layer --input '{ + "gameObjectRef": "string_value", + "terrainLayerAssetPath": "string_value", + "diffuseTextureAssetPath": "string_value", + "tileSizeX": 0, + "tileSizeY": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-add-layer --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-add-layer --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `terrainLayerAssetPath` | `string` | No | Optional project path to an existing .terrainlayer asset to add. | +| `diffuseTextureAssetPath` | `string` | No | Optional project path to a Texture2D used to build a new TerrainLayer (when no asset path is given). | +| `tileSizeX` | `number` | No | Tile size X (world units) for a newly-created layer. | +| `tileSizeY` | `number` | No | Tile size Y (world units) for a newly-created layer. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "terrainLayerAssetPath": { + "type": "string" + }, + "diffuseTextureAssetPath": { + "type": "string" + }, + "tileSizeX": { + "type": "number" + }, + "tileSizeY": { + "type": "number" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainAddLayerResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainAddLayerResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "layerIndex": { + "type": "integer", + "description": "Index of the added TerrainLayer." + }, + "layerCount": { + "type": "integer", + "description": "Total number of TerrainLayers after the add." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "layerIndex", + "layerCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-create/SKILL.md b/.opencode/skills/terrain-create/SKILL.md new file mode 100644 index 0000000..ce483b6 --- /dev/null +++ b/.opencode/skills/terrain-create/SKILL.md @@ -0,0 +1,261 @@ +--- +name: terrain-create +description: Create a new GameObject with a `Terrain` + `TerrainCollider` backed by a freshly created `TerrainData` asset. Set heightmap resolution and the terrain world size (width/height/length). Returns the new GameObject reference and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Create Terrain + +Create a new GameObject hosting a `Terrain` and a `TerrainCollider` in the active scene, backed by a new `TerrainData` asset saved to the project. + +## Inputs + +- `name` — optional GameObject name (default `Terrain`). +- `terrainDataAssetPath` — project path for the new `TerrainData` asset (default `Assets/TerrainData_.asset`). Must start with `Assets/` and end with `.asset`. +- `heightmapResolution` — heightmap resolution; rounded to a valid `2^n + 1` value (default 513). +- `width` / `length` — horizontal terrain size in world units (X / Z, default 1000 each). +- `height` — vertical terrain size in world units (Y, default 600). +- `position` — optional world position of the terrain GameObject (default zero). + +## Behavior + +Creates the `TerrainData`, sets its `heightmapResolution` and `size`, writes it as an asset, then creates the GameObject via `Terrain.CreateTerrainGameObject`, positions it, marks the scene dirty, repaints, and returns the new GameObject reference and instanceId. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-create --input '{ + "name": "string_value", + "terrainDataAssetPath": "string_value", + "heightmapResolution": 0, + "width": 0, + "length": 0, + "height": 0, + "position": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-create --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 | +|------|------|----------|-------------| +| `name` | `string` | No | Name of the new Terrain GameObject. | +| `terrainDataAssetPath` | `string` | No | Project path for the new TerrainData asset (Assets/...asset). Defaults to Assets/TerrainData_.asset. | +| `heightmapResolution` | `integer` | No | Heightmap resolution. Rounded up to a valid (2^n + 1) value. | +| `width` | `number` | No | Terrain width in world units (X axis). | +| `length` | `number` | No | Terrain length in world units (Z axis). | +| `height` | `number` | No | Terrain height in world units (Y axis). | +| `position` | `any` | No | World-space position of the terrain GameObject. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "terrainDataAssetPath": { + "type": "string" + }, + "heightmapResolution": { + "type": "integer" + }, + "width": { + "type": "number" + }, + "length": { + "type": "number" + }, + "height": { + "type": "number" + }, + "position": { + "$ref": "#/$defs/UnityEngine.Vector3" + } + }, + "$defs": { + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainCreateResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainCreateResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the created Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the created Terrain component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the created GameObject." + }, + "gameObjectName": { + "type": "string", + "description": "Name of the created GameObject." + }, + "terrainDataAssetPath": { + "type": "string", + "description": "Project path of the created TerrainData asset." + }, + "heightmapResolution": { + "type": "integer", + "description": "Resolved heightmap resolution." + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved terrain size (X=width, Y=height, Z=length)." + } + }, + "required": [ + "instanceId", + "heightmapResolution", + "size" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-get-component/SKILL.md b/.opencode/skills/terrain-get-component/SKILL.md new file mode 100644 index 0000000..2b969b0 --- /dev/null +++ b/.opencode/skills/terrain-get-component/SKILL.md @@ -0,0 +1,295 @@ +--- +name: terrain-get-component +description: "Generic read: serialize a terrain-related `Component` (`Terrain` or `TerrainCollider`) on a GameObject via ReflectorNet. The escape hatch for fields not covered by the dedicated tools. Pair with 'terrain-modify-component'. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Get Component (generic) + +Serialize a terrain component on a GameObject using ReflectorNet. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one; otherwise the first `Terrain` (or, failing that, the first `TerrainCollider`) is used. +- `deepSerialization` — when `true`, recurses through nested objects; otherwise only top-level members. + +## Behavior + +Finds the target terrain component, serializes it via ReflectorNet, and returns the serialized member plus the resolved component type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-get-component --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-get-component --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-get-component --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the terrain component. | +| `componentRef` | `any` | No | Optional reference to a specific component if the GameObject has multiple. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainGetComponentResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainGetComponentResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the serialized component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the serialized component." + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized component data." + } + }, + "required": [ + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-get/SKILL.md b/.opencode/skills/terrain-get/SKILL.md new file mode 100644 index 0000000..26c8a4c --- /dev/null +++ b/.opencode/skills/terrain-get/SKILL.md @@ -0,0 +1,311 @@ +--- +name: terrain-get +description: Inspect a `Terrain` — its `TerrainData` size, heightmap / alphamap / detail resolutions, the list of TerrainLayers, tree/detail prototype counts, tree-instance count, and neighbor terrains. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Get Terrain + +Inspect a `Terrain` component in the active scene and report its `TerrainData` configuration. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). + +## Behavior + +Reads `TerrainData.size`, `heightmapResolution`, `alphamapResolution`, `detailResolution`, the `terrainLayers` (with their diffuse-texture names), the tree- and detail-prototype counts, the number of placed tree instances, and the left/top/right/bottom neighbor terrains. Read-only — nothing is mutated. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-get --input '{ + "gameObjectRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainLayerInfo-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainLayerInfo" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainLayerInfo": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Index of the layer in the terrain's layer list." + }, + "name": { + "type": "string", + "description": "Name of the TerrainLayer asset." + }, + "assetPath": { + "type": "string", + "description": "Project asset path of the TerrainLayer, or null." + }, + "diffuseTexture": { + "type": "string", + "description": "Name of the layer's diffuse texture, or null." + } + }, + "required": [ + "index" + ] + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Terrain size (X=width, Y=height, Z=length) in world units." + }, + "heightmapResolution": { + "type": "integer", + "description": "Heightmap resolution." + }, + "alphamapResolution": { + "type": "integer", + "description": "Alphamap (splatmap) resolution." + }, + "detailResolution": { + "type": "integer", + "description": "Detail resolution." + }, + "layers": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainLayerInfo-1", + "description": "The TerrainLayers assigned to the terrain." + }, + "treePrototypeCount": { + "type": "integer", + "description": "Number of tree prototypes." + }, + "detailPrototypeCount": { + "type": "integer", + "description": "Number of detail prototypes." + }, + "treeInstanceCount": { + "type": "integer", + "description": "Number of placed tree instances." + }, + "leftNeighbor": { + "type": "string", + "description": "Name of the left neighbor terrain, or null." + }, + "topNeighbor": { + "type": "string", + "description": "Name of the top neighbor terrain, or null." + }, + "rightNeighbor": { + "type": "string", + "description": "Name of the right neighbor terrain, or null." + }, + "bottomNeighbor": { + "type": "string", + "description": "Name of the bottom neighbor terrain, or null." + } + }, + "required": [ + "size", + "heightmapResolution", + "alphamapResolution", + "detailResolution", + "treePrototypeCount", + "detailPrototypeCount", + "treeInstanceCount" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-list/SKILL.md b/.opencode/skills/terrain-list/SKILL.md new file mode 100644 index 0000000..19809ae --- /dev/null +++ b/.opencode/skills/terrain-list/SKILL.md @@ -0,0 +1,222 @@ +--- +name: terrain-list +description: List every `Terrain` in the active scene with its name, world size, heightmap resolution, and TerrainLayer count. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / List Terrains + +List every `Terrain` in the active scene. + +## Inputs + +- `includeInactive` (bool, default true) — include Terrains on inactive/disabled GameObjects. + +## Behavior + +Finds all `Terrain` instances, and for each returns the GameObject reference, the name, the `TerrainData.size`, the heightmap resolution, and the number of TerrainLayers. Read-only. The whole call runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-list --input '{ + "includeInactive": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-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 | +|------|------|----------|-------------| +| `includeInactive` | `boolean` | No | If true (default), include Terrains on inactive/disabled GameObjects; if false, only active ones. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeInactive": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "name": { + "type": "string", + "description": "Name of the terrain GameObject." + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Terrain size (X=width, Y=height, Z=length)." + }, + "heightmapResolution": { + "type": "integer", + "description": "Heightmap resolution." + }, + "layerCount": { + "type": "integer", + "description": "Number of TerrainLayers assigned." + } + }, + "required": [ + "size", + "heightmapResolution", + "layerCount" + ] + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Number of Terrains found." + }, + "terrains": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainListItem-1", + "description": "The Terrains in the active scene." + } + }, + "required": [ + "count" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-modify-component/SKILL.md b/.opencode/skills/terrain-modify-component/SKILL.md new file mode 100644 index 0000000..95d421c --- /dev/null +++ b/.opencode/skills/terrain-modify-component/SKILL.md @@ -0,0 +1,307 @@ +--- +name: terrain-modify-component +description: "Generic write: apply a `SerializedMember` diff to a terrain-related `Component` (`Terrain` or `TerrainCollider`) via ReflectorNet `TryModify`. Use 'terrain-get-component' first to inspect the structure. Route fields through the `fields` channel and properties through `props`." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Modify Component (generic) + +Modify a terrain component by applying a `SerializedMember` diff via ReflectorNet. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `data` — the `SerializedMember` diff to apply. Put C# *fields* in the `fields` channel and *properties* in the `props` channel (ReflectorNet resolves them separately — no cross-fallback). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one; otherwise the first `Terrain` (or `TerrainCollider`) is used. + +## Behavior + +Finds the target terrain component, applies the diff via `Reflector.TryModify`, and on success marks the component + scene dirty and repaints. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-modify-component --input '{ + "gameObjectRef": "string_value", + "data": "string_value", + "componentRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-modify-component --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-modify-component --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the terrain component. | +| `data` | `any` | Yes | The SerializedMember diff to apply. Fields via the 'fields' channel, properties via 'props'. | +| `componentRef` | `any` | No | Optional reference to a specific component if the GameObject has multiple. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "data" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainModifyComponentResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainModifyComponentResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the modified component." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications and any warnings/errors." + } + }, + "required": [ + "success", + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-paint-layer/SKILL.md b/.opencode/skills/terrain-paint-layer/SKILL.md new file mode 100644 index 0000000..d02a747 --- /dev/null +++ b/.opencode/skills/terrain-paint-layer/SKILL.md @@ -0,0 +1,271 @@ +--- +name: terrain-paint-layer +description: Paint a `TerrainLayer` over a rectangular region (or the whole terrain) by writing the alphamap (splatmap) so the chosen layer has the given weight there and the other layers are reduced proportionally. Alphamap weights are normalized [0,1]. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Paint Layer + +Write the alphamap (splatmap) of a `Terrain` so one `TerrainLayer` dominates a region. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `layerIndex` — index of the `TerrainLayer` to paint (required; must already be on the terrain). +- `xBase` / `yBase` — top-left alphamap cell of the region (default 0,0). +- `width` / `height` — region size in alphamap cells. When <= 0, spans to the alphamap edge. +- `strength` — target normalized [0,1] weight for the chosen layer (default 1 = fully painted). + +## Behavior + +Reads the region alphamaps via `GetAlphamaps`, sets the chosen layer's weight to `strength` and scales the remaining layers so each cell's weights sum to 1, then writes back with `SetAlphamaps`. Destructive. Marks dirty + repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-paint-layer --input '{ + "gameObjectRef": "string_value", + "layerIndex": 0, + "xBase": 0, + "yBase": 0, + "width": 0, + "height": 0, + "strength": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-paint-layer --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-paint-layer --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `layerIndex` | `integer` | Yes | Index of the TerrainLayer to paint (must already be on the terrain). | +| `xBase` | `integer` | No | Top-left alphamap X cell of the region. | +| `yBase` | `integer` | No | Top-left alphamap Y cell of the region. | +| `width` | `integer` | No | Region width in alphamap cells. <= 0 spans to the alphamap edge. | +| `height` | `integer` | No | Region height in alphamap cells. <= 0 spans to the alphamap edge. | +| `strength` | `number` | No | Target normalized [0,1] weight for the chosen layer (1 = fully painted). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "layerIndex": { + "type": "integer" + }, + "xBase": { + "type": "integer" + }, + "yBase": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "strength": { + "type": "number" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "layerIndex" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainPaintLayerResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainPaintLayerResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "layerIndex": { + "type": "integer", + "description": "Index of the painted TerrainLayer." + }, + "xBase": { + "type": "integer", + "description": "Resolved region top-left X cell." + }, + "yBase": { + "type": "integer", + "description": "Resolved region top-left Y cell." + }, + "width": { + "type": "integer", + "description": "Resolved region width in cells." + }, + "height": { + "type": "integer", + "description": "Resolved region height in cells." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "layerIndex", + "xBase", + "yBase", + "width", + "height", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-place-trees/SKILL.md b/.opencode/skills/terrain-place-trees/SKILL.md new file mode 100644 index 0000000..f004db1 --- /dev/null +++ b/.opencode/skills/terrain-place-trees/SKILL.md @@ -0,0 +1,304 @@ +--- +name: terrain-place-trees +description: Place trees on a `Terrain` using an existing tree prototype. Either scatter `count` trees randomly across a normalized [0,1] sub-rectangle, or place trees at explicit normalized positions. Optionally clear existing trees first. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Place Trees + +Add `TreeInstance`s to a `Terrain`. Tree positions are normalized [0,1] across the terrain. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `prototypeIndex` — index of the tree prototype to place (must already be on the terrain, default 0). +- `count` — number of trees to scatter randomly (used when `positions` is omitted; default 100). +- `minX` / `minZ` / `maxX` / `maxZ` — normalized [0,1] sub-rectangle to scatter within (default 0..1 on both axes). +- `positions` — optional explicit normalized [0,1] XZ positions (each a `Vector2`, x→X, y→Z). When provided, overrides random scatter. +- `heightScale` / `widthScale` — per-instance scale (default 1). +- `clearExisting` — when `true`, removes existing trees before placing (default false). + +## Behavior + +Validates the prototype index, builds `TreeInstance`s (sampling the terrain height at each normalized position), and assigns them via `TerrainData.SetTreeInstances(..., snapToHeightmap:true)`. Marks dirty + repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-place-trees --input '{ + "gameObjectRef": "string_value", + "prototypeIndex": 0, + "count": 0, + "minX": 0, + "minZ": 0, + "maxX": 0, + "maxZ": 0, + "positions": "string_value", + "heightScale": 0, + "widthScale": 0, + "clearExisting": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-place-trees --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-place-trees --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `prototypeIndex` | `integer` | No | Index of the tree prototype to place (must already be on the terrain). | +| `count` | `integer` | No | Number of trees to scatter randomly when 'positions' is omitted. | +| `minX` | `number` | No | Normalized [0,1] minimum X of the scatter sub-rectangle. | +| `minZ` | `number` | No | Normalized [0,1] minimum Z of the scatter sub-rectangle. | +| `maxX` | `number` | No | Normalized [0,1] maximum X of the scatter sub-rectangle. | +| `maxZ` | `number` | No | Normalized [0,1] maximum Z of the scatter sub-rectangle. | +| `positions` | `any` | No | Optional explicit normalized [0,1] XZ positions (Vector2: x->X, y->Z). | +| `heightScale` | `number` | No | Per-instance height scale. | +| `widthScale` | `number` | No | Per-instance width scale. | +| `clearExisting` | `boolean` | No | If true, removes existing trees before placing. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "prototypeIndex": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "minX": { + "type": "number" + }, + "minZ": { + "type": "number" + }, + "maxX": { + "type": "number" + }, + "maxZ": { + "type": "number" + }, + "positions": { + "$ref": "#/$defs/UnityEngine.Vector2-1" + }, + "heightScale": { + "type": "number" + }, + "widthScale": { + "type": "number" + }, + "clearExisting": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector2": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "x", + "y" + ], + "additionalProperties": false + }, + "UnityEngine.Vector2-1": { + "type": "array", + "items": { + "$ref": "#/$defs/UnityEngine.Vector2" + } + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainPlaceTreesResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainPlaceTreesResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "prototypeIndex": { + "type": "integer", + "description": "Index of the placed tree prototype." + }, + "treesAdded": { + "type": "integer", + "description": "Number of trees added by this call." + }, + "treeInstanceCount": { + "type": "integer", + "description": "Total tree instance count after the call." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "prototypeIndex", + "treesAdded", + "treeInstanceCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-remove-layer/SKILL.md b/.opencode/skills/terrain-remove-layer/SKILL.md new file mode 100644 index 0000000..7905b18 --- /dev/null +++ b/.opencode/skills/terrain-remove-layer/SKILL.md @@ -0,0 +1,223 @@ +--- +name: terrain-remove-layer +description: Remove a `TerrainLayer` from a `Terrain` by its index. Returns the remaining layer count. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Remove Layer + +Remove a `TerrainLayer` from a `Terrain`'s `TerrainData.terrainLayers` by index. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `layerIndex` — index of the layer to remove (required). + +## Behavior + +Validates the index against the current layer count, removes the layer, reassigns `TerrainData.terrainLayers`, marks the asset + scene dirty, repaints, and returns the remaining layer count. Destructive. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-remove-layer --input '{ + "gameObjectRef": "string_value", + "layerIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-remove-layer --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-remove-layer --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `layerIndex` | `integer` | Yes | Index of the TerrainLayer to remove. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "layerIndex": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "layerIndex" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainRemoveLayerResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainRemoveLayerResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "layerCount": { + "type": "integer", + "description": "Total number of TerrainLayers after the removal." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "layerCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-sample-heights/SKILL.md b/.opencode/skills/terrain-sample-heights/SKILL.md new file mode 100644 index 0000000..515044d --- /dev/null +++ b/.opencode/skills/terrain-sample-heights/SKILL.md @@ -0,0 +1,285 @@ +--- +name: terrain-sample-heights +description: Read heightmap values over a rectangular region (or the whole terrain) of a `Terrain`. Returns the normalized [0,1] heights plus min/max/average statistics. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Sample Heights + +Sample heightmap values from a `Terrain`'s `TerrainData`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `xBase` / `yBase` — top-left heightmap cell of the region (default 0,0). +- `width` / `height` — region size in heightmap cells. When <= 0, the region spans to the edge of the heightmap from the base. +- `includeArray` — when `true`, include the full row-major `[height][width]` heights array in the response (can be large); otherwise only statistics are returned (default false). + +## Behavior + +Resolves and clamps the region against `heightmapResolution`, calls `TerrainData.GetHeights`, computes min/max/average over the sampled cells, and optionally returns the full array. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-sample-heights --input '{ + "gameObjectRef": "string_value", + "xBase": 0, + "yBase": 0, + "width": 0, + "height": 0, + "includeArray": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-sample-heights --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-sample-heights --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `xBase` | `integer` | No | Top-left heightmap X cell of the region. | +| `yBase` | `integer` | No | Top-left heightmap Y cell of the region. | +| `width` | `integer` | No | Region width in heightmap cells. <= 0 spans to the heightmap edge. | +| `height` | `integer` | No | Region height in heightmap cells. <= 0 spans to the heightmap edge. | +| `includeArray` | `boolean` | No | If true, include the full row-major [height][width] heights array in the response. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "xBase": { + "type": "integer" + }, + "yBase": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "includeArray": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSampleHeightsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.Single-1-1": { + "type": "array", + "items": { + "$ref": "#/$defs/System.Single-1" + } + }, + "System.Single-1": { + "type": "array", + "items": { + "type": "number" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSampleHeightsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "xBase": { + "type": "integer", + "description": "Resolved region top-left X cell." + }, + "yBase": { + "type": "integer", + "description": "Resolved region top-left Y cell." + }, + "width": { + "type": "integer", + "description": "Resolved region width in cells." + }, + "height": { + "type": "integer", + "description": "Resolved region height in cells." + }, + "min": { + "type": "number", + "description": "Minimum normalized [0,1] height in the region." + }, + "max": { + "type": "number", + "description": "Maximum normalized [0,1] height in the region." + }, + "average": { + "type": "number", + "description": "Average normalized [0,1] height in the region." + }, + "heights": { + "$ref": "#/$defs/System.Single-1-1", + "description": "Row-major [height][width] heights array, or null when includeArray is false." + } + }, + "required": [ + "xBase", + "yBase", + "width", + "height", + "min", + "max", + "average" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-detail-prototypes/SKILL.md b/.opencode/skills/terrain-set-detail-prototypes/SKILL.md new file mode 100644 index 0000000..ee29b32 --- /dev/null +++ b/.opencode/skills/terrain-set-detail-prototypes/SKILL.md @@ -0,0 +1,236 @@ +--- +name: terrain-set-detail-prototypes +description: Replace the detail prototypes (grass / detail meshes) of a `Terrain` with a new set built from texture or prefab asset paths. Returns the resulting prototype count. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Detail Prototypes + +Replace `TerrainData.detailPrototypes` with a new set. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `textureAssetPaths` — optional list of `Texture2D` asset paths; each becomes a Grass-billboard detail prototype. +- `prefabAssetPaths` — optional list of prefab/GameObject asset paths; each becomes a VertexLit detail-mesh prototype. + +At least one of the two lists must be non-empty. + +## Behavior + +Loads each asset, builds a `DetailPrototype` (texture → `usePrototypeMesh=false`+`prototypeTexture`, prefab → `usePrototypeMesh=true`+`prototype`), assigns the array to `TerrainData.detailPrototypes`, marks dirty + repaints, and returns the count. Destructive (replaces existing prototypes). Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-detail-prototypes --input '{ + "gameObjectRef": "string_value", + "textureAssetPaths": "string_value", + "prefabAssetPaths": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-detail-prototypes --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-detail-prototypes --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `textureAssetPaths` | `any` | No | Optional Texture2D asset paths; each becomes a grass-billboard detail prototype. | +| `prefabAssetPaths` | `any` | No | Optional prefab/GameObject asset paths; each becomes a detail-mesh prototype. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "textureAssetPaths": { + "$ref": "#/$defs/System.String-1" + }, + "prefabAssetPaths": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetDetailPrototypesResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetDetailPrototypesResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "detailPrototypeCount": { + "type": "integer", + "description": "Number of detail prototypes after the set." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "detailPrototypeCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-heightmap-resolution/SKILL.md b/.opencode/skills/terrain-set-heightmap-resolution/SKILL.md new file mode 100644 index 0000000..a5e7223 --- /dev/null +++ b/.opencode/skills/terrain-set-heightmap-resolution/SKILL.md @@ -0,0 +1,223 @@ +--- +name: terrain-set-heightmap-resolution +description: Set the heightmap resolution of a `Terrain`'s `TerrainData`. The value is rounded up to a valid `2^n + 1`. Changing resolution resamples the existing heightmap. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Heightmap Resolution + +Set the heightmap resolution of a `Terrain`'s `TerrainData`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `heightmapResolution` — requested resolution; rounded up to a valid `2^n + 1` value (clamped to Unity's [33, 4097] range). + +## Behavior + +Assigns `TerrainData.heightmapResolution`. This is destructive: Unity resamples the existing heightmap to the new resolution. Marks the asset + scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-heightmap-resolution --input '{ + "gameObjectRef": "string_value", + "heightmapResolution": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-heightmap-resolution --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-heightmap-resolution --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `heightmapResolution` | `integer` | Yes | Requested heightmap resolution. Rounded up to a valid (2^n + 1) value. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "heightmapResolution": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "heightmapResolution" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetHeightmapResolutionResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetHeightmapResolutionResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "heightmapResolution": { + "type": "integer", + "description": "Resolved heightmap resolution." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "heightmapResolution", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-heights/SKILL.md b/.opencode/skills/terrain-set-heights/SKILL.md new file mode 100644 index 0000000..d9c7cd6 --- /dev/null +++ b/.opencode/skills/terrain-set-heights/SKILL.md @@ -0,0 +1,277 @@ +--- +name: terrain-set-heights +description: Set heightmap values over a rectangular region (or the whole terrain) of a `Terrain`. Either fill the region with a uniform normalized height, or supply an explicit row-major 2D heights array. Heights are normalized [0,1] of the terrain's Y size. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Heights + +Write heightmap values into a `Terrain`'s `TerrainData`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `xBase` / `yBase` — top-left heightmap cell of the region (default 0,0). +- `width` / `height` — region size in heightmap cells. When <= 0, the region spans to the edge of the heightmap from the base. +- `uniformHeight` — when `heights` is omitted, fill the whole region with this normalized [0,1] value (default 0). +- `heights` — optional explicit row-major `[height][width]` array of normalized [0,1] values. When provided, its dimensions define the region size (overriding width/height). + +## Behavior + +Resolves and clamps the region against `heightmapResolution`, builds a `[h,w]` height array (uniform fill or from `heights`), and calls `TerrainData.SetHeights(xBase, yBase, array)`. Destructive: overwrites existing heights in the region. Marks dirty + repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-heights --input '{ + "gameObjectRef": "string_value", + "xBase": 0, + "yBase": 0, + "width": 0, + "height": 0, + "uniformHeight": 0, + "heights": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-heights --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-heights --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `xBase` | `integer` | No | Top-left heightmap X cell of the region. | +| `yBase` | `integer` | No | Top-left heightmap Y cell of the region. | +| `width` | `integer` | No | Region width in heightmap cells. <= 0 spans to the heightmap edge. | +| `height` | `integer` | No | Region height in heightmap cells. <= 0 spans to the heightmap edge. | +| `uniformHeight` | `number` | No | Uniform normalized [0,1] height used to fill the region when 'heights' is omitted. | +| `heights` | `any` | No | Optional explicit row-major [height][width] array of normalized [0,1] heights. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "xBase": { + "type": "integer" + }, + "yBase": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "uniformHeight": { + "type": "number" + }, + "heights": { + "$ref": "#/$defs/System.Single-1-1" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Single-1": { + "type": "array", + "items": { + "type": "number" + } + }, + "System.Single-1-1": { + "type": "array", + "items": { + "$ref": "#/$defs/System.Single-1" + } + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetHeightsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetHeightsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "xBase": { + "type": "integer", + "description": "Resolved region top-left X cell." + }, + "yBase": { + "type": "integer", + "description": "Resolved region top-left Y cell." + }, + "width": { + "type": "integer", + "description": "Resolved region width in cells." + }, + "height": { + "type": "integer", + "description": "Resolved region height in cells." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "xBase", + "yBase", + "width", + "height", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-neighbors/SKILL.md b/.opencode/skills/terrain-set-neighbors/SKILL.md new file mode 100644 index 0000000..97a7d6c --- /dev/null +++ b/.opencode/skills/terrain-set-neighbors/SKILL.md @@ -0,0 +1,248 @@ +--- +name: terrain-set-neighbors +description: Set the neighboring `Terrain`s of a center `Terrain` (left / top / right / bottom) so Unity blends seams and LOD across tiles. Omitted neighbors are treated as null. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Neighbors + +Wire up the neighbor terrains of a center `Terrain` via `Terrain.SetNeighbors`. + +## Inputs + +- `gameObjectRef` — the center Terrain GameObject (required). +- `leftRef` / `topRef` / `rightRef` / `bottomRef` — optional GameObjects hosting the neighboring `Terrain`s. Any omitted side is set to null. + +## Behavior + +Resolves each provided neighbor GameObject to its `Terrain` component, calls `center.SetNeighbors(left, top, right, bottom)`, and triggers `Terrain.Flush()`. Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-neighbors --input '{ + "gameObjectRef": "string_value", + "leftRef": "string_value", + "topRef": "string_value", + "rightRef": "string_value", + "bottomRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-neighbors --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-neighbors --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the center Terrain GameObject. | +| `leftRef` | `any` | No | Optional GameObject hosting the left neighbor Terrain. | +| `topRef` | `any` | No | Optional GameObject hosting the top neighbor Terrain. | +| `rightRef` | `any` | No | Optional GameObject hosting the right neighbor Terrain. | +| `bottomRef` | `any` | No | Optional GameObject hosting the bottom neighbor Terrain. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "leftRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "topRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "rightRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "bottomRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetNeighborsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetNeighborsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the center Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the center Terrain component." + }, + "left": { + "type": "string", + "description": "Name of the left neighbor, or null." + }, + "top": { + "type": "string", + "description": "Name of the top neighbor, or null." + }, + "right": { + "type": "string", + "description": "Name of the right neighbor, or null." + }, + "bottom": { + "type": "string", + "description": "Name of the bottom neighbor, or null." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-size/SKILL.md b/.opencode/skills/terrain-set-size/SKILL.md new file mode 100644 index 0000000..525142c --- /dev/null +++ b/.opencode/skills/terrain-set-size/SKILL.md @@ -0,0 +1,257 @@ +--- +name: terrain-set-size +description: Set the world-space size of a `Terrain`'s `TerrainData` — width (X), height (Y), and length (Z). Omitted components keep their current value. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Size + +Set the world-space size of a `Terrain`'s `TerrainData`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `width` — optional new width in world units (X). When omitted, the current width is kept. +- `height` — optional new height in world units (Y). When omitted, the current height is kept. +- `length` — optional new length in world units (Z). When omitted, the current length is kept. + +## Behavior + +Assigns `TerrainData.size` from the provided components (falling back to the current value for any omitted axis). Marks the asset + scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-size --input '{ + "gameObjectRef": "string_value", + "width": "string_value", + "height": "string_value", + "length": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-size --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-size --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `width` | `any` | No | Optional new terrain width in world units (X axis). | +| `height` | `any` | No | Optional new terrain height in world units (Y axis). | +| `length` | `any` | No | Optional new terrain length in world units (Z axis). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "width": { + "$ref": "#/$defs/System.Single" + }, + "height": { + "$ref": "#/$defs/System.Single" + }, + "length": { + "$ref": "#/$defs/System.Single" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.Single": { + "type": "number" + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetSizeResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetSizeResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "size": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resolved terrain size (X=width, Y=height, Z=length)." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "size", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/terrain-set-tree-prototypes/SKILL.md b/.opencode/skills/terrain-set-tree-prototypes/SKILL.md new file mode 100644 index 0000000..79da94f --- /dev/null +++ b/.opencode/skills/terrain-set-tree-prototypes/SKILL.md @@ -0,0 +1,229 @@ +--- +name: terrain-set-tree-prototypes +description: Replace the tree prototypes of a `Terrain` with a new set built from prefab/GameObject asset paths. Returns the resulting prototype count. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Terrain / Set Tree Prototypes + +Replace `TerrainData.treePrototypes` with a new set built from prefab asset paths. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Terrain` (required). +- `prefabAssetPaths` — list of prefab/GameObject asset paths; each becomes a `TreePrototype` (required, non-empty). + +## Behavior + +Loads each prefab, builds a `TreePrototype` with `prefab` set, assigns the array to `TerrainData.treePrototypes`, marks dirty + repaints, and returns the count. Destructive (replaces existing prototypes; existing placed tree instances may need re-placing). Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool terrain-set-tree-prototypes --input '{ + "gameObjectRef": "string_value", + "prefabAssetPaths": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool terrain-set-tree-prototypes --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool terrain-set-tree-prototypes --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Terrain component. | +| `prefabAssetPaths` | `any` | Yes | Prefab/GameObject asset paths; each becomes a TreePrototype. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "prefabAssetPaths": { + "$ref": "#/$defs/System.String-1" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "gameObjectRef", + "prefabAssetPaths" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetTreePrototypesResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Terrain-TerrainSetTreePrototypesResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Terrain GameObject." + }, + "terrainRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Terrain component." + }, + "treePrototypeCount": { + "type": "integer", + "description": "Number of tree prototypes after the set." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "treePrototypeCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tests-run/SKILL.md b/.opencode/skills/tests-run/SKILL.md new file mode 100644 index 0000000..1d9bb1f --- /dev/null +++ b/.opencode/skills/tests-run/SKILL.md @@ -0,0 +1,151 @@ +--- +name: tests-run +description: "Execute Unity tests (`EditMode` or `PlayMode`) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tests / Run + +Execute Unity tests and return detailed results. Supports filtering by test mode, assembly, namespace, class, and method. Recommended to use 'EditMode' for faster iteration during development. Precondition: every open scene MUST be saved (no unsaved changes). If any open scene is dirty, this tool throws an InvalidOperationException listing the dirty scenes; save them and retry. + +## Filters + +- `testMode` (default `EditMode`) — `EditMode` or `PlayMode`. EditMode is faster; prefer it during iteration. +- `testAssembly` / `testNamespace` / `testClass` / `testMethod` — optional, layered filters. Namespace and class filters become regex `groupNames` so the validation count and Unity's execution stay in sync. `testMethod` must be fully qualified (`Namespace.FixtureName.TestName`). +- `query` — RQL over the `tests` source instead of the four filters: any selection, run as ONE Test Runner run, e.g. `tests | where fixture == "PlayerTests" or categories contains "Smoke"`. One mode per run; the mode comes from the selected tests. Explore first with rql-query: `tests | where fullName contains "Spline" | select fullName mode`. +- `result` — RQL stages applied to the results (source `testResults`: name status durationMs message stackTrace), e.g. `where status == "Failed" | select name message`; the answer is then a summary line plus compact RQL text. + +## Response toggles + +- `includePassingTests` (default `false`) — include details for passing tests; otherwise only failing test details are returned. +- `includeMessages` (default `true`) — include per-test result messages. +- `includeStacktrace` (default `false`) — include stack traces for failing tests. +- `includeLogs` (default `false`) — include console logs captured during the run. +- `logType` (default `Warning`) — minimum log severity to include. +- `includeLogsStacktrace` (default `false`) — include log stack traces (large payload; use sparingly). + +## Domain reloads + +If the AssetDatabase refresh triggers compilation, the tool persists the run parameters to `SessionState`, returns `Processing`, and resumes the run automatically after the reload completes. Pre-existing compilation errors short-circuit the run and return the error details so the caller can fix the project first. + +## How to Call + +```bash +unity-mcp-cli run-tool tests-run --input '{ + "testMode": "string_value", + "testAssembly": "string_value", + "testNamespace": "string_value", + "testClass": "string_value", + "testMethod": "string_value", + "query": "string_value", + "result": "string_value", + "includePassingTests": false, + "includeMessages": false, + "includeStacktrace": false, + "includeLogs": false, + "logType": "string_value", + "includeLogsStacktrace": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tests-run --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tests-run --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 | +|------|------|----------|-------------| +| `testMode` | `string` | No | Test mode to run. Options: 'EditMode', 'PlayMode'. Default: 'EditMode' | +| `testAssembly` | `string` | No | Specific test assembly name to run (optional). Example: 'Assembly-CSharp-Editor-testable' | +| `testNamespace` | `string` | No | Specific test namespace to run (optional). Example: 'MyTestNamespace' | +| `testClass` | `string` | No | Specific test class name to run (optional). Example: 'MyTestClass' | +| `testMethod` | `string` | No | Specific fully qualified test method to run (optional). Example: 'MyTestNamespace.FixtureName.TestName' | +| `query` | `string` | No | RQL over the 'tests' source selecting the tests (instead of the filters above), run as one run. Example: tests | where fullName contains "Player" and mode == "EditMode" | +| `result` | `string` | No | RQL stages applied to the results (source 'testResults': name status durationMs message stackTrace); the answer is a summary line plus compact text. Example: where status == "Failed" | select name message | +| `includePassingTests` | `boolean` | No | Include details for all tests, both passing and failing (default: false). If you just need details for failing tests, set to false. | +| `includeMessages` | `boolean` | No | Include test result messages in the test results (default: true). If you just need pass/fail status, set to false. | +| `includeStacktrace` | `boolean` | No | Include stack traces in the test results (default: false). | +| `includeLogs` | `boolean` | No | Include console logs in the test results (default: false). | +| `logType` | `string` | No | Log type filter for console logs. Options: 'Log', 'Warning', 'Assert', 'Error', 'Exception'. (default: 'Warning') | +| `includeLogsStacktrace` | `boolean` | No | Include stack traces for console logs in the test results (default: false). This is huge amount of data, use only if really needed. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "testMode": { + "type": "string", + "enum": [ + "EditMode", + "PlayMode" + ] + }, + "testAssembly": { + "type": "string" + }, + "testNamespace": { + "type": "string" + }, + "testClass": { + "type": "string" + }, + "testMethod": { + "type": "string" + }, + "query": { + "type": "string" + }, + "result": { + "type": "string" + }, + "includePassingTests": { + "type": "boolean" + }, + "includeMessages": { + "type": "boolean" + }, + "includeStacktrace": { + "type": "boolean" + }, + "includeLogs": { + "type": "boolean" + }, + "logType": { + "type": "string", + "enum": [ + "Error", + "Assert", + "Warning", + "Log", + "Exception" + ] + }, + "includeLogsStacktrace": { + "type": "boolean" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/tilemap-box-fill/SKILL.md b/.opencode/skills/tilemap-box-fill/SKILL.md new file mode 100644 index 0000000..5e68b50 --- /dev/null +++ b/.opencode/skills/tilemap-box-fill/SKILL.md @@ -0,0 +1,284 @@ +--- +name: tilemap-box-fill +description: Fill a rectangular region of a Tilemap with a single TileBase asset using Tilemap.BoxFill. The region is defined by an inclusive min and max cell coordinate. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Box Fill + +Fill a rectangular block of cells of a `Tilemap` with one tile via `Tilemap.BoxFill`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `minX`, `minY` — inclusive minimum cell coordinate. +- `maxX`, `maxY` — inclusive maximum cell coordinate. +- `z` — cell Z coordinate (default 0). +- `tileAssetPath` — `Assets/`-rooted path to the `TileBase` asset to fill with (required). + +## Behavior + +Loads the tile, calls `Tilemap.BoxFill(start, tile, minX, minY, maxX, maxY)`, marks the scene dirty, and repaints. Returns the filled cell count. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-box-fill --input '{ + "gameObjectRef": "string_value", + "tileAssetPath": "string_value", + "minX": 0, + "minY": 0, + "maxX": 0, + "maxY": 0, + "z": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-box-fill --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-box-fill --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `tileAssetPath` | `string` | Yes | Assets/-rooted path to the TileBase asset to fill the region with. | +| `minX` | `integer` | Yes | Inclusive minimum cell X coordinate. | +| `minY` | `integer` | Yes | Inclusive minimum cell Y coordinate. | +| `maxX` | `integer` | Yes | Inclusive maximum cell X coordinate. | +| `maxY` | `integer` | Yes | Inclusive maximum cell Y coordinate. | +| `z` | `integer` | No | Cell Z coordinate (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "tileAssetPath": { + "type": "string" + }, + "minX": { + "type": "integer" + }, + "minY": { + "type": "integer" + }, + "maxX": { + "type": "integer" + }, + "maxY": { + "type": "integer" + }, + "z": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "tileAssetPath", + "minX", + "minY", + "maxX", + "maxY" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-BoxFillResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-BoxFillResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "minX": { + "type": "integer", + "description": "Resolved minimum X." + }, + "minY": { + "type": "integer", + "description": "Resolved minimum Y." + }, + "maxX": { + "type": "integer", + "description": "Resolved maximum X." + }, + "maxY": { + "type": "integer", + "description": "Resolved maximum Y." + }, + "cellZ": { + "type": "integer", + "description": "Cell Z coordinate." + }, + "filledCount": { + "type": "integer", + "description": "Number of cells filled." + }, + "tileAssetPath": { + "type": "string", + "description": "Path of the tile asset used." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "minX", + "minY", + "maxX", + "maxY", + "cellZ", + "filledCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-clear/SKILL.md b/.opencode/skills/tilemap-clear/SKILL.md new file mode 100644 index 0000000..3828a9d --- /dev/null +++ b/.opencode/skills/tilemap-clear/SKILL.md @@ -0,0 +1,253 @@ +--- +name: tilemap-clear +description: "Clear tiles from a Tilemap: either every tile (ClearAllTiles) or a rectangular region (by erasing each cell in the inclusive min..max range). Destructive." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Clear Tiles + +Erase tiles from a `Tilemap`. By default clears the whole map; pass a region to clear only a rectangular block. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `clearAll` (bool, default true) — when true, calls `Tilemap.ClearAllTiles()`; when false, erases the region defined by `minX/minY/maxX/maxY`. +- `minX`, `minY`, `maxX`, `maxY`, `z` — the inclusive region (used only when `clearAll` is false). + +## Behavior + +Either clears all tiles or sets each cell in the region to null, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-clear --input '{ + "gameObjectRef": "string_value", + "clearAll": false, + "minX": 0, + "minY": 0, + "maxX": 0, + "maxY": 0, + "z": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-clear --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-clear --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `clearAll` | `boolean` | No | If true (default) clear the entire Tilemap; if false, clear the min..max region only. | +| `minX` | `integer` | No | Inclusive minimum cell X (region mode). | +| `minY` | `integer` | No | Inclusive minimum cell Y (region mode). | +| `maxX` | `integer` | No | Inclusive maximum cell X (region mode). | +| `maxY` | `integer` | No | Inclusive maximum cell Y (region mode). | +| `z` | `integer` | No | Cell Z coordinate (region mode, default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "clearAll": { + "type": "boolean" + }, + "minX": { + "type": "integer" + }, + "minY": { + "type": "integer" + }, + "maxX": { + "type": "integer" + }, + "maxY": { + "type": "integer" + }, + "z": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ClearResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ClearResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "clearedAll": { + "type": "boolean", + "description": "True when the whole map was cleared." + }, + "clearedCount": { + "type": "integer", + "description": "Number of cells cleared in region mode; -1 when clearedAll." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "clearedAll", + "clearedCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-create-rule-tile/SKILL.md b/.opencode/skills/tilemap-create-rule-tile/SKILL.md new file mode 100644 index 0000000..2b7b7e4 --- /dev/null +++ b/.opencode/skills/tilemap-create-rule-tile/SKILL.md @@ -0,0 +1,118 @@ +--- +name: tilemap-create-rule-tile +description: Create a UnityEngine.RuleTile asset (from the 2D Tilemap Extras package) at an Assets/-rooted path, with an optional default Sprite. RuleTiles auto-pick sprites based on neighbour rules — paint them like any tile and add rules afterward via the Inspector or 'tilemap-modify'. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Create Rule Tile + +Create a `RuleTile` ScriptableObject asset (provided by `com.unity.2d.tilemap.extras`). + +## Inputs + +- `assetPath` — `Assets/`-rooted path ending in `.asset` for the new RuleTile. +- `defaultSpriteAssetPath` — optional `Assets/`-rooted path to a `Sprite` used as the RuleTile's default sprite (shown when no rule matches). + +## Behavior + +Creates the intermediate folders, instantiates a `RuleTile`, assigns the default sprite when supplied, writes the asset via `AssetDatabase.CreateAsset`, saves + refreshes, and returns the asset path. Neighbour rules can then be authored via `tilemap-modify` or the Inspector. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-create-rule-tile --input '{ + "assetPath": "string_value", + "defaultSpriteAssetPath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-create-rule-tile --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-create-rule-tile --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets/-rooted path ending in '.asset' for the new RuleTile asset. | +| `defaultSpriteAssetPath` | `string` | No | Optional Assets/-rooted path to a Sprite used as the RuleTile default sprite. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "defaultSpriteAssetPath": { + "type": "string" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateRuleTileResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateRuleTileResponse": { + "type": "object", + "properties": { + "assetPath": { + "type": "string", + "description": "Path of the created RuleTile asset." + }, + "defaultSpriteAssetPath": { + "type": "string", + "description": "Path of the assigned default Sprite, or null." + }, + "ruleCount": { + "type": "integer", + "description": "Number of tiling rules (0 for a fresh RuleTile)." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "ruleCount", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-create-tile-asset/SKILL.md b/.opencode/skills/tilemap-create-tile-asset/SKILL.md new file mode 100644 index 0000000..3e834d7 --- /dev/null +++ b/.opencode/skills/tilemap-create-tile-asset/SKILL.md @@ -0,0 +1,205 @@ +--- +name: tilemap-create-tile-asset +description: Create a UnityEngine.Tilemaps.Tile asset at an Assets/-rooted path and assign a Sprite (loaded from a sprite asset path) plus an optional color and collider type. Returns the created asset path. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Create Tile Asset + +Create a `Tile` ScriptableObject asset and wire its sprite so it can be painted into a Tilemap. + +## Inputs + +- `assetPath` — `Assets/`-rooted path ending in `.asset` for the new Tile. +- `spriteAssetPath` — optional `Assets/`-rooted path to a `Sprite` asset to assign. +- `color` — optional tile color (default white). +- `colliderType` — optional `None` / `Sprite` / `Grid` (default Sprite). + +## Behavior + +Creates the intermediate folders, instantiates a `Tile`, assigns sprite/color/collider type, writes the asset via `AssetDatabase.CreateAsset`, saves + refreshes, and returns the asset path. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-create-tile-asset --input '{ + "assetPath": "string_value", + "spriteAssetPath": "string_value", + "color": "string_value", + "colliderType": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-create-tile-asset --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-create-tile-asset --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets/-rooted path ending in '.asset' for the new Tile asset. | +| `spriteAssetPath` | `string` | No | Optional Assets/-rooted path to a Sprite asset to assign to the tile. | +| `color` | `any` | No | Optional tile color (default white). | +| `colliderType` | `string` | No | Optional collider type (default Sprite). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "spriteAssetPath": { + "type": "string" + }, + "color": { + "$ref": "#/$defs/UnityEngine.Color" + }, + "colliderType": { + "type": "string", + "enum": [ + "None", + "Sprite", + "Grid" + ] + } + }, + "$defs": { + "UnityEngine.Color": { + "type": "object", + "properties": { + "r": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "g": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "b": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "a": { + "type": "number", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "r", + "g", + "b", + "a" + ], + "additionalProperties": false + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateTileAssetResponse" + } + }, + "$defs": { + "UnityEngine.Color": { + "type": "object", + "properties": { + "r": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "g": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "b": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "a": { + "type": "number", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "r", + "g", + "b", + "a" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateTileAssetResponse": { + "type": "object", + "properties": { + "assetPath": { + "type": "string", + "description": "Path of the created Tile asset." + }, + "spriteAssetPath": { + "type": "string", + "description": "Path of the assigned Sprite asset, or null." + }, + "color": { + "$ref": "#/$defs/UnityEngine.Color", + "description": "Tile color." + }, + "colliderType": { + "type": "string", + "description": "Tile collider type." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "color", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-create/SKILL.md b/.opencode/skills/tilemap-create/SKILL.md new file mode 100644 index 0000000..856b5f2 --- /dev/null +++ b/.opencode/skills/tilemap-create/SKILL.md @@ -0,0 +1,267 @@ +--- +name: tilemap-create +description: Create a Grid GameObject with a child Tilemap + TilemapRenderer in the active scene. Optionally parent the Grid under an existing GameObject and name the tilemap. Returns the new tilemap GameObject reference and its instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Create Grid + Tilemap + +Create the standard 2D tilemap hierarchy: a `Grid` GameObject hosting a child GameObject with a `Tilemap` and `TilemapRenderer`. This is the minimal structure required before painting tiles. + +## Inputs + +- `gridName` — optional name for the Grid GameObject (default `Grid`). +- `tilemapName` — optional name for the Tilemap child GameObject (default `Tilemap`). +- `parentRef` — optional GameObject to parent the new Grid under. +- `cellSize` — optional Grid cell size (default `(1,1,0)`). + +## Behavior + +Creates the Grid + child Tilemap/TilemapRenderer, sets the cell size, parents under `parentRef` when supplied, marks the scene dirty, repaints, and returns references + the tilemap GameObject instanceId. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-create --input '{ + "gridName": "string_value", + "tilemapName": "string_value", + "parentRef": "string_value", + "cellSize": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-create --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 | +|------|------|----------|-------------| +| `gridName` | `string` | No | Name of the Grid GameObject. | +| `tilemapName` | `string` | No | Name of the child Tilemap GameObject. | +| `parentRef` | `any` | No | Optional GameObject to parent the new Grid under. | +| `cellSize` | `any` | No | Grid cell size. Defaults to (1,1,0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gridName": { + "type": "string" + }, + "tilemapName": { + "type": "string" + }, + "parentRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "cellSize": { + "$ref": "#/$defs/UnityEngine.Vector3" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-CreateResponse": { + "type": "object", + "properties": { + "gridRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the created Grid GameObject." + }, + "tilemapGameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the created Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the created Tilemap component." + }, + "rendererRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the created TilemapRenderer component." + }, + "instanceId": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "Instance id of the created Tilemap GameObject." + }, + "gridName": { + "type": "string", + "description": "Name of the created Grid GameObject." + }, + "tilemapName": { + "type": "string", + "description": "Name of the created Tilemap GameObject." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "instanceId", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-get-tile/SKILL.md b/.opencode/skills/tilemap-get-tile/SKILL.md new file mode 100644 index 0000000..83be7e6 --- /dev/null +++ b/.opencode/skills/tilemap-get-tile/SKILL.md @@ -0,0 +1,293 @@ +--- +name: tilemap-get-tile +description: "Read the tile occupying a single cell of a Tilemap: returns whether the cell has a tile, the tile asset name + path, the tile color, and the collider type at that cell. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Get Tile + +Inspect a single cell of a `Tilemap`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `x`, `y`, `z` — the integer cell coordinate (z defaults to 0). + +## Behavior + +Reads `Tilemap.GetTile`, `GetColor`, and `GetColliderType` at the cell and returns them. When the cell is empty, `hasTile` is false. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-get-tile --input '{ + "gameObjectRef": "string_value", + "x": 0, + "y": 0, + "z": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-get-tile --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-get-tile --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `x` | `integer` | Yes | Cell X coordinate. | +| `y` | `integer` | Yes | Cell Y coordinate. | +| `z` | `integer` | No | Cell Z coordinate (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "x": { + "type": "integer" + }, + "y": { + "type": "integer" + }, + "z": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "x", + "y" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-GetTileResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Color": { + "type": "object", + "properties": { + "r": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "g": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "b": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "a": { + "type": "number", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "r", + "g", + "b", + "a" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-GetTileResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "cellX": { + "type": "integer", + "description": "Cell X coordinate." + }, + "cellY": { + "type": "integer", + "description": "Cell Y coordinate." + }, + "cellZ": { + "type": "integer", + "description": "Cell Z coordinate." + }, + "hasTile": { + "type": "boolean", + "description": "Whether a tile occupies the cell." + }, + "tileName": { + "type": "string", + "description": "Name of the tile asset, or null when empty." + }, + "tileAssetPath": { + "type": "string", + "description": "Asset path of the tile, or null when empty/unsaved." + }, + "color": { + "$ref": "#/$defs/UnityEngine.Color", + "description": "Per-cell tint color." + }, + "colliderType": { + "type": "string", + "description": "Per-cell collider type (None/Sprite/Grid)." + } + }, + "required": [ + "cellX", + "cellY", + "cellZ", + "hasTile", + "color" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-get/SKILL.md b/.opencode/skills/tilemap-get/SKILL.md new file mode 100644 index 0000000..d2ba3c0 --- /dev/null +++ b/.opencode/skills/tilemap-get/SKILL.md @@ -0,0 +1,295 @@ +--- +name: tilemap-get +description: "Generic read: serialize a Tilemap-related `Component` (Tilemap, TilemapRenderer, Grid, or a Tile/RuleTile asset's host) on a GameObject via ReflectorNet. Pair with 'tilemap-modify' to write changes back. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Get Component + +Serialize any Tilemap-related component on a GameObject using ReflectorNet. This is the generic escape hatch for fields/properties not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one Tilemap-related component; otherwise the first `Tilemap` / `TilemapRenderer` / `Grid` is used. +- `deepSerialization` — when `true`, recurses through nested objects; otherwise only top-level members. + +## Behavior + +Finds the target component, serializes it via ReflectorNet, and returns the serialized member plus the resolved component type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-get --input '{ + "gameObjectRef": "string_value", + "componentRef": "string_value", + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-get --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap-related component. | +| `componentRef` | `any` | No | Optional reference to a specific component if the GameObject has multiple. | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapGetResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapGetResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the serialized component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the serialized component." + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Serialized component data." + } + }, + "required": [ + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-list/SKILL.md b/.opencode/skills/tilemap-list/SKILL.md new file mode 100644 index 0000000..d2dd636 --- /dev/null +++ b/.opencode/skills/tilemap-list/SKILL.md @@ -0,0 +1,226 @@ +--- +name: tilemap-list +description: List every Tilemap in the active scene with its name, painted-tile count, cell bounds, and orientation. Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / List Tilemaps + +Enumerate all `Tilemap` components in the active scene. + +## Inputs + +- `includeInactive` (bool, default true) — include Tilemaps on inactive GameObjects. + +## Behavior + +Finds all `Tilemap` instances, reads each one's `GetUsedTilesCount`, `cellBounds`, and `orientation`, and returns them. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-list --input '{ + "includeInactive": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-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 | +|------|------|----------|-------------| +| `includeInactive` | `boolean` | No | If true (default), include Tilemaps on inactive GameObjects. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "includeInactive": { + "type": "boolean" + } + } +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListResponse" + } + }, + "$defs": { + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListItem-1": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListItem" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListItem": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "name": { + "type": "string", + "description": "Name of the Tilemap GameObject." + }, + "tileCount": { + "type": "integer", + "description": "Number of painted (used) tiles." + }, + "boundsMin": { + "$ref": "#/$defs/UnityEngine.Vector3Int", + "description": "Inclusive minimum cell bound." + }, + "boundsMax": { + "$ref": "#/$defs/UnityEngine.Vector3Int", + "description": "Exclusive maximum cell bound." + }, + "orientation": { + "type": "string", + "description": "Layout orientation." + } + }, + "required": [ + "tileCount", + "boundsMin", + "boundsMax" + ] + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3Int": { + "type": "object", + "properties": { + "x": { + "type": "integer" + }, + "y": { + "type": "integer" + }, + "z": { + "type": "integer" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Number of Tilemaps found." + }, + "tilemaps": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-ListItem-1", + "description": "The Tilemaps in the active scene." + } + }, + "required": [ + "count" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-modify/SKILL.md b/.opencode/skills/tilemap-modify/SKILL.md new file mode 100644 index 0000000..f15a978 --- /dev/null +++ b/.opencode/skills/tilemap-modify/SKILL.md @@ -0,0 +1,307 @@ +--- +name: tilemap-modify +description: "Generic write: apply a `SerializedMember` diff to a Tilemap-related `Component` on a GameObject via ReflectorNet `TryModify`. Fields go through the `fields` channel, properties through `props`. Use 'tilemap-get' first to inspect the structure." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Modify Component + +Modify a Tilemap-related component on a GameObject by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for members not covered by the dedicated tools. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the component (required). +- `data` — the `SerializedMember` diff to apply. Route C# **fields** through the `fields` channel and **properties** through `props` — ReflectorNet resolves each channel strictly with no cross-fallback. +- `componentRef` — optional. Resolves a specific component when the GameObject has more than one. + +## Behavior + +Finds the target component, applies the diff via `Reflector.TryModify`, and on success marks the component + scene dirty and repaints. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-modify --input '{ + "gameObjectRef": "string_value", + "data": "string_value", + "componentRef": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-modify --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap-related component. | +| `data` | `any` | Yes | The SerializedMember diff to apply. Only include members you want to change. | +| `componentRef` | `any` | No | Optional reference to a specific component if the GameObject has multiple. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "data": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMemberList": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember" + } + }, + "com.IvanMurzak.ReflectorNet.Model.SerializedMember": { + "type": "object", + "properties": { + "typeName": { + "type": "string", + "description": "Full type name. Eg: 'System.String', 'System.Int32', 'UnityEngine.Vector3', etc." + }, + "name": { + "type": "string", + "description": "Object name." + }, + "value": { + "description": "Value of the object, serialized as a non stringified JSON element. Can be null if the value is not set. Can be default value if the value is an empty object or array json." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested field value." + }, + "description": "Fields of the object, serialized as a list of 'SerializedMember'." + }, + "props": { + "type": "array", + "items": { + "$ref": "#/$defs/com.IvanMurzak.ReflectorNet.Model.SerializedMember", + "description": "Nested property value." + }, + "description": "Properties of the object, serialized as a list of 'SerializedMember'." + } + }, + "required": [ + "typeName" + ], + "additionalProperties": false + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + } + }, + "required": [ + "gameObjectRef", + "data" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapModifyResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "System.String-1": { + "type": "array", + "items": { + "type": "string" + } + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapModifyResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the modification was successful." + }, + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the GameObject containing the component." + }, + "componentRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the modified component." + }, + "componentIndex": { + "type": "integer", + "description": "Index of the component in the GameObject's component list." + }, + "componentType": { + "type": "string", + "description": "Full type name of the modified component." + }, + "logs": { + "$ref": "#/$defs/System.String-1", + "description": "Log of modifications and any warnings/errors." + } + }, + "required": [ + "success", + "componentIndex" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-set-collider-type/SKILL.md b/.opencode/skills/tilemap-set-collider-type/SKILL.md new file mode 100644 index 0000000..3cf6282 --- /dev/null +++ b/.opencode/skills/tilemap-set-collider-type/SKILL.md @@ -0,0 +1,260 @@ +--- +name: tilemap-set-collider-type +description: Set the per-cell Tile.ColliderType (None / Sprite / Grid) of a tile painted into a Tilemap. Pair with a TilemapCollider2D to generate physics colliders from the tiles. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Set Tile Collider Type + +Override the collider type of a single tile cell in a `Tilemap`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `x`, `y`, `z` — the cell coordinate (z defaults to 0). +- `colliderType` — `None`, `Sprite`, or `Grid`. + +## Behavior + +Maps the argument to `UnityEngine.Tilemaps.Tile.ColliderType` and calls `Tilemap.SetColliderType`, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-set-collider-type --input '{ + "gameObjectRef": "string_value", + "x": 0, + "y": 0, + "colliderType": "string_value", + "z": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-set-collider-type --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-set-collider-type --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `x` | `integer` | Yes | Cell X coordinate. | +| `y` | `integer` | Yes | Cell Y coordinate. | +| `colliderType` | `string` | Yes | The collider type to set: None, Sprite, or Grid. | +| `z` | `integer` | No | Cell Z coordinate (default 0). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "x": { + "type": "integer" + }, + "y": { + "type": "integer" + }, + "colliderType": { + "type": "string", + "enum": [ + "None", + "Sprite", + "Grid" + ] + }, + "z": { + "type": "integer" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "x", + "y", + "colliderType" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetColliderTypeResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetColliderTypeResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "cellX": { + "type": "integer", + "description": "Cell X coordinate." + }, + "cellY": { + "type": "integer", + "description": "Cell Y coordinate." + }, + "cellZ": { + "type": "integer", + "description": "Cell Z coordinate." + }, + "colliderType": { + "type": "string", + "description": "Resulting collider type." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "cellX", + "cellY", + "cellZ", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-set-orientation/SKILL.md b/.opencode/skills/tilemap-set-orientation/SKILL.md new file mode 100644 index 0000000..1b9296c --- /dev/null +++ b/.opencode/skills/tilemap-set-orientation/SKILL.md @@ -0,0 +1,294 @@ +--- +name: tilemap-set-orientation +description: Set the tile anchor (sub-cell pivot, default (0.5,0.5,0)) and/or the layout orientation (XY/XZ/YX/YZ/ZX/ZY/Custom) of a Tilemap. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Set Anchor + Orientation + +Configure how a `Tilemap` positions and orients its tiles. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `anchor` — optional sub-cell anchor (tile pivot within a cell), default `(0.5,0.5,0)`. +- `orientation` — optional layout plane: `XY` (default 2D), `XZ`, `YX`, `YZ`, `ZX`, `ZY`, `Custom`. + +## Behavior + +Sets `Tilemap.tileAnchor` and/or `Tilemap.orientation`, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-set-orientation --input '{ + "gameObjectRef": "string_value", + "anchor": "string_value", + "orientation": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-set-orientation --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-set-orientation --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `anchor` | `any` | No | Optional sub-cell tile anchor (default (0.5,0.5,0)). | +| `orientation` | `any` | No | Optional layout orientation plane. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "anchor": { + "$ref": "#/$defs/UnityEngine.Vector3" + }, + "orientation": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapOrientation" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-TilemapOrientation": { + "type": "string", + "enum": [ + "XY", + "XZ", + "YX", + "YZ", + "ZX", + "ZY", + "Custom" + ] + } + }, + "required": [ + "gameObjectRef" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetOrientationResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetOrientationResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "tileAnchor": { + "$ref": "#/$defs/UnityEngine.Vector3", + "description": "Resulting tile anchor." + }, + "orientation": { + "type": "string", + "description": "Resulting orientation." + }, + "anchorApplied": { + "type": "boolean", + "description": "True when the anchor was changed." + }, + "orientationApplied": { + "type": "boolean", + "description": "True when the orientation was changed." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "tileAnchor", + "anchorApplied", + "orientationApplied", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-set-tile-flags/SKILL.md b/.opencode/skills/tilemap-set-tile-flags/SKILL.md new file mode 100644 index 0000000..d9782eb --- /dev/null +++ b/.opencode/skills/tilemap-set-tile-flags/SKILL.md @@ -0,0 +1,341 @@ +--- +name: tilemap-set-tile-flags +description: Set the per-cell tint color and/or transform (flip X/Y, Z rotation, scale) of a tile already painted into a Tilemap. Unlocks the relevant TileFlags so the overrides take effect. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Set Tile Color + Transform + +Override the per-cell color and transform of a single tile in a `Tilemap`. + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `x`, `y`, `z` — the cell coordinate (z defaults to 0). +- `color` — optional per-cell tint color; unlocks `TileFlags.LockColor` when applied. +- `flipX`, `flipY` — optional booleans to mirror the tile. +- `rotationZ` — optional Z rotation in degrees. +- `scale` — optional uniform/again per-axis scale (default identity). + +## Behavior + +When a color is given, removes `TileFlags.LockColor` then calls `SetColor`. When any transform argument is given, removes `TileFlags.LockTransform` then builds a TRS matrix and calls `SetTransformMatrix`. Marks the scene dirty and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-set-tile-flags --input '{ + "gameObjectRef": "string_value", + "x": 0, + "y": 0, + "z": 0, + "color": "string_value", + "flipX": "string_value", + "flipY": "string_value", + "rotationZ": "string_value", + "scale": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-set-tile-flags --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-set-tile-flags --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `x` | `integer` | Yes | Cell X coordinate. | +| `y` | `integer` | Yes | Cell Y coordinate. | +| `z` | `integer` | No | Cell Z coordinate (default 0). | +| `color` | `any` | No | Optional per-cell tint color. | +| `flipX` | `any` | No | Optional: mirror the tile horizontally. | +| `flipY` | `any` | No | Optional: mirror the tile vertically. | +| `rotationZ` | `any` | No | Optional: Z rotation in degrees. | +| `scale` | `any` | No | Optional per-axis scale (default (1,1,1)). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "x": { + "type": "integer" + }, + "y": { + "type": "integer" + }, + "z": { + "type": "integer" + }, + "color": { + "$ref": "#/$defs/UnityEngine.Color" + }, + "flipX": { + "$ref": "#/$defs/System.Boolean" + }, + "flipY": { + "$ref": "#/$defs/System.Boolean" + }, + "rotationZ": { + "$ref": "#/$defs/System.Single" + }, + "scale": { + "$ref": "#/$defs/UnityEngine.Vector3" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.Color": { + "type": "object", + "properties": { + "r": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "g": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "b": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "a": { + "type": "number", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "r", + "g", + "b", + "a" + ], + "additionalProperties": false + }, + "System.Boolean": { + "type": "boolean" + }, + "System.Single": { + "type": "number" + }, + "UnityEngine.Vector3": { + "type": "object", + "properties": { + "x": { + "type": "number" + }, + "y": { + "type": "number" + }, + "z": { + "type": "number" + } + }, + "required": [ + "x", + "y", + "z" + ], + "additionalProperties": false + } + }, + "required": [ + "gameObjectRef", + "x", + "y" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetTileFlagsResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetTileFlagsResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "cellX": { + "type": "integer", + "description": "Cell X coordinate." + }, + "cellY": { + "type": "integer", + "description": "Cell Y coordinate." + }, + "cellZ": { + "type": "integer", + "description": "Cell Z coordinate." + }, + "colorApplied": { + "type": "boolean", + "description": "True when a color override was applied." + }, + "transformApplied": { + "type": "boolean", + "description": "True when a transform override was applied." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "cellX", + "cellY", + "cellZ", + "colorApplied", + "transformApplied", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/tilemap-set-tile/SKILL.md b/.opencode/skills/tilemap-set-tile/SKILL.md new file mode 100644 index 0000000..dbd0d83 --- /dev/null +++ b/.opencode/skills/tilemap-set-tile/SKILL.md @@ -0,0 +1,259 @@ +--- +name: tilemap-set-tile +description: Paint a single tile (a TileBase asset such as a Tile or RuleTile) into a Tilemap at a given cell coordinate. Pass a null/empty tileAssetPath to erase the cell. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tilemap / Set Tile + +Set the tile at a single cell of a `Tilemap`. The tile is loaded from an `Assets/`-rooted path to any `TileBase` asset (a `Tile`, `RuleTile`, etc.). + +## Inputs + +- `gameObjectRef` — the GameObject hosting the `Tilemap` (required). +- `x`, `y`, `z` — the integer cell coordinate (z defaults to 0). +- `tileAssetPath` — `Assets/`-rooted path to the `TileBase` asset; null/empty erases the cell. + +## Behavior + +Loads the tile asset (when supplied), calls `Tilemap.SetTile(cell, tile)`, marks the scene dirty, and repaints. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool tilemap-set-tile --input '{ + "gameObjectRef": "string_value", + "x": 0, + "y": 0, + "z": 0, + "tileAssetPath": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tilemap-set-tile --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tilemap-set-tile --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `any` | Yes | Reference to the GameObject containing the Tilemap component. | +| `x` | `integer` | Yes | Cell X coordinate. | +| `y` | `integer` | Yes | Cell Y coordinate. | +| `z` | `integer` | No | Cell Z coordinate (default 0). | +| `tileAssetPath` | `string` | No | Assets/-rooted path to the TileBase asset to paint. Null/empty erases the cell. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef" + }, + "x": { + "type": "integer" + }, + "y": { + "type": "integer" + }, + "z": { + "type": "integer" + }, + "tileAssetPath": { + "type": "string" + } + }, + "$defs": { + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + } + }, + "required": [ + "gameObjectRef", + "x", + "y" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetTileResponse" + } + }, + "$defs": { + "AIGD.GameObjectRef": { + "type": "object", + "properties": { + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If it is '0' and 'path', 'name', 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'. Priority: 1 (Recommended)" + }, + "path": { + "type": "string", + "description": "Path of a GameObject in the hierarchy Sample 'character/hand/finger/particle'. Priority: 2." + }, + "name": { + "type": "string", + "description": "Name of a GameObject in hierarchy. Priority: 3." + }, + "assetType": { + "$ref": "#/$defs/System.Type", + "description": "Type of the asset." + }, + "assetPath": { + "type": "string", + "description": "Path to the asset within the project. Starts with 'Assets/'" + }, + "assetGuid": { + "type": "string", + "description": "Unique identifier for the asset." + } + }, + "required": [ + "instanceID" + ], + "description": "Find GameObject in opened Prefab or in the active Scene." + }, + "UnityEngine.EntityId": { + "type": "string", + "pattern": "^[0-9]+$" + }, + "System.Type": { + "type": "string" + }, + "AIGD.ComponentRef": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "Component 'index' attached to a gameObject. The first index is '0' and that is usually Transform or RectTransform. Priority: 2. Default value is -1." + }, + "typeName": { + "type": "string", + "description": "Component type full name. Sample 'UnityEngine.Transform'. If the gameObject has two components of the same type, the output component is unpredictable. Priority: 3. Default value is null." + }, + "instanceID": { + "$ref": "#/$defs/UnityEngine.EntityId", + "description": "instanceID of the UnityEngine.Object. If this is '0', then it will be used as 'null'." + } + }, + "required": [ + "index", + "instanceID" + ], + "description": "Component reference. Used to find a Component at GameObject." + }, + "com.IvanMurzak.Unity.MCP.Editor.API.Tool_Tilemap-SetTileResponse": { + "type": "object", + "properties": { + "gameObjectRef": { + "$ref": "#/$defs/AIGD.GameObjectRef", + "description": "Reference to the Tilemap GameObject." + }, + "tilemapRef": { + "$ref": "#/$defs/AIGD.ComponentRef", + "description": "Reference to the Tilemap component." + }, + "cellX": { + "type": "integer", + "description": "Cell X coordinate." + }, + "cellY": { + "type": "integer", + "description": "Cell Y coordinate." + }, + "cellZ": { + "type": "integer", + "description": "Cell Z coordinate." + }, + "tileAssetPath": { + "type": "string", + "description": "Path of the painted tile asset, or null." + }, + "erased": { + "type": "boolean", + "description": "True when the cell was erased (no tile painted)." + }, + "success": { + "type": "boolean", + "description": "Whether the operation succeeded." + } + }, + "required": [ + "cellX", + "cellY", + "cellZ", + "erased", + "success" + ] + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/timeline-clip-add/SKILL.md b/.opencode/skills/timeline-clip-add/SKILL.md new file mode 100644 index 0000000..8660b1c --- /dev/null +++ b/.opencode/skills/timeline-clip-add/SKILL.md @@ -0,0 +1,112 @@ +--- +name: timeline-clip-add +description: Add a clip to a track on a `TimelineAsset`. For AnimationTracks pass an `animationClipPath`; for AudioTracks pass an `audioClipPath`; otherwise a default clip is created. Optionally set start, duration and display name. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Add Clip + +Add a clip to a track. The clip type depends on the track: an `AnimationTrack` hosts an `AnimationClip`, an `AudioTrack` hosts an `AudioClip`, and other tracks get a default clip. When no source asset is supplied a default (empty) clip is created. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `trackName` / `trackIndex` — which track to add the clip to (name wins; index default 0). +- `animationClipPath` — optional Assets path to an `AnimationClip` (AnimationTrack only). +- `audioClipPath` — optional Assets path to an `AudioClip` (AudioTrack only). +- `start` — optional clip start time in seconds (default 0). +- `duration` — optional clip duration in seconds; when > 0 overrides the default duration. +- `displayName` — optional clip display name. + +## Behavior + +Resolves the track, creates the appropriate clip (typed when a source asset is given, else a default clip), applies start/duration/name, saves the asset, and returns the new clip's index and timing. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-clip-add --input '{ + "assetPath": "string_value", + "trackName": "string_value", + "trackIndex": 0, + "animationClipPath": "string_value", + "audioClipPath": "string_value", + "start": 0, + "duration": 0, + "displayName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-clip-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-clip-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `trackName` | `string` | No | Name of the target track. Takes precedence over trackIndex when provided. | +| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. | +| `animationClipPath` | `string` | No | Optional Assets path to an AnimationClip (used for AnimationTracks). | +| `audioClipPath` | `string` | No | Optional Assets path to an AudioClip (used for AudioTracks). | +| `start` | `number` | No | Clip start time in seconds (default 0). | +| `duration` | `number` | No | Clip duration in seconds; when > 0 overrides the default duration. | +| `displayName` | `string` | No | Optional clip display name. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "animationClipPath": { + "type": "string" + }, + "audioClipPath": { + "type": "string" + }, + "start": { + "type": "number" + }, + "duration": { + "type": "number" + }, + "displayName": { + "type": "string" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-clip-move/SKILL.md b/.opencode/skills/timeline-clip-move/SKILL.md new file mode 100644 index 0000000..d12620c --- /dev/null +++ b/.opencode/skills/timeline-clip-move/SKILL.md @@ -0,0 +1,101 @@ +--- +name: timeline-clip-move +description: Move a clip along its track — either to an absolute `start` time or by a relative `deltaSeconds`. Duration is preserved. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Move Clip + +Reposition a clip on its track without changing its duration. Provide either an absolute `start` or a relative `deltaSeconds` (delta is ignored when `start` is supplied). + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `trackName` / `trackIndex` — which track holds the clip (name wins; index default 0). +- `clipIndex` — required zero-based clip index. +- `start` — optional absolute new start time (seconds). +- `deltaSeconds` — optional relative shift (seconds); used only when `start` is null. + +## Behavior + +Computes the new start (clamped to >= 0), sets `clip.start`, saves the asset, and returns the old and new start. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-clip-move --input '{ + "assetPath": "string_value", + "clipIndex": 0, + "trackName": "string_value", + "trackIndex": 0, + "start": 0, + "deltaSeconds": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-clip-move --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-clip-move --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `clipIndex` | `integer` | Yes | Zero-based index of the clip on its track. | +| `trackName` | `string` | No | Name of the track holding the clip. Takes precedence over trackIndex. | +| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. | +| `start` | `number` | No | Optional absolute new start time in seconds. | +| `deltaSeconds` | `number` | No | Optional relative shift in seconds; used only when start is null. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "clipIndex": { + "type": "integer" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "start": { + "type": "number" + }, + "deltaSeconds": { + "type": "number" + } + }, + "required": [ + "assetPath", + "clipIndex" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-clip-set-timing/SKILL.md b/.opencode/skills/timeline-clip-set-timing/SKILL.md new file mode 100644 index 0000000..8cb7f05 --- /dev/null +++ b/.opencode/skills/timeline-clip-set-timing/SKILL.md @@ -0,0 +1,135 @@ +--- +name: timeline-clip-set-timing +description: "Set the timing of a clip on a Timeline track: start, duration, clip-in (trim), blend-in / blend-out durations, ease-in / ease-out durations, and time scale. Only the values you supply are changed." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Set Clip Timing + +Adjust the timing of an existing clip identified by track + clip index. Any value left null is untouched, so this tool can tweak a single property or several at once. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `trackName` / `trackIndex` — which track holds the clip (name wins; index default 0). +- `clipIndex` — required zero-based index of the clip on its track. +- `start` — optional new start time (seconds). +- `duration` — optional new duration (seconds). +- `clipIn` — optional clip-in / trim offset into the source asset (seconds). +- `blendInDuration` / `blendOutDuration` — optional crossfade blend durations (seconds). +- `easeInDuration` / `easeOutDuration` — optional ease (fade) durations (seconds). +- `timeScale` — optional playback time scale of the clip. + +## Behavior + +Resolves the clip, applies each supplied value, saves the asset, and returns the resulting timing. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-clip-set-timing --input '{ + "assetPath": "string_value", + "clipIndex": 0, + "trackName": "string_value", + "trackIndex": 0, + "start": 0, + "duration": 0, + "clipIn": 0, + "blendInDuration": 0, + "blendOutDuration": 0, + "easeInDuration": 0, + "easeOutDuration": 0, + "timeScale": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-clip-set-timing --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-clip-set-timing --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `clipIndex` | `integer` | Yes | Zero-based index of the clip on its track. | +| `trackName` | `string` | No | Name of the track holding the clip. Takes precedence over trackIndex. | +| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. | +| `start` | `number` | No | Optional new start time in seconds. | +| `duration` | `number` | No | Optional new duration in seconds. | +| `clipIn` | `number` | No | Optional clip-in (trim offset into the source asset) in seconds. | +| `blendInDuration` | `number` | No | Optional blend-in (crossfade) duration in seconds. | +| `blendOutDuration` | `number` | No | Optional blend-out (crossfade) duration in seconds. | +| `easeInDuration` | `number` | No | Optional ease-in (fade) duration in seconds. | +| `easeOutDuration` | `number` | No | Optional ease-out (fade) duration in seconds. | +| `timeScale` | `number` | No | Optional playback time scale of the clip. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "clipIndex": { + "type": "integer" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "start": { + "type": "number" + }, + "duration": { + "type": "number" + }, + "clipIn": { + "type": "number" + }, + "blendInDuration": { + "type": "number" + }, + "blendOutDuration": { + "type": "number" + }, + "easeInDuration": { + "type": "number" + }, + "easeOutDuration": { + "type": "number" + }, + "timeScale": { + "type": "number" + } + }, + "required": [ + "assetPath", + "clipIndex" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-create/SKILL.md b/.opencode/skills/timeline-create/SKILL.md new file mode 100644 index 0000000..1e7b905 --- /dev/null +++ b/.opencode/skills/timeline-create/SKILL.md @@ -0,0 +1,89 @@ +--- +name: timeline-create +description: Create a new empty `TimelineAsset` (.playable) at a project path. Optionally set the frame rate and a fixed duration mode. Returns the created asset path and GUID. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Create TimelineAsset + +Create a new `TimelineAsset` and save it to disk at an `Assets/`-rooted `.playable` path. A `TimelineAsset` is the authoring container holding tracks, clips, and markers for a cutscene or sequence; a scene `PlayableDirector` plays it. + +## Inputs + +- `assetPath` — required `Assets/...`-rooted path ending in `.playable`. Missing folders are created. +- `frameRate` — optional editor frame rate of the timeline (default 60). +- `durationMode` — optional `BasedOnClips` (default) or `FixedLength`. +- `fixedDuration` — optional duration in seconds, used when `durationMode` is `FixedLength`. + +## Behavior + +Creates the intermediate folders, instantiates a `TimelineAsset`, applies the editor settings, writes it via `AssetDatabase.CreateAsset`, saves, and returns the path + GUID. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-create --input '{ + "assetPath": "string_value", + "frameRate": 0, + "durationMode": "string_value", + "fixedDuration": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-create --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path ending in '.playable' (e.g. 'Assets/Timelines/Intro.playable'). | +| `frameRate` | `number` | No | Editor frame rate of the timeline (default 60). | +| `durationMode` | `string` | No | Duration mode: 'BasedOnClips' (default) or 'FixedLength'. | +| `fixedDuration` | `number` | No | Fixed duration in seconds, used only when durationMode is 'FixedLength'. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "frameRate": { + "type": "number" + }, + "durationMode": { + "type": "string" + }, + "fixedDuration": { + "type": "number" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-director-bind/SKILL.md b/.opencode/skills/timeline-director-bind/SKILL.md new file mode 100644 index 0000000..c20328a --- /dev/null +++ b/.opencode/skills/timeline-director-bind/SKILL.md @@ -0,0 +1,84 @@ +--- +name: timeline-director-bind +description: Bind a `TimelineAsset` to a scene GameObject's `PlayableDirector` (adding the component if missing). Optionally set the play-on-awake flag. Returns the director's GameObject and instanceId. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Bind PlayableDirector + +Assign a `TimelineAsset` as the playable of a scene `PlayableDirector` so the timeline can be played at runtime/in the editor. If the GameObject has no `PlayableDirector`, one is added. + +## Inputs + +- `gameObjectRef` — the scene GameObject to host/own the `PlayableDirector` (required). +- `assetPath` — the `.playable` TimelineAsset to bind (required). +- `playOnAwake` — optional flag to set `PlayableDirector.playOnAwake`. + +## Behavior + +Resolves the GameObject, ensures a `PlayableDirector`, sets `playableAsset` to the loaded `TimelineAsset`, applies `playOnAwake` when provided, marks the scene dirty, and returns the director GameObject reference + instanceId. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-director-bind --input '{ + "gameObjectRef": "string_value", + "assetPath": "string_value", + "playOnAwake": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-director-bind --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-director-bind --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 | +|------|------|----------|-------------| +| `gameObjectRef` | `string` | Yes | Reference to the scene GameObject that should own the PlayableDirector. RQL: GameObjectRef | +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable) to bind. | +| `playOnAwake` | `boolean` | No | Optional value for PlayableDirector.playOnAwake. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "gameObjectRef": { + "type": "string" + }, + "assetPath": { + "type": "string" + }, + "playOnAwake": { + "type": "boolean" + } + }, + "required": [ + "gameObjectRef", + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-get/SKILL.md b/.opencode/skills/timeline-get/SKILL.md new file mode 100644 index 0000000..36b3c77 --- /dev/null +++ b/.opencode/skills/timeline-get/SKILL.md @@ -0,0 +1,94 @@ +--- +name: timeline-get +description: "Generic read: serialize a Timeline object via ReflectorNet — the `TimelineAsset` itself, a `TrackAsset` (by name/index), or a clip's `PlayableAsset` (track + clipIndex). Pair with 'timeline-modify' to write changes back. Read-only." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Get Object + +Serialize a Timeline object via ReflectorNet. This is the generic escape hatch for fields not covered by the dedicated tools (e.g. an `AnimationPlayableAsset`'s settings or a track's mixer properties). + +## Inputs + +- `assetPath` — required `.playable` TimelineAsset path. +- `trackName` / `trackIndex` — when set, target a track instead of the whole asset. +- `clipIndex` — when >= 0 (and a track is selected), target that clip's `PlayableAsset`. +- `deepSerialization` — when `true`, recurse through nested objects. + +## Behavior + +Resolves the target object (asset / track / clip asset), serializes it via ReflectorNet, and returns the serialized member plus the resolved type name. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-get --input '{ + "assetPath": "string_value", + "trackName": "string_value", + "trackIndex": 0, + "clipIndex": 0, + "deepSerialization": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-get --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-get --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `trackName` | `string` | No | Optional track name to target a track instead of the asset. | +| `trackIndex` | `integer` | No | Root-track index used when trackName is null and a track target is wanted (-1 = asset only). | +| `clipIndex` | `integer` | No | Clip index to target that clip's PlayableAsset (-1 = the track/asset itself). | +| `deepSerialization` | `boolean` | No | Performs deep serialization including nested objects. Otherwise only top-level members. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "clipIndex": { + "type": "integer" + }, + "deepSerialization": { + "type": "boolean" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-list/SKILL.md b/.opencode/skills/timeline-list/SKILL.md new file mode 100644 index 0000000..cedbda1 --- /dev/null +++ b/.opencode/skills/timeline-list/SKILL.md @@ -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. + diff --git a/.opencode/skills/timeline-marker-add/SKILL.md b/.opencode/skills/timeline-marker-add/SKILL.md new file mode 100644 index 0000000..7b19354 --- /dev/null +++ b/.opencode/skills/timeline-marker-add/SKILL.md @@ -0,0 +1,102 @@ +--- +name: timeline-marker-add +description: Add a marker at a time on a track (or the timeline marker track). `markerType` accepts 'Signal' (a SignalEmitter, default) or a full IMarker/ScriptableObject marker type name. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Add Marker + +Add a marker at a given time. By default a `SignalEmitter` is created (the standard Timeline signal marker). A full marker type name can be supplied to create a custom marker. The marker is placed on the named track, or on the timeline's marker track when no track is given. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `time` — required marker time in seconds. +- `markerType` — 'Signal' (default) or a full marker type name (must implement `IMarker`). +- `trackName` — optional track to host the marker; when null, the timeline's marker track is used. +- `trackIndex` — root-track index used when `trackName` is null AND `useMarkerTrack` is false. +- `useMarkerTrack` — when true (default), null trackName means the timeline marker track; when false, the marker is placed on the track at `trackIndex`. + +## Behavior + +Resolves the marker holder (a `TrackAsset` or the timeline's marker track), creates the marker via `CreateMarker`, sets its time, saves the asset, and returns the marker type and time. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-marker-add --input '{ + "assetPath": "string_value", + "time": 0, + "markerType": "string_value", + "trackName": "string_value", + "trackIndex": 0, + "useMarkerTrack": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-marker-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-marker-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `time` | `number` | Yes | Marker time in seconds. | +| `markerType` | `string` | No | Marker type: 'Signal' (default) or a full marker type name implementing IMarker. | +| `trackName` | `string` | No | Optional track to host the marker. Takes precedence over the marker-track / index logic. | +| `trackIndex` | `integer` | No | Root-track index used when trackName is null and useMarkerTrack is false. | +| `useMarkerTrack` | `boolean` | No | When true (default), a null trackName targets the timeline's marker track; when false, the track at trackIndex. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "time": { + "type": "number" + }, + "markerType": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "useMarkerTrack": { + "type": "boolean" + } + }, + "required": [ + "assetPath", + "time" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-modify/SKILL.md b/.opencode/skills/timeline-modify/SKILL.md new file mode 100644 index 0000000..8b9faa8 --- /dev/null +++ b/.opencode/skills/timeline-modify/SKILL.md @@ -0,0 +1,95 @@ +--- +name: timeline-modify +description: "Generic write: apply a `SerializedMember` diff to a Timeline object (the `TimelineAsset`, a `TrackAsset`, or a clip's `PlayableAsset`) via ReflectorNet `TryModify`. Use 'timeline-get' first to inspect the structure. Remember: object *fields* must be supplied through the `fields` channel and *properties* through `props` — there is no cross-fallback." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Modify Object + +Modify a Timeline object by applying a `SerializedMember` diff via ReflectorNet. This is the generic escape hatch for members not covered by the dedicated tools. + +## Inputs + +- `assetPath` — required `.playable` TimelineAsset path. +- `data` — the `SerializedMember` diff to apply. Put C# *fields* in the `fields` array and *properties* in the `props` array; ReflectorNet resolves them on separate channels with no fallback. +- `trackName` / `trackIndex` — when set, target a track instead of the whole asset. +- `clipIndex` — when >= 0 (and a track is selected), target that clip's `PlayableAsset`. + +## Behavior + +Resolves the target, applies the diff via `Reflector.TryModify`, and on success marks the asset dirty and saves. The applied logs are returned. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-modify --input '{ + "assetPath": "string_value", + "data": "string_value", + "trackName": "string_value", + "trackIndex": 0, + "clipIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-modify --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-modify --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `data` | `string` | Yes | The SerializedMember diff to apply. Fields go in 'fields', properties in 'props'. RQL: SerializedMember | +| `trackName` | `string` | No | Optional track name to target a track instead of the asset. | +| `trackIndex` | `integer` | No | Root-track index used when trackName is null and a track target is wanted (-1 = asset only). | +| `clipIndex` | `integer` | No | Clip index to target that clip's PlayableAsset (-1 = the track/asset itself). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "data": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "clipIndex": { + "type": "integer" + } + }, + "required": [ + "assetPath", + "data" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-track-add/SKILL.md b/.opencode/skills/timeline-track-add/SKILL.md new file mode 100644 index 0000000..7a5269d --- /dev/null +++ b/.opencode/skills/timeline-track-add/SKILL.md @@ -0,0 +1,90 @@ +--- +name: timeline-track-add +description: Add a track to a `TimelineAsset`. `trackType` accepts a kind keyword (Animation, Activation, Audio, Signal, Control, Playable, Group) or a full TrackAsset type name. Optionally nest the new track under an existing GroupTrack. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Add Track + +Add a new track to a `TimelineAsset`. Tracks are the lanes a timeline plays: an `AnimationTrack` drives an Animator, an `ActivationTrack` toggles a GameObject active, an `AudioTrack` plays clips, a `SignalTrack` emits signals, a `ControlTrack` drives nested directors/particles, and a `GroupTrack` organizes other tracks. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `trackType` — required kind keyword or full TrackAsset type name. +- `trackName` — optional display name for the new track. +- `parentGroupName` — optional name of an existing GroupTrack to nest the new track under. + +## Behavior + +Resolves the track type, creates the track via `TimelineAsset.CreateTrack`, parents it under the named group when provided, saves the asset, and returns the new track's name, type and root index. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-track-add --input '{ + "assetPath": "string_value", + "trackType": "string_value", + "trackName": "string_value", + "parentGroupName": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-track-add --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-track-add --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `trackType` | `string` | Yes | Track kind keyword (Animation/Activation/Audio/Signal/Control/Playable/Group) or full TrackAsset type name. | +| `trackName` | `string` | No | Optional display name for the new track. | +| `parentGroupName` | `string` | No | Optional name of an existing GroupTrack to nest the new track under. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "trackType": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "parentGroupName": { + "type": "string" + } + }, + "required": [ + "assetPath", + "trackType" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-track-bind/SKILL.md b/.opencode/skills/timeline-track-bind/SKILL.md new file mode 100644 index 0000000..6be6a00 --- /dev/null +++ b/.opencode/skills/timeline-track-bind/SKILL.md @@ -0,0 +1,94 @@ +--- +name: timeline-track-bind +description: Bind a scene object to a Timeline output track via a `PlayableDirector` generic binding — e.g. point an AnimationTrack at an `Animator`, or an ActivationTrack at a GameObject. The director must already play the timeline that owns the track. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Bind Track + +Set the scene-object binding for a specific output track on a `PlayableDirector`. The director's `playableAsset` must be the `TimelineAsset` that owns the track. For an `AnimationTrack` the binding is typically an `Animator`; for an `ActivationTrack`/`AudioTrack` it is the GameObject / AudioSource that the track drives. + +## Inputs + +- `directorRef` — GameObject hosting the `PlayableDirector` that plays the timeline (required). +- `trackName` / `trackIndex` — which output track to bind (name wins; index default 0). +- `targetRef` — the scene GameObject to bind to the track. When the track expects a `Component` (e.g. Animator/AudioSource), the matching component on this GameObject is used; otherwise the GameObject itself is bound. +- `clearBinding` — when true, clears the binding instead of setting it (ignored if `targetRef` is given). + +## Behavior + +Resolves the director and its timeline, finds the track, computes the binding object (component when the track output type is a Component, else the GameObject), calls `SetGenericBinding`, marks the scene dirty, and returns the bound object's name. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-track-bind --input '{ + "directorRef": "string_value", + "trackName": "string_value", + "trackIndex": 0, + "targetRef": "string_value", + "clearBinding": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-track-bind --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-track-bind --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 | +|------|------|----------|-------------| +| `directorRef` | `string` | Yes | Reference to the GameObject hosting the PlayableDirector that plays the timeline. RQL: GameObjectRef | +| `trackName` | `string` | No | Name of the output track to bind. Takes precedence over trackIndex. | +| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. | +| `targetRef` | `string` | No | Scene GameObject to bind to the track (its matching component is used when the track expects one). RQL: GameObjectRef | +| `clearBinding` | `boolean` | No | If true, clears the track binding (ignored when targetRef is provided). | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "directorRef": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + }, + "targetRef": { + "type": "string" + }, + "clearBinding": { + "type": "boolean" + } + }, + "required": [ + "directorRef" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-track-list/SKILL.md b/.opencode/skills/timeline-track-list/SKILL.md new file mode 100644 index 0000000..3f76f47 --- /dev/null +++ b/.opencode/skills/timeline-track-list/SKILL.md @@ -0,0 +1,77 @@ +--- +name: timeline-track-list +description: List the tracks of a `TimelineAsset` — name, type, mute/lock state, clip count, and each track's clips (with timing). Read-only. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / List Tracks + +List the tracks of a `TimelineAsset`. For each output track returns its name, type, muted / locked flags, clip count, and (optionally) the clips with their timing. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `includeClips` — when `true` (default) include each track's clip list; when `false`, counts only. + +## Behavior + +Enumerates `TimelineAsset.GetOutputTracks()` and reports each track. Read-only. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-track-list --input '{ + "assetPath": "string_value", + "includeClips": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-track-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-track-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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `includeClips` | `boolean` | No | If true (default), include each track's clips and their timing; if false, only counts. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "includeClips": { + "type": "boolean" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/timeline-track-remove/SKILL.md b/.opencode/skills/timeline-track-remove/SKILL.md new file mode 100644 index 0000000..c014e30 --- /dev/null +++ b/.opencode/skills/timeline-track-remove/SKILL.md @@ -0,0 +1,83 @@ +--- +name: timeline-track-remove +description: Remove a root track (and its clips/markers) from a `TimelineAsset`, identified by `trackName` or by `trackIndex`. Destructive. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Timeline / Remove Track + +Remove a track from a `TimelineAsset`. The track is identified by name (preferred) or by its root index. All clips and markers on the track are deleted with it. + +## Inputs + +- `assetPath` — required path to the `.playable` TimelineAsset. +- `trackName` — name of the track to remove. When provided, takes precedence over `trackIndex`. +- `trackIndex` — zero-based root-track index used when `trackName` is null/empty (default 0). + +## Behavior + +Resolves the track, deletes it via `TimelineAsset.DeleteTrack`, saves the asset, and returns the remaining track count. Destructive. Runs on the Unity main thread. + +## How to Call + +```bash +unity-mcp-cli run-tool timeline-track-remove --input '{ + "assetPath": "string_value", + "trackName": "string_value", + "trackIndex": 0 +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool timeline-track-remove --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool timeline-track-remove --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 | +|------|------|----------|-------------| +| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). | +| `trackName` | `string` | No | Name of the track to remove. Takes precedence over trackIndex when provided. | +| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "assetPath": { + "type": "string" + }, + "trackName": { + "type": "string" + }, + "trackIndex": { + "type": "integer" + } + }, + "required": [ + "assetPath" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/tool-set-enabled-state/SKILL.md b/.opencode/skills/tool-set-enabled-state/SKILL.md new file mode 100644 index 0000000..f3a2a44 --- /dev/null +++ b/.opencode/skills/tool-set-enabled-state/SKILL.md @@ -0,0 +1,77 @@ +--- +name: tool-set-enabled-state +description: Enable or disable MCP tools by name in batch. Persists the change via `UnityMcpPluginEditor.Instance.Save()` only when at least one tool actually flipped. Returns per-input success flags plus optional operation logs. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tool / Set Enabled State + +Enable or disable MCP tools by name. Allows controlling which tools are available for the AI agent. + +## Inputs + +- `tools` — array of `ToolToggleInput { Name, Enabled }`. Non-empty. +- `includeLogs` (default `false`) — when true, returns per-step operation logs alongside the success map. + +## Behavior + +Each entry is resolved against the tool manager's exact-name and case-insensitive lookups. Already-correct state short-circuits as success without writing. The plugin's config is saved once at the end iff at least one tool actually changed state. + +## How to Call + +```bash +unity-mcp-cli run-tool tool-set-enabled-state --input '{ + "tools": "string_value", + "includeLogs": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool tool-set-enabled-state --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool tool-set-enabled-state --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 | +|------|------|----------|-------------| +| `tools` | `string` | Yes | Array of tools with their desired enabled state. RQL: [ToolToggleInput] | +| `includeLogs` | `boolean` | No | Include operation logs in the result. Default: false | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "tools": { + "type": "string" + }, + "includeLogs": { + "type": "boolean" + } + }, + "required": [ + "tools" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/type-get-json-schema/SKILL.md b/.opencode/skills/type-get-json-schema/SKILL.md new file mode 100644 index 0000000..a8e2d30 --- /dev/null +++ b/.opencode/skills/type-get-json-schema/SKILL.md @@ -0,0 +1,115 @@ +--- +name: type-get-json-schema +description: Generate a JSON Schema for a C# type name via reflection. Supports primitives, enums, arrays, generic collections, dictionaries, and complex objects. Knobs control inclusion of nested `$defs` and whether type-level / property-level descriptions are emitted. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Type / Get Json Schema + +Generates a JSON Schema for a given C# type name using reflection. Supports primitives, enums, arrays, generic collections, dictionaries, and complex objects. The type must be present in any loaded assembly. Use the full type name (e.g. 'UnityEngine.Vector3') for best results. + +## Inputs + +- `typeName` — full type name preferred (e.g. `UnityEngine.Vector3`, `System.Collections.Generic.List`). Simple names work when unambiguous. +- `descriptionMode` (default `Ignore`) — controls type-level `description`: `Include` keeps it on the target only, `IncludeRecursively` also keeps it inside `$defs`, `Ignore` strips all. +- `propertyDescriptionMode` (default `Ignore`) — controls property/field/item `description`: `Include` keeps on the target's own properties/items only, `IncludeRecursively` also keeps inside `$defs`, `Ignore` strips all. +- `includeNestedTypes` (default `false`) — when true, complex nested types are extracted into `$defs` and referenced via `$ref`. Useful for recursive or large types. +- `writeIndented` (default `false`) — pretty-print the output JSON. + +## How to Call + +```bash +unity-mcp-cli run-tool type-get-json-schema --input '{ + "typeName": "string_value", + "descriptionMode": "string_value", + "propertyDescriptionMode": "string_value", + "includeNestedTypes": false, + "writeIndented": false +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool type-get-json-schema --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool type-get-json-schema --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 | +|------|------|----------|-------------| +| `typeName` | `string` | Yes | Full C# type name to generate the schema for. Examples: 'System.String', 'UnityEngine.Vector3', 'System.Collections.Generic.List'. Simple names like 'Vector3' are also accepted when unambiguous. | +| `descriptionMode` | `string` | No | Controls the type-level 'description' field. Include: keep on the target type only. IncludeRecursively: keep on the target type and inside $defs entries. Ignore: strip all type-level descriptions. Default: Ignore. | +| `propertyDescriptionMode` | `string` | No | Controls 'description' fields on properties, fields, and array items. Include: keep on the target type's own properties/items only. IncludeRecursively: keep on all properties/items including those inside $defs entries. Ignore: strip all property/item descriptions. Default: Ignore. | +| `includeNestedTypes` | `boolean` | No | When true, complex nested types are extracted into '$defs' and referenced via '$ref' instead of being inlined. Useful for large or recursive types. Default: false. | +| `writeIndented` | `boolean` | No | Whether to format the output JSON with indentation for readability. Default: false. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "typeName": { + "type": "string" + }, + "descriptionMode": { + "type": "string", + "enum": [ + "Include", + "IncludeRecursively", + "Ignore" + ] + }, + "propertyDescriptionMode": { + "type": "string", + "enum": [ + "Include", + "IncludeRecursively", + "Ignore" + ] + }, + "includeNestedTypes": { + "type": "boolean" + }, + "writeIndented": { + "type": "boolean" + } + }, + "required": [ + "typeName" + ] +} +``` + +## Output + +### Output JSON Schema + +```json +{ + "type": "object", + "properties": { + "result": { + "type": "string" + } + }, + "required": [ + "result" + ] +} +``` + diff --git a/.opencode/skills/unity-initial-setup/SKILL.md b/.opencode/skills/unity-initial-setup/SKILL.md new file mode 100644 index 0000000..de5419e --- /dev/null +++ b/.opencode/skills/unity-initial-setup/SKILL.md @@ -0,0 +1,126 @@ +--- +name: unity-initial-setup +description: |- + Provides an initial setup for AI Skills, `unity-mcp-cli` command line tool installation + and everything else that is helpful to set up at the start of the project. Essential packages, + and basic configurations. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# AI Game Developer — Initial Setup + +This guide walks through installing the `unity-mcp-cli` command-line tool and using it to set +up a Unity project with AI Skills and MCP integration. + +--- + +## Prerequisites + +### Install Node.js + +`unity-mcp-cli` requires **Node.js ^20.19.0 || >=22.12.0** (Node 21.x is not supported). If you don't have Node.js installed: + +Download the installer from https://nodejs.org/ and run it, or use a package manager: +``` +winget install OpenJS.NodeJS.LTS +``` + +After installation, verify both `node` and `npm` are available: +``` +node --version +npm --version +``` + +--- + +## Install `unity-mcp-cli` Globally + +Install the CLI globally so the `unity-mcp-cli` command is available system-wide: + +```bash +npm install -g unity-mcp-cli +``` + +Verify installation: +```bash +unity-mcp-cli --version +``` + + +> **Alternative**: Run any command without installing globally using `npx`: +> ```bash +> npx unity-mcp-cli --help +> ``` + +--- + +## Quick Start — Full Project Setup + +### 1. Install the Unity-MCP Plugin + +Add the plugin to an existing Unity project: +```bash +unity-mcp-cli install-plugin /path/to/unity/project +``` + +### 2. Configure MCP Tools + +Enable all tools, prompts, and resources: +```bash +unity-mcp-cli configure /path/to/unity/project \ + --enable-all-tools \ + --enable-all-prompts \ + --enable-all-resources +``` + +### 3. Set Up MCP for Your AI Agent + +Configure MCP integration for your AI agent (e.g., Claude Code, Cursor, Copilot): +```bash +unity-mcp-cli setup-mcp claude-code /path/to/unity/project +``` + +List all supported agents: +```bash +unity-mcp-cli setup-mcp --list +``` + +### 4. Generate AI Skills + +Generate skill files for your AI agent (requires Unity Editor to be running with the plugin): +```bash +unity-mcp-cli setup-skills claude-code /path/to/unity/project +``` + +### 5. Open Unity with MCP Connection + +```bash +unity-mcp-cli open /path/to/unity/project +``` + +--- + +## Common Commands Reference + +| Command | Description | +|---|---| +| `unity-mcp-cli install-plugin ` | Install Unity-MCP plugin into a project | +| `unity-mcp-cli remove-plugin ` | Remove Unity-MCP plugin from a project | +| `unity-mcp-cli configure --list` | List current MCP configuration | +| `unity-mcp-cli setup-mcp ` | Write MCP config for an AI agent | +| `unity-mcp-cli setup-skills ` | Generate skill files for an AI agent | +| `unity-mcp-cli create-project ` | Create a new Unity project | +| `unity-mcp-cli install-unity ` | Install a Unity Editor version | +| `unity-mcp-cli open ` | Open a Unity project in the Editor | +| `unity-mcp-cli run-tool ` | Execute an MCP tool via HTTP API | + +Add `--verbose` to any command for detailed diagnostic output. + +--- + +## Troubleshooting + +- **`npm` not found**: Node.js is not installed or not in your PATH. Reinstall Node.js and restart your terminal. +- **Plugin not appearing in Unity**: After `install-plugin`, open the project in Unity Editor. The package manager resolves dependencies on project open. +- **Skills generation fails**: Ensure Unity Editor is running with the MCP plugin installed and connected before running `setup-skills`. diff --git a/.opencode/skills/unity-rql/SKILL.md b/.opencode/skills/unity-rql/SKILL.md new file mode 100644 index 0000000..6429091 --- /dev/null +++ b/.opencode/skills/unity-rql/SKILL.md @@ -0,0 +1,612 @@ +--- +name: unity-rql +description: |- + How to read and change anything in the Unity Editor with RQL (rql-query / rql-mutate / rql-schema): the query + language, operators, sources (scene objects, assets, scenes, prefabs, console logs, Editor state), Editor operations + (create, add components, scenes, prefabs, assets, selection, Play Mode) and what installed extensions add. +metadata: + generated-by: mcp-plugin-dotnet +--- +# RQL — query and change the Unity Editor + +RQL is one pipeline language for the whole Editor: find objects, read members, filter, aggregate, and change them in one +call. Prefer one precise query over many exploratory calls. + +- `rql-query` — read-only queries, compact table results. +- `rql-mutate` — queries ending with `set` / `call`; all-or-nothing, undoable (Ctrl+Z), `dry_run: true` previews. +- `rql-schema` — sources and component types in the scene; `rql-schema(type)` lists one type's members and methods. + +```bash +unity-mcp-cli run-tool rql-query --input '{"query": "objects | where name contains \"Enemy\" | select $ref name"}' +unity-mcp-cli run-tool rql-mutate --input '{"query": "objects | where name == \"Player\" | set active = false"}' +``` + +## Language + +``` +RQL: source | stage | stage ... +Sources: objects (every GameObject in the loaded scenes, inactive included), roots, scenes, selection, prefab (the prefab open in prefab editing mode), console (Editor log entries), shaders, componentTypes, profiler (memory / rendering / frame snapshots; call Start / Stop / Save), tests (test methods; run a selection with tests-run query), testResults (last run), editor (Editor state and operations). Assets: unity.assets("t:Material") or unity.assets("t:Prefab", "Assets/Enemies"), unity.asset("Assets/Mats/Red.mat"). ref("Light#1234") resolves a $ref; unity.find("Player") or unity.find("Level/Pillar_1") a GameObject by unique name or path. +Stages: + where filter + select a b.c alias=(expr) project columns (wrap computed expressions in parentheses) + sort [desc], ... stable sort + first N | skip N | count + get replace each item by a member (lists are flattened) + recurse children [max-depth=N] [include-self=false] walk the hierarchy (input items included by default) + distinct [expr] | group-by expr | sum expr | min expr | max expr | avg expr +Expressions: == != < <= > >= and or not + - * / %; contains, starts-with, ends-with (case-insensitive); matches "regex"; x in [a, b]; x is null; x is not null; $ is Light (includes subclasses); has(member). Literals: numbers, "strings", true/false/null, lists [a, b], objects {x: 1, y: 2}. +Paths: a.b.c, list[0], map["key"]; .member on a list maps over its elements. List methods: .any(pred) .all(pred) .count([pred]) .sum(e) .min(e) .max(e) .first([pred]); inside them bare names refer to the element, falling back to the outer item. +Meta: $ (current item), $ref (stable id such as Light#1234), $type, $path, $index, $depth. Enums compare to strings (type == "Spot"); == on strings is case-sensitive. +Unity: GameObject has components (list), children (list), active, name, tag, layer, transform (position, localPosition, eulerAngles, localScale, parent). Component members are the C# members (public + [SerializeField]); find them via objects | get components | where $ is Light. Vectors/colors print as (x, y, z); write "(1, 2, 3)", [1, 2, 3] or {x: 1, y: 2, z: 3}; colors also "#ff8800". Material shader properties: properties["_Color"]. Destroyed objects read as null (missing references: where target == null). Navigate with paths or get; select only projects output columns. +Results come back as compact rows (header line, then col|col). Long results are truncated — refine with where/first or use count. Unknown members produce warnings with suggestions; rql-schema(type) lists a type's members. +``` + +## Changing things (rql-mutate) + +``` + set path = expr, ... assign members (paths may go through structs: set transform.position.y = transform.position.y + 1) + call Method(args) invoke a method the tools expose +Examples: + objects | where name == "Player" | set transform.position = "(0, 1, 0)" + objects | get components | where $ is Light | set intensity = intensity * 2, color = "#ffcc88" + objects | where tag == "Enemy" | set active = false + unity.asset("Assets/Mats/Red.mat") | set properties["_Color"] = "(1, 0, 0, 1)" + objects | where name == "Spawner" | set targets = append(targets, ref("GameObject#1234")) +Create / add / remove (call; the receipt's result column holds the new object's $ref for follow-up queries): + editor | call CreateGameObject("Props") new root GameObject + editor | call CreateGameObject("Crate", ref("GameObject#1234"), "Cube") child of a parent, optional primitive + objects | where name == "Crate" | call AddComponent("Rigidbody") add a component by type name + objects | where name == "Old" | call Destroy() remove a GameObject (components: get components | where $ is X | call Destroy()) + objects | where name == "Lamp" | set transform.parent = ref("GameObject#1234") reparent (keeps the world position) + objects | where name == "Crate" | call Duplicate() copy next to it (returns the copy) +Scenes, prefabs, assets, Editor state: + editor | call OpenScene("Assets/Scenes/Level.unity") editor | call NewScene("Assets/Scenes/New.unity") + scenes | where path == "" | call SaveAs("Assets/Scenes/New.unity") scenes | where name == "Level" | call SetActive() + editor | call InstantiatePrefab("Assets/Prefabs/Enemy.prefab", ref("GameObject#1234"), "(0, 0, 5)") + objects | where name == "Crate" | call SaveAsPrefab("Assets/Prefabs/Crate.prefab") + editor | call OpenPrefab("Assets/Prefabs/Enemy.prefab") then prefab | recurse children | … then editor | call ClosePrefab() + editor | call CreateMaterial("Assets/Mats/Glow.mat") editor | call MoveAsset("Assets/A.mat", "Assets/Mats/A.mat") + editor | set selection = [ref("GameObject#1234")] editor | set isPlaying = true + profiler | call Start() profiler | call Save("Logs/profile.json") (read: profiler | select memory frame) +``` + +## Sources + +| Source | What | +|---|---| +| `animation` | animation: animators (every Animator in the loaded scenes), CreateClip(path, frameRate, loop), CreateController(path, motion) | +| `cinemachine` | Cinemachine: cameras, brains, noiseProfiles, bodyTypes / aimTypes / extensionTypes; CreateCamera(name, follow, lookAt, position, eulerAngles, priority), EnsureBrain(camera) | +| `componentTypes` | component types that can be added (name fullName namespace) | +| `console` | captured Editor log entries, oldest first (last 1000): logType message timestamp stackTrace sequence | +| `editor` | Editor state (isPlaying, isPaused, selection …) and operations: CreateGameObject, OpenScene, NewScene, SaveScenes, InstantiatePrefab, OpenPrefab / SavePrefab / ClosePrefab, CopyAsset / MoveAsset / DeleteAsset / CreateFolder, CreateMaterial, SaveAssets, RefreshAssets, ClearConsole, ExecuteMenuItem (rql-schema "editor" for signatures) | +| `input` | Input System: assets (.inputactions), layouts, interactions, processors; CreateAsset(path, map?) | +| `navigation` | AI Navigation project settings and operations: agentTypes (bake settings, writable), areas (name, cost), BakeAll(), ClearAll() | +| `objects` | every GameObject in the loaded scenes, depth-first, inactive ones included | +| `prefab` | root GameObject of the prefab open in prefab editing mode (none otherwise) | +| `probuilder` | ProBuilder: meshes (every ProBuilderMesh in the loaded scenes), CreateShape(type, name, size, position, rotation, parent), CreatePolyShape(points, height, name, position, flipNormals, parent), Merge(meshes, deleteSources) | +| `profiler` | Unity profiler: enabled supported memory rendering script frame modules (live snapshots, MB / ms); calls Start, Stop, ClearFrames, EnableModule, Save, Load (rql-schema "profiler" for signatures) | +| `roots` | root GameObjects of the loaded scenes | +| `scenes` | loaded scenes | +| `selection` | objects selected in the Editor | +| `shaders` | every shader the Editor knows (built-in and project): name supported hasErrors | +| `splines` | spline containers of the loaded scenes (containers) and CreateContainer(name, position, eulerAngles, closed, parent) | +| `terrain` | terrain operations without an owner: Create (Terrain GameObject + TerrainData asset), CreateLayer (TerrainLayer asset) | +| `testResults` | results of the last tests-run: name status durationMs message stackTrace | +| `tests` | test methods (fullName name fixture namespace assembly mode categories parameterized explicit ignored); run a selection with tests-run query, e.g. tests \| where fixture == "PlayerTests" | +| `tilemap` | tilemap operations without an owner: CreateTilemap (Grid + Tilemap GameObject), CreateTile, CreateRuleTile (tile assets) | +| `timeline` | timeline operations without an owner: Create (TimelineAsset .playable), CreateSignal (SignalAsset .signal) | +| `probuilder.edges(…)` | probuilder.edges(mesh, faces?): distinct edges [[a, b], …] of the faces (index list; default every face), for Bevel / SubdivideEdges / ConnectEdges | +| `probuilder.facing(…)` | probuilder.facing(mesh, direction): indices of the faces pointing Up, Down, Left, Right, Forward, Back or Other (local space, within 45°) | +| `probuilder.openEdges(…)` | probuilder.openEdges(mesh): border edges [[a, b], …] (a face on one side only: around holes, plane borders), for Bridge | +| `probuilder.vertices(…)` | probuilder.vertices(mesh, start?, count?): [{index, position}] local vertex positions (at most 20 per call; default 0, 20) | +| `terrain.heightAt(…)` | terrain.heightAt(terrain, worldX, worldZ): world-space surface height (Y) at a world X / Z position | +| `terrain.heightStats(…)` | terrain.heightStats(terrain, x?, y?, w?, h?): {min, max, average, cells} of a heightmap region (default: the whole heightmap) | +| `terrain.heights(…)` | terrain.heights(terrain, x, y, w?, h?): normalized heights 0 … 1 of a heightmap region as rows (at most 20 × 20 cells) | +| `tilemap.cell(…)` | tilemap.cell(tilemap, cell): {cell, tile, path, sprite, color, colliderType, flags, transform} of one cell (tile null when empty) | +| `tilemap.cellToWorld(…)` | tilemap.cellToWorld(tilemap, cell): the world position of a cell's center | +| `tilemap.cells(…)` | tilemap.cells(tilemap, tile?): the first 20 occupied cells (optionally of one tile asset, path or name), bottom-left first | +| `tilemap.count(…)` | tilemap.count(tilemap, tile?, minX?, minY?, maxX?, maxY?, z?): occupied cells, optionally of one tile (asset, path or name) and inside a region | +| `tilemap.tileAt(…)` | tilemap.tileAt(tilemap, cell): the tile asset at a cell "(x, y, z)", or null | +| `tilemap.tiles(…)` | tilemap.tiles(tilemap, minX, minY, maxX, maxY, z?): tile names of a region as rows, top row (maxY) first, null = empty (at most 20 × 20) | +| `tilemap.worldToCell(…)` | tilemap.worldToCell(tilemap, "(x, y, z)"): the cell containing a world position | +| `unity.asset(…)` | unity.asset(path): the main asset at a path, e.g. "Assets/Mats/Red.mat" | +| `unity.assets(…)` | unity.assets(filter, folder?): AssetDatabase search, e.g. "t:Material", "t:Prefab Enemy" (at most 200, loaded as needed) | +| `unity.find(…)` | unity.find(name): the GameObject with that unique name or hierarchy path ("Level/Pillar_1"), e.g. set Follow = unity.find("Player") | + +## Animation + +Clips and controllers are assets: `unity.assets("t:AnimationClip")`, `unity.asset("Assets/…/Walk.anim")`, +`unity.asset("Assets/…/Player.controller")`. An AnimationClip has `curves` (path type property keyCount timeRange keys, keys with +writable time value inTangent outTangent …), `objectCurves` (sprite swaps), `events` and `settings` (loopTime loopBlend mirror …), all +writable views, plus ordinary members (frameRate wrapMode legacy length isLooping). An AnimatorController has `layers` (name +defaultWeight blendingMode defaultState `states` anyStateTransitions) and `parameters` (name type defaultFloat defaultInt defaultBool); +states and transitions are assets whose members (speed motion tag … / hasExitTime exitTime duration conditions …) are set directly. +Writes and calls are undoable; creating an asset is not. `rql-schema "AnimationClip"` / `"AnimatorController"` list the methods. + +Clips (curve `path` is the child path under the Animator, "" = its own GameObject; `type` the animated component): + +``` +animation | call CreateClip("Assets/Animations/Walk.anim") empty clip, 60 fps +animation | call CreateClip("Assets/Animations/Idle.anim", 30, true) path, frameRate, loop +unity.assets("t:AnimationClip") | select name length frameRate isLooping n=(curves.count()) e=(events.count()) +unity.asset("Assets/Animations/Walk.anim") | call SetCurve("", "Transform", "localPosition.y", [[0, 0], [0.5, 1], [1, 0]]) path, type, property, keys [time, value(, inTangent, outTangent)] +unity.asset("Assets/Animations/Walk.anim") | call SetCurve("Body", "SpriteRenderer", "m_Color.a", [{time: 0, value: 1}, {time: 1, value: 0, inTangent: -1}]) +unity.asset("Assets/Animations/Walk.anim") | get curves | select path type property keyCount timeRange +unity.asset("Assets/Animations/Walk.anim") | get curves | where property == "localPosition.y" | get keys | select index time value inTangent outTangent +unity.asset("Assets/Animations/Walk.anim") | get curves | where property == "localPosition.y" | set keys[1].value = 2, keys[1].outTangent = 0 +unity.asset("Assets/Animations/Walk.anim") | get curves | where property == "localPosition.y" | call AddKey(1.5, 0.5) returns the key index; RemoveKey(index), SetKeys([[t, v], …]), Evaluate(t) +unity.asset("Assets/Animations/Walk.anim") | get curves | where path == "Body" | set postWrapMode = "Loop" +unity.asset("Assets/Animations/Walk.anim") | call RemoveCurve("Body", "SpriteRenderer", "m_Color.a") or … | get curves | where … | call Remove() +unity.asset("Assets/Animations/Walk.anim") | set frameRate = 30, settings.loopTime = true +unity.asset("Assets/Animations/Walk.anim") | call AddEvent(0.5, "Footstep", "left") time, functionName, stringParameter?, floatParameter?, intParameter? +unity.asset("Assets/Animations/Walk.anim") | get events | select index time functionName stringParameter +unity.asset("Assets/Animations/Walk.anim") | set events[0].time = 0.25, events[0].intParameter = 1 +unity.asset("Assets/Animations/Walk.anim") | call RemoveEvent(0) ClearEvents() / ClearCurves() remove all +``` + +Animator controllers (states by name; a trailing `layer` argument is a layer name or index, default 0): + +``` +animation | call CreateController("Assets/Animations/Player.controller") Base Layer, empty state machine (CreateController(path, motion) adds a state) +unity.asset("Assets/Animations/Player.controller") | call AddParameter("Speed", "Float") Float, Int, Bool or Trigger +unity.asset("Assets/Animations/Player.controller") | call AddParameter("Grounded", "Bool", true) optional default value +unity.asset("Assets/Animations/Player.controller") | call AddParameter("Jump", "Trigger") +unity.asset("Assets/Animations/Player.controller") | call AddState("Idle", unity.asset("Assets/Animations/Idle.anim")) name, motion?, layer?; the first state becomes the default +unity.asset("Assets/Animations/Player.controller") | call AddState("Walk", unity.asset("Assets/Animations/Walk.anim")) +unity.asset("Assets/Animations/Player.controller") | call AddTransition("Idle", "Walk", "Speed", "Greater", 0.1) from, to ("Exit" = exit), parameter?, mode?, threshold?, layer? +unity.asset("Assets/Animations/Player.controller") | call AddTransition("Walk", "Idle", "Speed", "Less", 0.1) +unity.asset("Assets/Animations/Player.controller") | call AddAnyStateTransition("Idle", "Jump") mode defaults by parameter type: Bool / Trigger If, Float Greater, Int Equals +unity.asset("Assets/Animations/Player.controller") | call SetDefaultState("Idle") +unity.asset("Assets/Animations/Player.controller") | get layers | select index name defaultWeight defaultState.name states.name +unity.asset("Assets/Animations/Player.controller") | get layers | get states | select name speed motion.name transitions.destinationState.name +unity.asset("Assets/Animations/Player.controller") | get layers | get states | where name == "Walk" | set speed = 1.5 +unity.asset("Assets/Animations/Player.controller") | get layers | get states | where name == "Idle" | get transitions | set hasExitTime = true, exitTime = 0.9, duration = 0.25 +unity.asset("Assets/Animations/Player.controller") | get layers | get states | where name == "Idle" | get transitions | call AddCondition("Grounded", "If") RemoveCondition(index), ClearConditions() +unity.asset("Assets/Animations/Player.controller") | get layers | get states | get transitions | select destinationState.name hasExitTime conditions +unity.asset("Assets/Animations/Player.controller") | get parameters | select name type defaultFloat defaultBool +unity.asset("Assets/Animations/Player.controller") | get parameters | where name == "Speed" | set defaultFloat = 0.5 +unity.asset("Assets/Animations/Player.controller") | call AddLayer("Upper Body") returns the layer index +unity.asset("Assets/Animations/Player.controller") | set layers[1].defaultWeight = 0.5, layers[1].blendingMode = "Additive" +unity.asset("Assets/Animations/Player.controller") | call AddState("Wave", null, "Upper Body") +unity.asset("Assets/Animations/Player.controller") | call RemoveTransition("Walk", "Idle") from "AnyState" / to "Exit" for those transitions +unity.asset("Assets/Animations/Player.controller") | call RemoveState("Wave", "Upper Body") +unity.asset("Assets/Animations/Player.controller") | call RemoveLayer("Upper Body") +unity.asset("Assets/Animations/Player.controller") | call RemoveTransition("AnyState", "Idle") +unity.asset("Assets/Animations/Player.controller") | call RemoveParameter("Jump") conditions using it are removed too +``` + +Animator components (`animation | get animators` = every Animator in the loaded scenes): + +``` +editor | call CreateGameObject("Player") +objects | where name == "Player" | call AddComponent("Animator") +animation | get animators | set runtimeAnimatorController = unity.asset("Assets/Animations/Player.controller"), applyRootMotion = false +animation | get animators | select gameObject.name runtimeAnimatorController.name isHuman cullingMode +``` + +Parameter names and types are read-only (conditions refer to them): rename by RemoveParameter + AddParameter. New transitions +have no exit time and no blend duration; set them on the transition. Only the Animator's configuration members are readable (its +playback state is not meaningful in Edit Mode); in Play Mode `call SetParameter("Speed", 2)` / `call Play("Walk")` drive it. +Other components' AnimationCurve fields take keyframe lists too: `set curve = [[0, 0], [1, 1]]`. + +## Cinemachine + +Cinemachine 3: a `CinemachineCamera` (virtual camera) on its own GameObject; the `CinemachineBrain` on the Unity Camera +shows the live one (highest `Priority.Value`) and blends between them. A camera's pipeline is a Body component +(position: Follow, OrbitalFollow, ThirdPersonFollow, PositionComposer …), an Aim component (rotation: RotationComposer, +HardLookAt, PanTilt …), an optional noise component and extensions, all on the camera's GameObject. Follow / LookAt +targets take a GameObject name or ref. Writes and calls are undoable. + +``` +editor | call CreateGameObject("Player", null, "Capsule") (a target for the examples) +cinemachine | call CreateCamera("FollowCam", "Player", null, "(0, 3, -6)", "(20, 0, 0)", 10) name, follow?, lookAt?, position?, eulerAngles?, priority? (adds a CinemachineBrain to the main Camera) +cinemachine | call CreateCamera("Overview") +cinemachine | get cameras | select name Priority.Value IsLive Follow.name LookAt.name body.$type aim.$type noise.$type +cinemachine | get cameras | where name == "FollowCam" | call SetBody("Follow") Body by name; cinemachine | get bodyTypes lists them ("None" removes) +cinemachine | get cameras | where name == "FollowCam" | call SetAim("RotationComposer") Aim by name; cinemachine | get aimTypes +cinemachine | get cameras | where name == "FollowCam" | set body.FollowOffset = "(0, 2, -8)", body.TrackerSettings.PositionDamping = "(1, 1, 1)" +cinemachine | get cameras | where name == "FollowCam" | set aim.Composition.ScreenPosition = "(0.1, 0)", aim.Damping = "(0.5, 0.5)" +cinemachine | get cameras | where name == "FollowCam" | set Lens.FieldOfView = 50, Lens.NearClipPlane = 0.3, Lens.Dutch = 5 +cinemachine | get cameras | where name == "Overview" | set Lens.ModeOverride = "Orthographic", Lens.OrthographicSize = 12 +cinemachine | get cameras | where name == "FollowCam" | set Priority.Value = 20 +cinemachine | get cameras | where name == "Overview" | call SetTargets("Player") follow (and look at) Player; SetTargets(follow, lookAt) for both, null clears +cinemachine | get cameras | where name == "Overview" | set LookAt = null +cinemachine | get cameras | where name == "FollowCam" | call SetNoise("Handheld_normal_mild", 1.5, 1) profile, amplitudeGain?, frequencyGain?; cinemachine | get noiseProfiles | select name +cinemachine | get cameras | where name == "FollowCam" | set noise.AmplitudeGain = 0.5 +cinemachine | get cameras | where name == "FollowCam" | call SetBody("OrbitalFollow") replace the Body +cinemachine | get cameras | where name == "FollowCam" | set body.Radius = 6, body.OrbitStyle = "Sphere" +objects | where name == "FollowCam" | call AddComponent("CinemachineDeoccluder") extensions are components (cinemachine | get extensionTypes) +cinemachine | get cameras | select name extensions.$type +cinemachine | call EnsureBrain() brain on the main Camera (EnsureBrain("Camera name") for another) +cinemachine | get brains | set DefaultBlend.Style = "EaseInOut", DefaultBlend.Time = 1.5 +cinemachine | get brains | select gameObject.name DefaultBlend.Style DefaultBlend.Time UpdateMethod activeCamera +cinemachine | get cameras | where name == "Overview" | call SetNoise("None") +cinemachine | get cameras | where name == "Overview" | call Destroy() remove the CinemachineCamera component (objects | … | call Destroy() removes the GameObject) +``` + +`body` / `aim` / `noise` are the pipeline components themselves, so their members are written directly +(`rql-schema "CinemachineFollow"` lists them). LensSettings is a struct written in place (`set Lens.FieldOfView = …`); +`Lens.ModeOverride` (None, Orthographic, Perspective, Physical) overrides the Unity Camera's projection. Blend styles: +Cut, EaseInOut, EaseIn, EaseOut, HardIn, HardOut, Linear, Custom. Brains update the live camera in Play Mode; `IsLive` +reports it. + +## Input System + +An InputActionAsset (`.inputactions` file) has `maps` → `actions` → `bindings` and `controlSchemes`; `actions` also lists +every action of every map. Every `set` and `call` is validated (control paths need a known device layout, interactions / +processors / composites must be registered, groups must be control schemes of the asset), written to the `.inputactions` +file and re-imported at once, and is undoable. Paths look like `"/space"`, `"/leftStick"`, +`"/leftButton"`; groups are scheme names joined by `;` (`"Keyboard&Mouse;Gamepad"`). + +``` +input | call CreateAsset("Assets/Input/Player.inputactions", "Player") path, map? (first action map); missing folders are created +input | get assets | select $ref name path +unity.asset("Assets/Input/Player.inputactions") | call AddControlScheme("Keyboard&Mouse", ["", ""]) name, requiredDevices?, optionalDevices?, bindingGroup? (default: name) +unity.asset("Assets/Input/Player.inputactions") | call AddControlScheme("Gamepad", [""]) +unity.asset("Assets/Input/Player.inputactions") | call AddMap("UI") +unity.asset("Assets/Input/Player.inputactions") | get maps | where name == "Player" | call AddAction("Jump") name, type? (Button, Value, PassThrough), expectedControlType?, binding? +unity.asset("Assets/Input/Player.inputactions") | get maps | where name == "Player" | call AddAction("Move", "Value", "Vector2") +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Jump" | call AddBinding("/space", "Keyboard&Mouse") path, groups?, interactions?, processors? +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Jump" | call AddBinding("/buttonSouth", "Gamepad", "hold(duration=0.4)") +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Move" | call AddComposite("2DVector", {up: "/w", down: "/s", left: "/a", right: "/d"}, "Keyboard&Mouse") composite, {part: path}, groups?, interactions?, processors? +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Move" | call AddBinding("/leftStick", "Gamepad", null, "stickDeadzone") +unity.asset("Assets/Input/Player.inputactions") | get maps | select name actionCount +unity.asset("Assets/Input/Player.inputactions") | get actions | select map name type expectedControlType interactions bindingCount +unity.asset("Assets/Input/Player.inputactions") | get actions | get bindings | select action index path name groups interactions processors isComposite isPartOfComposite +unity.asset("Assets/Input/Player.inputactions") | get controlSchemes | select name bindingGroup requiredDevices optionalDevices +unity.asset("Assets/Input/Player.inputactions") | get actions | get bindings | where path == "/buttonSouth" | set path = "/buttonEast", interactions = "tap" +unity.asset("Assets/Input/Player.inputactions") | get actions | get bindings | where isPartOfComposite and name == "up" | set path = "/upArrow" +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Jump" | set name = "Leap", type = "PassThrough", interactions = "press" +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Move" | set processors = "invertVector2", initialStateCheck = true +unity.asset("Assets/Input/Player.inputactions") | get controlSchemes | where name == "Keyboard&Mouse" | set requiredDevices = [""], optionalDevices = [""] +unity.asset("Assets/Input/Player.inputactions") | get controlSchemes | where name == "Gamepad" | set name = "Controller" also renames the group of its bindings +unity.asset("Assets/Input/Player.inputactions") | get maps | where name == "Player" | set name = "Gameplay" +unity.asset("Assets/Input/Player.inputactions") | get actions | get bindings | where groups == "Controller" | call Remove() a composite root removes its parts +unity.asset("Assets/Input/Player.inputactions") | get actions | where name == "Leap" | call Remove() +unity.asset("Assets/Input/Player.inputactions") | get controlSchemes | where name == "Controller" | call Remove() +unity.asset("Assets/Input/Player.inputactions") | get maps | where name == "UI" | call Remove() +input | select interactions processors registered names; input | get layouts lists device and control layouts +``` + +Assets referenced by a scene component work the same way: `objects | get components | where $ is PlayerInput | get actions | get maps`. +Bindings are addressed by id, so removing some bindings in one query does not shift the others. `call` needs rql-mutate. +Created assets are not removed by Undo; undoing an edit rewrites the file. + +## Navigation + +AI Navigation components are components: `objects | get components | where $ is NavMeshSurface` (also NavMeshModifier, +NavMeshModifierVolume, NavMeshLink, NavMeshAgent). Add them with AddComponent, then set members (all undoable): + +``` +objects | where name == "Ground" | call AddComponent("NavMeshSurface") +objects | get components | where $ is NavMeshSurface | set collectObjects = "Volume", size = "(20, 5, 20)", center = "(0, 1, 0)" +objects | get components | where $ is NavMeshSurface | set agentType = "Humanoid", defaultAreaName = "Walkable", layerMask = ["Default", "Water"] +objects | get components | where $ is NavMeshSurface | set overrideVoxelSize = true, voxelSize = 0.1 +objects | get components | where $ is NavMeshSurface | call Bake() build now (saved scene: NavMesh-.asset next to it) +objects | get components | where $ is NavMeshSurface | call Clear() remove the baked data +objects | get components | where $ is NavMeshSurface | select gameObject.name agentType navMeshData buildSettings.agentRadius +navigation | call BakeAll() every active surface (also ClearAll()) +``` + +Modifiers, volumes, links: + +``` +objects | where name == "Water" | call AddComponent("NavMeshModifier") +objects | get components | where $ is NavMeshModifier | set overrideArea = true, areaName = "Not Walkable" +objects | get components | where $ is NavMeshModifier | set ignoreFromBuild = true, applyToChildren = false, affectedAgents = ["All"] +objects | where name == "Mud" | call AddComponent("NavMeshModifierVolume") +objects | get components | where $ is NavMeshModifierVolume | set size = "(4, 2, 4)", center = "(0, 1, 0)", areaName = "Jump" +objects | where name == "Gap" | call AddComponent("NavMeshLink") +objects | get components | where $ is NavMeshLink | set startPoint = "(0, 0, -2)", endPoint = "(0, 1, 3)", width = 1, bidirectional = false, costModifier = 2, areaName = "Jump" +``` + +Agents (`SetDestination` / `Warp` / `ResetPath` act only on an agent on a baked NavMesh, i.e. in Play Mode; they return false otherwise): + +``` +objects | where name == "Enemy" | call AddComponent("NavMeshAgent") +objects | get components | where $ is NavMeshAgent | set speed = 5, acceleration = 12, angularSpeed = 240, stoppingDistance = 0.5 +objects | get components | where $ is NavMeshAgent | set agentType = "Humanoid", areaNames = ["Walkable", "Jump"] area mask; ["All"] = every area +objects | get components | where $ is NavMeshAgent | call SetDestination("(10, 0, 5)") +objects | get components | where $ is NavMeshAgent | select gameObject.name isOnNavMesh hasPath remainingDistance +``` + +Bake settings live on the agent type (shared by every surface baking for it; rebake afterwards); areas name the area indices: + +``` +navigation | get agentTypes | select agentTypeID name agentRadius agentHeight agentSlope agentClimb +navigation | get agentTypes | where name == "Humanoid" | set agentRadius = 0.4, agentHeight = 1.8, agentSlope = 40, agentClimb = 0.5 +navigation | get areas | where name != "" | select index name cost +navigation | get areas | where index == 3 | set name = "Water", cost = 4 +``` + +`agentType`, `areaName` / `defaultAreaName`, `areaNames` and `affectedAgents` are the name views of agentTypeID, area / +defaultArea, areaMask and the agent-type list; the numeric members stay writable. A LayerMask reads as its int mask and takes an +int (-1 = Everything), a layer name or a list of layer names. + +## Particle systems + +Particle systems are components: `objects | get components | where $ is ParticleSystem`. Module structs (`main`, +`emission`, `shape` …) are written through, even though they are get-only properties: + +``` +objects | get components | where $ is ParticleSystem | set main.startLifetime = 3, main.loop = false +objects | get components | where $ is ParticleSystem | set emission.rateOverTime = [5, 25] random between two +objects | get components | where $ is ParticleSystem | set main.startColor = "#ff8800" +objects | get components | where $ is ParticleSystem | set main.startColor = [["#ff0000", 0], ["#0000ff", 1]] gradient +``` + +`MinMaxCurve` takes a number or `[min, max]`; `MinMaxGradient` a color, `[color, color]` or gradient keys. +Playback in the Editor: `objects | get components | where $ is ParticleSystem | call Play()` (also Pause, Stop, Clear, +Simulate(seconds)). + +## ProBuilder + +ProBuilder meshes are components: `probuilder | get meshes` (= `objects | get components | where $ is ProBuilderMesh`). A mesh +reads as faceCount vertexCount edgeCount triangleCount, `bounds` (local) / `worldBounds`, `directions` (face indices per local +direction), `materials` (slots: index material faceCount) and `faces` (read-only views: index direction center normal +submeshIndex material vertices edges); the raw vertex arrays are not members. Edit with `call` (rql-mutate): faces are index lists +`[0, 1]`, edges vertex index pairs `[[0, 1], [1, 2]]`. `probuilder.facing($, "Up")`, `probuilder.edges($, faces?)`, +`probuilder.openEdges($)` and `probuilder.vertices($, start?, count?)` compute selections (also as call arguments). The receipt's +result column holds the created mesh's $ref: `ref("ProBuilderMesh#…") | call Extrude([0], 1)`. + +Create and inspect: + +``` +probuilder | call CreateShape("Cube", "Crate", "(2, 1, 2)", "(0, 0.5, 0)") type, name?, size?, position?, rotation?, parent? +probuilder | call CreateShape("Cube", "Box", null, "(3, 0.5, 0)") types: Cube Stair CurvedStair Prism Cylinder Plane Door Pipe Cone Sprite Arch Sphere Torus +probuilder | call CreateShape("Cylinder", "Block", "(1, 2, 1)", "(6, 1, 0)") +probuilder | call CreatePolyShape(["(0, 0)", "(4, 0)", "(4, 3)", "(0, 3)"], 0.5, "Floor", "(-6, 0, 0)") points (x, z), height, name?, position?, flipNormals?, parent? +probuilder | get meshes | select $ref gameObject.name faceCount vertexCount edgeCount triangleCount bounds.size +probuilder | get meshes | where gameObject.name == "Crate" | select directions materials worldBounds.center +probuilder | get meshes | where gameObject.name == "Crate" | get faces | select index direction center normal vertexCount submeshIndex material.name +probuilder | get meshes | where gameObject.name == "Crate" | get faces | where direction == "Up" | select index center edges +probuilder | get meshes | where gameObject.name == "Crate" | select up=(probuilder.facing($, "Up")) edges=(probuilder.edges($, [0])) v=(probuilder.vertices($, 0, 4)) +``` + +Faces (indices shift after DeleteFaces; Extrude appends the new side faces and returns their indices): + +``` +editor | call CreateMaterial("Assets/Materials/Grass.mat") +probuilder | get meshes | where gameObject.name == "Crate" | call SetFaceMaterial(probuilder.facing($, "Up"), "Assets/Materials/Grass.mat") faces, material (path, unity.asset(…) or ref); returns the submesh index +probuilder | get meshes | where gameObject.name == "Crate" | get materials | select index material.name faceCount +probuilder | get meshes | where gameObject.name == "Crate" | call Extrude(probuilder.facing($, "Up"), 0.5) faces, distance (negative = inward), method? FaceNormal | IndividualFaces | VertexNormal +probuilder | get meshes | where gameObject.name == "Crate" | call Extrude(probuilder.facing($, "Forward"), 0.25, "IndividualFaces") +probuilder | get meshes | where gameObject.name == "Crate" | call FlipNormals([0]) faces? (every face when omitted) +probuilder | get meshes | where gameObject.name == "Box" | call DeleteFaces(probuilder.facing($, "Up")) at least one face must remain +probuilder | get meshes | where gameObject.name == "Box" | select open=(probuilder.openEdges($)) +probuilder | get meshes | where gameObject.name == "Box" | call Bridge(probuilder.openEdges($)[0], probuilder.openEdges($)[2]) two open edges [a, b], allowNonManifold?; returns the new face index +``` + +Edges, pivot, merge: + +``` +probuilder | get meshes | where gameObject.name == "Block" | call Bevel(probuilder.edges($, probuilder.facing($, "Down")), 0.1) edges, amount 0 … 1 (exclusive); returns the new face indices +probuilder | get meshes | where gameObject.name == "Block" | call SubdivideEdges(probuilder.edges($, [0]), 1) edges, subdivisions (1 = split in half); returns the vertices added +probuilder | get meshes | where gameObject.name == "Block" | call ConnectEdges(probuilder.edges($, [1])) at least 2 edges sharing faces; returns the new face indices +probuilder | get meshes | where gameObject.name == "Floor" | call SetPivot("Center") "Center" (bounds) or "FirstVertex"; the geometry stays in place +probuilder | get meshes | where gameObject.name == "Floor" | call SetPivotAt("(-6, 0, 0)") a world position +probuilder | call Merge([meshes.first(gameObject.name == "Crate"), meshes.first(gameObject.name == "Box")]) refs to meshes or GameObjects (first = target), deleteSources? (default true) +``` + +Directions are in the mesh's local space (normal within 45° of the axis; the rest is Other). Invalid indices, edges that are not +edges of the mesh, amounts outside the range and deleting every face fail without changing anything. Every call is undoable +(the mesh is rebuilt after Undo / Redo); a created material asset stays. + +## Splines + +A `SplineContainer` component holds splines; `splines[i]` has `closed`, `knotCount`, `length` (world units) and +`knots[j]` with writable `position` (container-local), `worldPosition`, `tangentIn`, `tangentOut`, `eulerAngles`, +`tangentMode` (AutoSmooth, Linear, Mirrored, Continuous, Broken) and `tension`. The `splines` source lists every +container (`splines | get containers`) and creates new ones. Writes and calls are undoable. `rql-schema "SplineContainer"` +lists the methods; `… | get splines | get knots | first 1 | describe` lists the knot members. + +``` +splines | call CreateContainer("Road") new GameObject + SplineContainer (one empty spline) +splines | call CreateContainer("Loop", "(0, 0, 5)", "(0, 90, 0)", true) name, position, eulerAngles, closed +splines | get containers | select gameObject.name n=(splines.count()) splines.knotCount +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call AddKnots(["(0, 0, 0)", "(5, 0, 2)", "(10, 0, 0)"]) append several knots to spline 0 +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call AddKnot("(15, 0, 3)") append one knot to spline 0 +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call AddSpline() returns the new spline index +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call AddKnot(1, "(0, 2, 0)") append to spline 1 +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call InsertKnot(1, "(2, 0, 1)") insert at knot index 1 (InsertKnot(spline, knot, position) for others) +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call RemoveKnot(0) RemoveKnot(spline, knot) for other splines +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call Evaluate(0.5) point at t: position (world) localPosition tangent up +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | get splines | get knots | select index position tangentMode +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | set splines[0].knots[2].position = "(10, 1, 0)" move a knot (container-local) +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | set splines[0].knots[0].tangentMode = "Linear" +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | get splines | get knots | set tangentMode = "AutoSmooth" every knot of every spline +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | set splines[0].closed = true +objects | get components | where $ is SplineContainer | where gameObject.name == "Road" | call RemoveSpline(1) +``` + +Knot methods take an optional leading spline index (`AddKnot(position)` = spline 0, `AddKnot(1, position)` = spline 1); +new knots are AutoSmooth. Writing a tangent of an AutoSmooth / Linear knot switches it to Broken so the value sticks. +Evaluate needs rql-mutate (it is a call); its result column holds the sample. Unity.Mathematics `float2` / `float3` / +`float4` / `quaternion` values print and are written like vectors: `"(1, 2, 3)"`; a quaternion also accepts euler +degrees `"(0, 90, 0)"`. + +## Terrain + +Terrains are components: `objects | get components | where $ is Terrain`. Settings are members of the Terrain, the data +(size, resolutions, layers, prototypes) lives in its `terrainData`. Heights are normalized 0 … 1 (fraction of +`terrainData.size.y`); heightmap / alphamap cells are `x` along world X and `y` along world Z. + +``` +objects | get components | where $ is Terrain | select $ref gameObject.name terrainData.size terrainData.heightmapResolution terrainData.terrainLayers.name +terrain | call Create("Island", "Assets/Terrain/Island.asset", 257, "(500, 120, 500)", "(0, 0, 0)") name, dataPath, heightmapResolution, size, position +objects | get components | where $ is Terrain | set terrainData.size = "(800, 200, 800)" +objects | get components | where $ is Terrain | set terrainData.heightmapResolution = 513, terrainData.alphamapResolution = 512 +objects | get components | where $ is Terrain | set heightmapPixelError = 2, drawTreesAndFoliage = false, materialTemplate = unity.asset("Assets/Mats/Terrain.mat") +``` + +Heights (`call` needs rql-mutate; sampling functions work in rql-query): + +``` +objects | get components | where $ is Terrain | call SetHeights(0.25) flatten everything to 25 % +objects | get components | where $ is Terrain | call SetHeights(0.6, 100, 100, 32, 32) height, x, y, w, h (w / h 0 = to the edge) +objects | get components | where $ is Terrain | call SetHeightGrid([[0.1, 0.2], [0.3, 0.4]], 10, 20) explicit rows (row = y) starting at cell (10, 20) +objects | get components | where $ is Terrain | select h=(terrain.heights($, 10, 20, 2, 2)) normalized rows, at most 20 × 20 +objects | get components | where $ is Terrain | select s=(terrain.heightStats($)) {min, max, average, cells}; region: ($, x, y, w, h) +objects | get components | where $ is Terrain | select y=(terrain.heightAt($, 250, 250)) world surface Y at world X / Z +``` + +Layers (textures), trees and details: + +``` +terrain | call CreateLayer("Assets/Terrain/Grass.terrainlayer", unity.asset("Assets/Textures/grass.png"), "(10, 10)") +objects | get components | where $ is Terrain | call AddLayer(unity.asset("Assets/Terrain/Grass.terrainlayer")) returns the layer index +objects | get components | where $ is Terrain | call PaintLayer(1, 1.0, 0, 0, 64, 64) layer, strength, x, y, w, h on the alphamap +objects | get components | where $ is Terrain | call RemoveLayer(0) +objects | get components | where $ is Terrain | set terrainData.terrainLayers[0].tileSize = "(20, 20)" +objects | get components | where $ is Terrain | call AddTreePrototype(unity.asset("Assets/Trees/Oak.prefab")) returns the prototype index +objects | get components | where $ is Terrain | call PlaceTrees(0, 200, 0.1, 0.1, 0.5, 0.5) prototype, count, minX, minZ, maxX, maxZ (normalized), heightScale?, widthScale? +objects | get components | where $ is Terrain | call PlaceTreesAt(["(0.5, 0.5)", "(0.25, 0.75)"], 0) normalized (x, z) positions, prototype +objects | get components | where $ is Terrain | call ClearTrees() +objects | get components | where $ is Terrain | select terrainData.treeInstanceCount terrainData.treePrototypes.prefab +objects | get components | where $ is Terrain | set terrainData.treePrototypes[0] = {prefab: unity.asset("Assets/Trees/Oak.prefab"), bendFactor: 0.3} prototypes are replaced whole +objects | get components | where $ is Terrain | set terrainData.treeInstances[0].heightScale = 2 +objects | get components | where $ is Terrain | call AddDetailPrototype(unity.asset("Assets/Textures/grass_blade.png")) texture = grass billboard, prefab = detail mesh +objects | get components | where $ is Terrain | get terrainData | call SetDetailResolution(1024, 32) +objects | get components | where $ is Terrain | where gameObject.name == "Center" | call SetNeighbors(ref("Terrain#…"), null, ref("Terrain#…"), null) left, top, right, bottom +``` + +`terrainData.treeInstances` is read only when named (`select terrainData.treeInstances[0]`). Tree / detail prototype +members are read-only (TerrainData returns copies): replace the element with an object literal. Invalid resolutions, regions +outside the map and out-of-range indices fail without changing anything. Heights, paint, layers and trees are undoable; +created assets (TerrainData, TerrainLayer) are not removed by Undo. Neighbors are not saved with the scene (Unity +reconnects terrains with `allowAutoConnect` and the same `groupingID`). + +## Tilemap + +Tilemaps are components on children of a `Grid`: `objects | get components | where $ is Tilemap`. Cells are `"(x, y, z)"` (z = 0 for 2D); +tile arguments take an asset path (`"Assets/Tiles/Grass.asset"`), a ref or `unity.asset(…)`; sprite arguments also take +the texture (`unity.asset("Assets/Art/grass.png")`), its path or `"Assets/Art/sheet.png#grass_3"` (one sprite of a sheet). + +``` +objects | get components | where $ is Tilemap | select $ref gameObject.name tileCount usedTiles cellBounds orientation +tilemap | call CreateTilemap("Ground") name, parent?, cellSize?, gridName? (new Grid + Tilemap) +tilemap | call CreateTilemap("Walls", ref("GameObject#…")) parent with a Grid: another layer of that Grid +tilemap | call CreateTile("Assets/Tiles/Grass.asset", "Assets/Art/grass.png", "#FFFFFF", "Grid") path, sprite?, color?, colliderType? +tilemap | call CreateRuleTile("Assets/Tiles/Ground.asset", "Assets/Art/ground.png#ground_4") path, defaultSprite?, colliderType? +``` + +Painting (`call` needs rql-mutate; undoable): + +``` +objects | get components | where $ is Tilemap | where gameObject.name == "Ground" | call SetTile("(0, 0, 0)", "Assets/Tiles/Grass.asset") +objects | get components | where $ is Tilemap | call SetTile("(3, 1, 0)", null) erase one cell +objects | get components | where $ is Tilemap | call SetTiles(["(0, 0, 0)", "(1, 0, 0)", "(2, 0, 0)"], "Assets/Tiles/Grass.asset") +objects | get components | where $ is Tilemap | call BoxFill("Assets/Tiles/Grass.asset", -5, -3, 5, 3) tile, minX, minY, maxX, maxY, z? (corners inclusive) +objects | get components | where $ is Tilemap | call ClearBox(0, 0, 2, 2) returns how many tiles were removed +objects | get components | where $ is Tilemap | call FloodFill("(1, 1, 0)", "Assets/Tiles/Water.asset") +objects | get components | where $ is Tilemap | call ClearAllTiles() +objects | get components | where $ is Tilemap | call SetColor("(0, 0, 0)", "#FF8080") tint one painted cell +objects | get components | where $ is Tilemap | call SetTransform("(0, 0, 0)", 90, "(1, 1, 1)", true, false) rotation°, scale?, flipX?, flipY? +objects | get components | where $ is Tilemap | call SetColliderType("(0, 0, 0)", "None") None / Sprite / Grid +objects | get components | where $ is Tilemap | set orientation = "XZ", tileAnchor = "(0.5, 0.5, 0)", color = "(1, 1, 1, 0.5)" +objects | get components | where $ is Tilemap | call CompressBounds() shrink cellBounds to the painted cells +objects | get components | where $ is Grid | set cellSize = "(1, 0.5, 0)", cellLayout = "Isometric" +objects | get components | where $ is TilemapRenderer | set sortingOrder = 2, mode = "Individual" +``` + +Reading cells (functions work in rql-query): + +``` +objects | get components | where $ is Tilemap | select t=(tilemap.tileAt($, "(0, 0, 0)")) the tile asset or null +objects | get components | where $ is Tilemap | select c=(tilemap.cell($, "(0, 0, 0)")) {cell, tile, path, sprite, color, colliderType, flags, transform} +objects | get components | where $ is Tilemap | select rows=(tilemap.tiles($, 0, 0, 9, 9)) tile names, top row (maxY) first, at most 20 × 20 +objects | get components | where $ is Tilemap | select n=(tilemap.count($, "Grass")) occupied cells of a tile (name, path or asset); region: ($, tile, minX, minY, maxX, maxY) +objects | get components | where $ is Tilemap | select cells=(tilemap.cells($, "Assets/Tiles/Grass.asset")) first 20 cells holding that tile +objects | get components | where $ is Tilemap | select c=(tilemap.worldToCell($, "(2.5, 1.2, 0)")) w=(tilemap.cellToWorld($, "(2, 1, 0)")) +``` + +Tile assets are ordinary objects: `unity.assets("t:TileBase") | select $ref name`, +`unity.asset("Assets/Tiles/Grass.asset") | set sprite = "Assets/Art/grass2.png", colliderType = "Grid"`. RuleTile rules: + +``` +unity.asset("Assets/Tiles/Ground.asset") | call AddRule("Assets/Art/ground.png#ground_1", "NNN/T.T/TTT") sprite, pattern, colliderType? +unity.asset("Assets/Tiles/Ground.asset") | call ClearRules() +objects | get components | where $ is Tilemap | call RefreshAllTiles() repaint after editing rules +``` + +A pattern lists the 8 neighbors in rows top to bottom (center ignored): `T` = this tile, `N` = not this tile, `.` = any; +rules are checked in order and the first match wins (`"..."` = always). Methods on empty cells (SetColor, SetTransform, +SetColliderType), regions over 1 048 576 cells and bad paths fail without changing anything. `cellBounds.max` is exclusive. +Created assets are not removed by Undo. + +## Timeline + +A TimelineAsset (`.playable`) holds tracks; tracks hold clips and markers; a scene `PlayableDirector` plays it and binds +each track to a scene object. Times are seconds. Find timelines with `unity.assets("t:TimelineAsset")`. + +``` +unity.assets("t:TimelineAsset") | select $ref name duration frameRate tracks.name +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | select $ref name $type bindingType muted clips.count() markers.count() +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | recurse children | select $depth name $type groups and their sub-tracks +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get clips | select track.name displayName start duration end asset.name +timeline | call Create("Assets/Cutscenes/Intro.playable", 30) path, frameRate?, fixedDuration? (> 0 = FixedLength) +unity.asset("Assets/Cutscenes/Intro.playable") | set frameRate = 24, durationMode = "FixedLength", fixedDuration = 12 +``` + +Tracks (type: Animation, Activation, Audio, Signal, Control, Playable, Group or a TrackAsset type name): + +``` +unity.asset("Assets/Cutscenes/Intro.playable") | call AddTrack("Animation", "Hero") type, name?, group? — returns the track +unity.asset("Assets/Cutscenes/Intro.playable") | call AddTrack("Group", "Crowd") +unity.asset("Assets/Cutscenes/Intro.playable") | call AddTrack("Activation", "Door", "Crowd") nested in the GroupTrack named Crowd +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | where name == "Hero" | set muted = true, locked = false, name = "Hero Anim" +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | where name == "Door" | call Delete() with its clips, markers and sub-tracks +``` + +Clips (AnimationTrack: an AnimationClip, AudioTrack: an AudioClip, other tracks: a default clip with asset null): + +``` +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | where name == "Hero" | call AddClip(unity.asset("Assets/Anim/Walk.anim"), 2, 3, "Walk") asset?, start?, duration?, name? +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | where name == "Door" | call AddClip(null, 0, 1.5) +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get clips | where displayName == "Walk" | set start = start + 0.5 move (duration kept) +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get clips | where displayName == "Walk" | set duration = 4, clipIn = 0.25, timeScale = 1.5, easeInDuration = 0.5, easeOutDuration = 0.3 +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get clips | where displayName == "Walk" | set asset.removeStartOffset = false the clip's PlayableAsset +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get clips | where end > 10 | call Delete() +``` + +Markers and signals: + +``` +timeline | call CreateSignal("Assets/Cutscenes/Boom.signal") +unity.asset("Assets/Cutscenes/Intro.playable") | call AddMarker(3.5) SignalEmitter on the timeline marker track +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | where $type == "SignalTrack" | call AddMarker(1, "Signal") +unity.asset("Assets/Cutscenes/Intro.playable") | get markers | set asset = unity.asset("Assets/Cutscenes/Boom.signal"), time = 4 +unity.asset("Assets/Cutscenes/Intro.playable") | get tracks | get markers | where time > 8 | call Delete() +``` + +Director and bindings (a GameObject is narrowed to the component the track drives, e.g. its Animator): + +``` +objects | where name == "Cutscene" | call AddComponent("PlayableDirector") +objects | get components | where $ is PlayableDirector | where gameObject.name == "Cutscene" | set playableAsset = unity.asset("Assets/Cutscenes/Intro.playable"), playOnAwake = false +objects | get components | where $ is PlayableDirector | select gameObject.name playableAsset.name bindings +objects | get components | where $ is PlayableDirector | set bindings["Hero"] = ref("GameObject#…"), bindings["Door"] = null +``` + +Crossfades (blendInDuration / blendOutDuration, read-only) come from overlapping clips: move a clip's start into its neighbour. +Invalid values (negative times, eases longer than the clip, a time scale on clips that cannot change speed, a clip asset that does not fit the track, unknown track names) +fail without changing anything; Timeline does not clamp them silently here. Creating, deleting and editing tracks, clips, +markers and bindings is undoable; created asset files stay. rql-mutate saves the edited .playable. +Clips have no $ref: address them through their timeline (`… | get tracks | get clips | where …`). + +## Installed RQL modules + +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Modules.UnityCoreModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.ToolTypesModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Mathematics.MathematicsModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Animation.AnimationModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Cinemachine.CinemachineModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.InputSystem.InputSystemModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Navigation.NavigationModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Particles.ParticleSystemModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Physics3D.PhysicsModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.ProBuilder.ProBuilderModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Splines.SplinesModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Terrains.TerrainModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Tilemaps.TilemapModule` +- `com.IvanMurzak.Unity.MCP.Editor.Rql.Timelines.TimelineModule` diff --git a/.opencode/skills/unity-skill-create/SKILL.md b/.opencode/skills/unity-skill-create/SKILL.md new file mode 100644 index 0000000..41af2a2 --- /dev/null +++ b/.opencode/skills/unity-skill-create/SKILL.md @@ -0,0 +1,208 @@ +--- +name: unity-skill-create +description: Create a new skill (MCP tool) for the Unity Editor by writing a C# (.cs) file that Unity compiles into the project. After compilation the new tool becomes callable through MCP. The file must be a partial class decorated with [AiToolType], each tool method must be decorated with [AiTool], the class name should match the file name, all Unity API calls must run via com.IvanMurzak.ReflectorNet.Utils.MainThread.Instance.Run(), and the method should either return a structured data model (for parseable output) or void (for side-effect-only operations). See the body of this skill for a full sample and best-practice notes. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Skill (Tool) / Create + +## Full sample + +```csharp +#nullable enable +using System; +using System.ComponentModel; +using com.IvanMurzak.McpPlugin; +using com.IvanMurzak.ReflectorNet.Utils; +using com.IvanMurzak.Unity.MCP.Editor.Utils; +using AIGD; +using UnityEditor; +using UnityEngine; + +namespace com.IvanMurzak.Unity.MCP.Editor.API +{ + [AiToolType] + public partial class Tool_Sample + { + [AiTool("sample-get", Title = "Sample / Get")] + [Description("Finds a GameObject and returns its ref data.")] + public GameObjectRef Get + ( + [Description("Name of the GameObject to find.")] + string name + ) + { + return MainThread.Instance.Run(() => + { + var go = GameObject.Find(name) + ?? throw new ArgumentException($"GameObject '{name}' not found.", nameof(name)); + + return new GameObjectRef(go); + }); + } + + [AiTool("sample-rename", Title = "Sample / Rename")] + [Description("Renames a GameObject.")] + public void Rename + ( + [Description("Current name of the GameObject.")] + string name, + [Description("New name to assign.")] + string newName + ) + { + MainThread.Instance.Run(() => + { + var go = GameObject.Find(name) + ?? throw new ArgumentException($"GameObject '{name}' not found.", nameof(name)); + + go.name = newName; + EditorUtility.SetDirty(go); + AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport); + EditorUtils.RepaintAllEditorWindows(); + }); + } + } +} +``` + +## Suggestions + +### Refresh UI after visual changes +If the skill modifies anything visually in the Unity Editor (GameObjects, components, materials, etc.), call these two lines at the end of the tool method to apply changes to the UI immediately: +```csharp +AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport); +EditorUtils.RepaintAllEditorWindows(); +``` + +### Refresh AssetDatabase after asset or script changes +If the skill creates, modifies, or deletes any asset file or .cs script on disk outside of Unity API, call this inside a `MainThread.Instance.Run()` block to ensure Unity picks up the changes: +```csharp +MainThread.Instance.Run(() => +{ + AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport); +}); +``` + +### Use processing mechanic for long-running or domain-reload operations +Some operations take time to complete and may trigger a Unity domain reload (e.g. writing a .cs script, switching play mode, running tests, adding a package). In these cases the tool must NOT block and wait — instead it must: +1. Accept a `[RequestID] string? requestId` parameter. +2. Return `ResponseCallTool.Processing("...").SetRequestID(requestId)` immediately. +3. Schedule the actual work asynchronously via `MainThread.Instance.RunAsync(async () => { await Task.Yield(); ... })`. +4. When the operation finishes, send the final result by calling: +```csharp +_ = UnityMcpPluginEditor.NotifyToolRequestCompleted(new RequestToolCompletedData +{ + RequestId = requestId, + Result = ResponseCallTool.Success("Operation completed.").SetRequestID(requestId) +}); +``` +If the operation may survive a domain reload (e.g. a .cs file was saved and Unity will recompile), use `ScriptUtils.SchedulePostCompilationNotification(requestId, filePath, operationType)` instead of calling `NotifyToolRequestCompleted` directly — it persists the pending notification to `SessionState` and sends it automatically after the domain reload completes. For package install/removal or other non-compilation domain reloads use `PackageUtils.SchedulePostDomainReloadNotification(requestId, label, action, expectedResult)` the same way. + +### Return structured data with a typed response +Prefer returning a structured data model over a plain string so the AI can parse individual fields. Data models for MCP tools MUST be declared as TOP-LEVEL types in the `AIGD` namespace - never nested inside the tool class. Place each data model in its own `.cs` file (one type per file) and use `ResponseCallValueTool` as the return type. The flat `AIGD` namespace keeps the auto-generated JSON Schema `$defs` keys short and intuitive for AI agents. +```csharp +// Tool file (Tool/MyTool.cs) - references the data model from AIGD: +using AIGD; + +namespace com.IvanMurzak.Unity.MCP.Editor.API +{ + [AiToolType] + public partial class Tool_Sample + { + public ResponseCallValueTool MyTool(...) + { + return ResponseCallValueTool.Success(new MyResult + { + Name = go.name, + InstanceID = go.GetInstanceID() + }).SetRequestID(requestId); + } + } +} + +// Data model (Tool/Data/MyResult.cs) - top-level, in AIGD namespace, NOT nested: +namespace AIGD +{ + public class MyResult + { + [Description("Name of the GameObject.")] + public string? Name { get; set; } + + [Description("Unity instance ID of the GameObject.")] + public int InstanceID { get; set; } + } +} +``` +For simpler cases that do not need async/processing, you may return the model directly (without `ResponseCallValueTool`) and Unity-MCP will wrap it automatically. The data model itself MUST still live as a top-level type in the `AIGD` namespace. + +### Validate inputs early and throw clearly +Always validate required parameters at the top of the method before any Unity API calls. Throw `ArgumentException` or `InvalidOperationException` with descriptive messages so the AI knows exactly what went wrong and can self-correct: +```csharp +if (string.IsNullOrEmpty(name)) + throw new ArgumentException("Name cannot be null or empty.", nameof(name)); +``` + +### Always use MainThread for Unity API calls +All Unity API calls (including `GameObject.Find`, `AssetDatabase`, `EditorUtility`, etc.) MUST run on the main thread. Wrap them in `MainThread.Instance.Run(() => { ... })` for synchronous operations, or `MainThread.Instance.RunAsync(async () => { ... })` when you need to await inside. + +## How to Call + +```bash +unity-mcp-cli run-system-tool unity-skill-create --input '{ + "path": "string_value", + "code": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-system-tool unity-skill-create --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-system-tool unity-skill-create --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 | +|------|------|----------|-------------| +| `path` | `string` | Yes | Path for the C# (.cs) file to be created. Sample: "Assets/Skills/MySkill.cs". +CRITICAL — Assembly Definition placement: If the project uses Assembly Definition files (.asmdef), you MUST place the script inside a folder that belongs to an assembly definition which already references all required dependencies (e.g. com.IvanMurzak.McpPlugin, UnityEditor, UnityEngine). Placing the file in the wrong assembly will cause compile errors due to missing type references. Before choosing a path, inspect existing .asmdef files with the rql-query tool (e.g. unity.assets("t:AssemblyDefinitionAsset")) to identify the correct assembly folder. | +| `code` | `string` | Yes | C# code for the skill tool. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "required": [ + "path", + "code" + ] +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/unity-skill-generate/SKILL.md b/.opencode/skills/unity-skill-generate/SKILL.md new file mode 100644 index 0000000..ebba6c9 --- /dev/null +++ b/.opencode/skills/unity-skill-generate/SKILL.md @@ -0,0 +1,68 @@ +--- +name: unity-skill-generate +description: "Regenerate every `SKILL.md` from the project's currently-registered MCP tools into the configured skills folder (or a project-relative override path). Writes the YAML `description:` from `[AiSkillDescription]` and the body from `[AiSkillBody]`." +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Skill (Tool) / Generate All + +Generate all skills from the existed Tools in the Unity Project. + +## Inputs + +- `path` (optional) — project-relative skills folder (e.g. `.claude/skills`). Absolute paths and `..` traversal segments are rejected. When null/empty, the editor's configured `SkillsRootFolderAbsolutePath` is used. + +## Behavior + +Creates the destination folder if missing, then invokes `McpPluginInstance.GenerateSkillFiles(...)` to emit a `SKILL.md` per registered MCP tool. The plugin's `SkillsPath` is temporarily swapped to the target folder and restored in `finally` so the on-disk configuration is unchanged after the call returns. + +## How to Call + +```bash +unity-mcp-cli run-system-tool unity-skill-generate --input '{ + "path": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-system-tool unity-skill-generate --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-system-tool unity-skill-generate --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 | +|------|------|----------|-------------| +| `path` | `string` | No | Path to the skills folder. If null or empty, the default path will be used. | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "path": { + "type": "string" + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/.opencode/skills/unity-tool-list/SKILL.md b/.opencode/skills/unity-tool-list/SKILL.md new file mode 100644 index 0000000..836f163 --- /dev/null +++ b/.opencode/skills/unity-tool-list/SKILL.md @@ -0,0 +1,85 @@ +--- +name: unity-tool-list +description: List all Unity-MCP tools registered in the connected Unity Editor instance. Optional regex filter matches against tool name, description, and argument names/descriptions. Use the `includeDescription` / `includeInputs` toggles to control the response size. +metadata: + generated-by: mcp-plugin-dotnet +--- + +# Tool / List + +List all Unity-MCP tools registered in the connected Unity Editor instance. Optionally filter by regex across tool names, descriptions, and arguments. + +## Inputs + +- `regexSearch` (optional) — case-insensitive regex with a 200ms execution-timeout guard. Invalid regex throws an `ArgumentException`. Matches name → description → input names → input descriptions. +- `includeDescription` (default `false`) — populate each tool's `Description` field. +- `includeInputs` (default `None`) — one of `None`, `Inputs` (names only), `InputsWithDescription` (names + descriptions). + +## Behavior + +Iterates `UnityMcpPluginEditor.Instance.Tools.GetAllTools()`, evaluates the filter (if any), and projects each surviving tool into a `ToolInfoData` honoring the verbosity toggles. + +## How to Call + +```bash +unity-mcp-cli run-tool unity-tool-list --input '{ + "regexSearch": "string_value", + "includeDescription": false, + "includeInputs": "string_value" +}' +``` + +> For complex input (multi-line strings, code), save the JSON to a file and use: +> ```bash +> unity-mcp-cli run-tool unity-tool-list --input-file args.json +> ``` +> +> Or pipe via stdin (recommended): +> ```bash +> unity-mcp-cli run-tool unity-tool-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 | +|------|------|----------|-------------| +| `regexSearch` | `string` | No | Regex pattern to filter tools. Matches against tool name, description, and argument names and descriptions. | +| `includeDescription` | `boolean` | No | Include tool descriptions in the result. Default: false | +| `includeInputs` | `string` | No | Include input arguments in the result. Default: None | + +### Input JSON Schema + +```json +{ + "type": "object", + "properties": { + "regexSearch": { + "type": "string" + }, + "includeDescription": { + "type": "boolean" + }, + "includeInputs": { + "type": "string", + "enum": [ + "None", + "Inputs", + "InputsWithDescription" + ] + } + } +} +``` + +## Output + +This tool does not return structured output. + diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Floor_BaseMap.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Floor_BaseMap.mat index 9b1b85c..7f5f000 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Floor_BaseMap.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Floor_BaseMap.mat @@ -21,20 +21,19 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Floor_BaseMap - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _METALLICSPECGLOSSMAP - - _NORMALMAP + m_ValidKeywords: [] m_InvalidKeywords: - _METALLICGLOSSMAP + - _METALLICSPECGLOSSMAP + - _NORMALMAP m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -42,7 +41,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: d2d753fdabd60e240b6f9a1f4f664682, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -107,22 +106,43 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 1 - _Glossiness: 0 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 - _Mode: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -132,13 +152,21 @@ Material: - _SrcBlendAlpha: 1 - _Surface: 0 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap 1.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap 1.mat index df98b0e..a4ed718 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap 1.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap 1.mat @@ -8,7 +8,7 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Glass_BaseMap 1 - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 m_ValidKeywords: [] @@ -17,8 +17,7 @@ Material: m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -91,21 +90,42 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 0 - _Glossiness: 0 - _GlossyReflections: 0 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.005 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -114,14 +134,22 @@ Material: - _SrcBlend: 1 - _SrcBlendAlpha: 1 - _Surface: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 --- !u!114 &7851495516735936659 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap.mat index 7b5182a..160f562 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Glass_BaseMap.mat @@ -8,18 +8,17 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Glass_BaseMap - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: + m_ValidKeywords: [] + m_InvalidKeywords: - _NORMALMAP - m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -27,7 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: 2d6ad0ad372d9d340bef9b458885d042, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -92,22 +91,43 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 1 - _Glossiness: 0.95 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0.26 - _Mode: 3 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -117,14 +137,22 @@ Material: - _SrcBlendAlpha: 1 - _Surface: 0 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 --- !u!114 &3791815775530925035 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Other_01_BaseMap.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Other_01_BaseMap.mat index 5ba68a0..2c19ee5 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Other_01_BaseMap.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Other_01_BaseMap.mat @@ -21,20 +21,19 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Other_01_BaseMap - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _METALLICSPECGLOSSMAP - - _NORMALMAP + m_ValidKeywords: [] m_InvalidKeywords: - _METALLICGLOSSMAP + - _METALLICSPECGLOSSMAP + - _NORMALMAP m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -42,7 +41,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: 7caa9768d618d674893979c47d8b7233, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -107,22 +106,43 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 1 - _Glossiness: 0 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 - _Mode: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -132,13 +152,21 @@ Material: - _SrcBlendAlpha: 1 - _Surface: 0 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Others_BaseMap.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Others_BaseMap.mat index 02d4010..c0b9a95 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Others_BaseMap.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Others_BaseMap.mat @@ -8,20 +8,19 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Others_BaseMap - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _METALLICSPECGLOSSMAP - - _NORMALMAP + m_ValidKeywords: [] m_InvalidKeywords: - _METALLICGLOSSMAP + - _METALLICSPECGLOSSMAP + - _NORMALMAP m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -29,7 +28,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: 3575abca2e482f2408c0769051268edf, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -94,22 +93,43 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 0.98 - _Glossiness: 0 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 - _Mode: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -119,14 +139,22 @@ Material: - _SrcBlendAlpha: 1 - _Surface: 0 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 --- !u!114 &7947503480301210442 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Wood_BaseMap.mat b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Wood_BaseMap.mat index 9a6a31d..24227e8 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Wood_BaseMap.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/Laboratory03_Wood_BaseMap.mat @@ -8,19 +8,18 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Laboratory03_Wood_BaseMap - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: + m_ValidKeywords: [] + m_InvalidKeywords: - _METALLICSPECGLOSSMAP - _NORMALMAP - m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 - stringTagMap: - RenderType: Opaque + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -28,7 +27,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BaseMap: - m_Texture: {fileID: 0} + m_Texture: {fileID: 2800000, guid: 6758392e8dff9da4bb9512f293122cc4, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _BumpMap: @@ -93,22 +92,43 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cull: 2 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _DstBlendAlpha: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 - _EnvironmentReflections: 1 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 1 - _Glossiness: 0 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 - _Mode: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _ScreenSpaceReflections: 1 - _ScreenSpaceReflectionsContributeTransparent: 1 - _Smoothness: 0.5 @@ -118,14 +138,22 @@ Material: - _SrcBlendAlpha: 1 - _Surface: 0 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _WorkflowMode: 1 - _XRMotionVectorsPass: 1 - _ZWrite: 1 m_Colors: - - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 --- !u!114 &4660888135601631805 diff --git a/Assets/3D Laboratory Environment with Appratus/Materials/lambert1.mat b/Assets/3D Laboratory Environment with Appratus/Materials/lambert1.mat index e369e96..e186c67 100644 --- a/Assets/3D Laboratory Environment with Appratus/Materials/lambert1.mat +++ b/Assets/3D Laboratory Environment with Appratus/Materials/lambert1.mat @@ -2,23 +2,31 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: lambert1 - m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: + m_Shader: {fileID: 4800000, guid: cc58e5b86cd79a04789774a9a4b0af75, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} - _BumpMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} @@ -55,24 +63,57 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + m_Ints: [] m_Floats: - _BumpScale: 1 + - _CloudBandWidth: 3.2 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 + - _EchoOpacity1: 0.5927114 + - _EchoOpacity2: 0 + - _EchoOpacity3: 0 + - _EchoRadius1: 5.386 + - _EchoRadius2: 0 + - _EchoRadius3: 0 + - _FresnelPower: 2.5 + - _FresnelStrength: 0.4 - _GlossMapScale: 1 - _Glossiness: 0 - _GlossyReflections: 1 + - _LeadingEdgeSoftness: 1.2 + - _LineDensity: 3 + - _LineThickness: 0.05 - _Metallic: 0 - _Mode: 0 + - _NoiseDistortion: 1.3 + - _NoiseScale: 0.35 + - _NoiseSpeed: 0.2 - _OcclusionStrength: 1 - _Parallax: 0.02 + - _QueueControl: 0 + - _QueueOffset: 0 + - _RingWidth: 0.08 + - _RippleFrequency: 1.5 + - _RippleStrength: 0.25 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 + - _WaveRadius: 0 + - _WaveTintWeight: 0.45 - _ZWrite: 1 m_Colors: + - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _Color: {r: 0, g: 0, b: 0, a: 1} + - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} + - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/EchoCloudMat.mat b/Assets/EchoCloudMat.mat index c1c30c4..dd1443e 100644 --- a/Assets/EchoCloudMat.mat +++ b/Assets/EchoCloudMat.mat @@ -41,6 +41,10 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} - unity_Lightmaps: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} @@ -56,10 +60,12 @@ Material: m_Ints: [] m_Floats: - _CloudBandWidth: 3.2 - - _EchoOpacity1: 0 + - _ColorRevealIntensity: 1.6 + - _ColorRevealSharpness: 1 + - _EchoOpacity1: 0.5927114 - _EchoOpacity2: 0 - _EchoOpacity3: 0 - - _EchoRadius1: 0 + - _EchoRadius1: 5.386 - _EchoRadius2: 0 - _EchoRadius3: 0 - _FresnelPower: 2.5 @@ -76,13 +82,14 @@ Material: - _RippleFrequency: 1.5 - _RippleStrength: 0.25 - _WaveRadius: 0 + - _WaveTintWeight: 0.45 m_Colors: - _BaseColor: {r: 0.015, g: 0.015, b: 0.02, a: 1} - _EchoColor: {r: 4, g: 3.026, b: 1.049, a: 1} - _EchoCoreColor: {r: 7.5, g: 5.5, b: 2.2, a: 1} - - _EchoPosition1: {r: 2.9648588, g: 1.0799999, b: -29.737446, a: 0} - - _EchoPosition2: {r: 3.705747, g: 1.0799999, b: -28.43126, a: 0} - - _EchoPosition3: {r: 7.0987725, g: 1.0799999, b: -9.685643, a: 0} + - _EchoPosition1: {r: -43.056625, g: -0.029093798, b: 23.00288, a: 1} + - _EchoPosition2: {r: -40.5, g: -0.027898155, b: -6, a: 1} + - _EchoPosition3: {r: -35.5, g: -0.027898155, b: -14, a: 1} - _WaveCenter: {r: 0, g: 0, b: 0, a: 0} m_BuildTextureStacks: [] m_AllowLocking: 1 diff --git a/Assets/EchoCloudShader.shader b/Assets/EchoCloudShader.shader index 0497776..a7ad5ae 100644 --- a/Assets/EchoCloudShader.shader +++ b/Assets/EchoCloudShader.shader @@ -4,7 +4,8 @@ Shader "Custom/EchoCloudShader" { [Header(Base Appearance)] _BaseColor("Base Ambient Color", Color) = (0.015, 0.015, 0.02, 1.0) - _BaseMap("Base Map (Optional)", 2D) = "white" {} + [MainTexture] _BaseMap("Base Map (Optional)", 2D) = "white" {} + [HideInInspector] _MainTex("MainTex", 2D) = "white" {} [Header(Echo Cloud Visuals)] [HDR] _EchoColor("Echo Mist Color", Color) = (4.0, 3.026, 1.049, 1.0) @@ -23,6 +24,11 @@ Shader "Custom/EchoCloudShader" _FresnelPower("Edge Rim Power", Range(0.5, 5.0)) = 2.5 _FresnelStrength("Edge Rim Strength", Range(0.0, 2.0)) = 0.4 + [Header(Momentary Color Reveal on Wave)] + _ColorRevealIntensity("Color Reveal Brightness", Range(0.0, 4.0)) = 1.6 + _ColorRevealSharpness("Color Reveal Sharpness", Range(0.5, 4.0)) = 1.0 + _WaveTintWeight("Yellow Wave Tint Blend", Range(0.0, 1.0)) = 0.45 + [Header(Wave Inputs from Script)] _EchoPosition1("Echo Position 1", Vector) = (0, 0, 0, 0) _EchoPosition2("Echo Position 2", Vector) = (0, 0, 0, 0) @@ -103,6 +109,9 @@ Shader "Custom/EchoCloudShader" float _RippleStrength; float _FresnelPower; float _FresnelStrength; + float _ColorRevealIntensity; + float _ColorRevealSharpness; + float _WaveTintWeight; float4 _EchoPosition1; float4 _EchoPosition2; @@ -177,21 +186,23 @@ Shader "Custom/EchoCloudShader" // Organic cloud boundary distortion via 3D noise float distortedDist = rawDist + (noiseVal - 0.5) * _NoiseDistortion; + float distFromWave = distortedDist - waveRadius; - // Soft leading edge (smoothly fades into darkness ahead) - float leadingEdge = smoothstep(waveRadius + 0.2, waveRadius - _LeadingEdgeSoftness, distortedDist); + // Ahead of wavefront (distFromWave > 0): smooth drop-off into darkness + float aheadFade = 1.0 - saturate(distFromWave / max(0.01, _LeadingEdgeSoftness)); - // Soft trailing cloud body (billowy tail behind the wavefront) - float trailingEdge = smoothstep(waveRadius - _CloudBandWidth, waveRadius - 0.2, distortedDist); + // Behind wavefront (distFromWave < 0): smooth cloud tail + float behindFade = 1.0 - saturate(-distFromWave / max(0.1, _CloudBandWidth)); - // Combined cloud puff shape - float cloudDensity = leadingEdge * trailingEdge; + // Pulse profile peaking right at the wave crest + float cloudDensity = (distFromWave > 0.0) ? aheadFade : behindFade; + cloudDensity = smoothstep(0.0, 1.0, cloudDensity); // Subtle acoustic harmonic ripples inside the cloud float ripple = sin((rawDist - waveRadius) * _RippleFrequency) * 0.5 + 0.5; cloudDensity *= lerp(1.0, ripple, _RippleStrength); - // Subtle edge rim glow on surfaces facing away (gives 3D depth to rooms) + // Subtle edge rim glow on surfaces facing away float NdotV = saturate(dot(normalWS, viewDirWS)); float rim = pow(1.0 - NdotV, _FresnelPower) * _FresnelStrength; cloudDensity += cloudDensity * rim; @@ -220,8 +231,10 @@ Shader "Custom/EchoCloudShader" float3 normalWS = normalize(input.normalWS); float3 viewDirWS = normalize(GetCameraPositionWS() - worldPos); - // Base ambient appearance (deep dark atmospheric tone) + // Base diffuse texture from object half4 texColor = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv); + + // Deep dark ambient appearance in shadows half4 baseCol = texColor * _BaseColor; // 3D procedural noise @@ -234,11 +247,23 @@ Shader "Custom/EchoCloudShader" float totalWave = saturate(w1 + w2 + w3); - // Color gradient: soft outer mist (_EchoColor) to glowing core (_EchoCoreColor) - half4 mistColor = _EchoColor * totalWave; - half4 coreBloom = _EchoCoreColor * pow(totalWave, 2.2); + // --- МОМЕНТАЛЬНОЕ ПРОЯВЛЕНИЕ СОБСТВЕННОГО ЦВЕТА ПРЕДМЕТА ПРИ ПРОХОЖДЕНИИ ВОЛНЫ --- + // Мягкое затенение граней по нормали к камере для 3D-объема + half NdotV = saturate(dot(normalWS, viewDirWS)); + half3 surfaceLighting = half3(1, 1, 1) * (NdotV * 0.35 + 0.65); - half4 finalColor = baseCol + mistColor + coreBloom; + // Собственный цвет текстуры объекта, активируемый ровно в момент прохождения волны + half revealFactor = pow(totalWave, _ColorRevealSharpness); + half3 naturalRevealedColor = texColor.rgb * surfaceLighting * (_ColorRevealIntensity * revealFactor); + + // Желтая акустическая волна (гребень и ядро эхолокации) + half4 mistColor = _EchoColor * totalWave; + half4 coreBloom = _EchoCoreColor * pow(totalWave, 2.5) * 0.35; + half3 waveGlow = mistColor.rgb * _WaveTintWeight + coreBloom.rgb; + + // Итог: темная база + проявленный собственный цвет предмета + золотистый ореол волны + half3 finalRgb = baseCol.rgb + naturalRevealedColor + waveGlow; + half4 finalColor = half4(finalRgb, 1.0); // Apply scene fog finalColor.rgb = MixFog(finalColor.rgb, input.fogFactor); diff --git a/Assets/EchoCloudShader_Glass.shader b/Assets/EchoCloudShader_Glass.shader new file mode 100644 index 0000000..4872d31 --- /dev/null +++ b/Assets/EchoCloudShader_Glass.shader @@ -0,0 +1,269 @@ +Shader "Custom/EchoCloudShader_Glass" +{ + Properties + { + [Header(Base Appearance)] + _BaseColor("Base Ambient Color", Color) = (0.015, 0.015, 0.02, 1.0) + [MainTexture] _BaseMap("Base Map (Optional)", 2D) = "white" {} + [HideInInspector] _MainTex("MainTex", 2D) = "white" {} + + [Header(Echo Cloud Visuals)] + [HDR] _EchoColor("Echo Mist Color", Color) = (4.0, 3.026, 1.049, 1.0) + [HDR] _EchoCoreColor("Echo Core Bloom", Color) = (7.5, 5.5, 2.2, 1.0) + _CloudBandWidth("Cloud Thickness / Tail (m)", Range(0.5, 8.0)) = 3.2 + _LeadingEdgeSoftness("Leading Edge Softness", Range(0.1, 3.0)) = 1.2 + + [Header(Cloud Noise and Billows)] + _NoiseScale("Cloud Noise Scale", Range(0.05, 1.5)) = 0.35 + _NoiseDistortion("Cloud Billow Distortion", Range(0.0, 3.0)) = 1.3 + _NoiseSpeed("Cloud Drift Speed", Range(0.0, 2.0)) = 0.2 + + [Header(Acoustic Ripples and Edge Glow)] + _RippleFrequency("Acoustic Ripple Frequency", Range(0.1, 5.0)) = 1.5 + _RippleStrength("Acoustic Ripple Strength", Range(0.0, 1.0)) = 0.25 + _FresnelPower("Edge Rim Power", Range(0.5, 5.0)) = 2.5 + _FresnelStrength("Edge Rim Strength", Range(0.0, 2.0)) = 0.5 + + [Header(Momentary Color Reveal on Wave)] + _ColorRevealIntensity("Color Reveal Brightness", Range(0.0, 4.0)) = 1.6 + _ColorRevealSharpness("Color Reveal Sharpness", Range(0.5, 4.0)) = 1.0 + _WaveTintWeight("Yellow Wave Tint Blend", Range(0.0, 1.0)) = 0.45 + + [Header(Glass Transparency)] + _BaseAlpha("Base Ambient Alpha", Range(0.0, 1.0)) = 0.15 + _WaveAlpha("Wave Crest Alpha", Range(0.0, 1.0)) = 0.65 + + [Header(Wave Inputs from Script)] + _EchoPosition1("Echo Position 1", Vector) = (0, 0, 0, 0) + _EchoPosition2("Echo Position 2", Vector) = (0, 0, 0, 0) + _EchoPosition3("Echo Position 3", Vector) = (0, 0, 0, 0) + _EchoRadius1("Echo Radius 1", Float) = 0 + _EchoRadius2("Echo Radius 2", Float) = 0 + _EchoRadius3("Echo Radius 3", Float) = 0 + _EchoOpacity1("Echo Opacity 1", Float) = 0 + _EchoOpacity2("Echo Opacity 2", Float) = 0 + _EchoOpacity3("Echo Opacity 3", Float) = 0 + + // Legacy compatibility properties + [HideInInspector] _RingWidth("Ring Width", Float) = 0.08 + [HideInInspector] _LineDensity("Line Density", Float) = 3.0 + [HideInInspector] _LineThickness("Line Thickness", Float) = 0.05 + [HideInInspector] _WaveCenter("Wave Center", Vector) = (0, 0, 0, 0) + [HideInInspector] _WaveRadius("Wave Radius", Float) = 0 + [HideInInspector] _QueueOffset("Queue Offset", Float) = 0 + [HideInInspector] _QueueControl("Queue Control", Float) = 0 + } + + SubShader + { + Tags + { + "RenderType" = "Transparent" + "RenderPipeline" = "UniversalPipeline" + "Queue" = "Transparent" + } + LOD 200 + + Pass + { + Name "ForwardLit" + Tags { "LightMode" = "UniversalForward" } + + Blend SrcAlpha OneMinusSrcAlpha + ZWrite Off + ZTest LEqual + Cull Off + + HLSLPROGRAM + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_fog + + #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" + #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl" + + struct Attributes + { + float4 positionOS : POSITION; + float3 normalOS : NORMAL; + float2 uv : TEXCOORD0; + }; + + struct Varyings + { + float4 positionCS : SV_POSITION; + float3 positionWS : TEXCOORD0; + float3 normalWS : TEXCOORD1; + float2 uv : TEXCOORD2; + float fogFactor : TEXCOORD3; + }; + + TEXTURE2D(_BaseMap); + SAMPLER(sampler_BaseMap); + + CBUFFER_START(UnityPerMaterial) + half4 _BaseColor; + half4 _EchoColor; + half4 _EchoCoreColor; + float _CloudBandWidth; + float _LeadingEdgeSoftness; + float _NoiseScale; + float _NoiseDistortion; + float _NoiseSpeed; + float _RippleFrequency; + float _RippleStrength; + float _FresnelPower; + float _FresnelStrength; + float _ColorRevealIntensity; + float _ColorRevealSharpness; + float _WaveTintWeight; + float _BaseAlpha; + float _WaveAlpha; + + float4 _EchoPosition1; + float4 _EchoPosition2; + float4 _EchoPosition3; + float _EchoRadius1; + float _EchoRadius2; + float _EchoRadius3; + float _EchoOpacity1; + float _EchoOpacity2; + float _EchoOpacity3; + + float4 _BaseMap_ST; + float _RingWidth; + float _LineDensity; + float _LineThickness; + float4 _WaveCenter; + float _WaveRadius; + float _QueueOffset; + float _QueueControl; + CBUFFER_END + + // 3D Hash and Value Noise + float3 Hash33(float3 p) + { + p = float3(dot(p, float3(127.1, 311.7, 74.7)), + dot(p, float3(269.5, 183.3, 246.1)), + dot(p, float3(113.5, 271.9, 124.6))); + return frac(sin(p) * 43758.5453123); + } + + float ValueNoise3D(float3 p) + { + float3 i = floor(p); + float3 f = frac(p); + float3 u = f * f * (3.0 - 2.0 * f); + + float n000 = dot(Hash33(i + float3(0,0,0)) - 0.5, f - float3(0,0,0)); + float n100 = dot(Hash33(i + float3(1,0,0)) - 0.5, f - float3(1,0,0)); + float n010 = dot(Hash33(i + float3(0,1,0)) - 0.5, f - float3(0,1,0)); + float n110 = dot(Hash33(i + float3(1,1,0)) - 0.5, f - float3(1,1,0)); + float n001 = dot(Hash33(i + float3(0,0,1)) - 0.5, f - float3(0,0,1)); + float n101 = dot(Hash33(i + float3(1,0,1)) - 0.5, f - float3(1,0,1)); + float n011 = dot(Hash33(i + float3(0,1,1)) - 0.5, f - float3(0,1,1)); + float n111 = dot(Hash33(i + float3(1,1,1)) - 0.5, f - float3(1,1,1)); + + float nx00 = lerp(n000, n100, u.x); + float nx10 = lerp(n010, n110, u.x); + float nx01 = lerp(n001, n101, u.x); + float nx11 = lerp(n011, n111, u.x); + + float nxy0 = lerp(nx00, nx10, u.y); + float nxy1 = lerp(nx01, nx11, u.y); + + return lerp(nxy0, nxy1, u.z) + 0.5; + } + + float GetCloudNoise(float3 worldPos) + { + float3 p1 = worldPos * _NoiseScale + float3(0, _Time.y * _NoiseSpeed, 0); + float n1 = ValueNoise3D(p1); + float3 p2 = worldPos * (_NoiseScale * 2.2) - float3(0, _Time.y * (_NoiseSpeed * 1.4), 0); + float n2 = ValueNoise3D(p2); + return n1 * 0.65 + n2 * 0.35; + } + + float CalculateSingleWave(float3 worldPos, float3 normalWS, float3 viewDirWS, float3 waveCenter, float waveRadius, float waveOpacity, float noiseVal) + { + if (waveOpacity <= 0.001 || waveRadius <= 0.01) + return 0.0; + + float rawDist = distance(worldPos, waveCenter); + float distortedDist = rawDist + (noiseVal - 0.5) * _NoiseDistortion; + float distFromWave = distortedDist - waveRadius; + + float aheadFade = 1.0 - saturate(distFromWave / max(0.01, _LeadingEdgeSoftness)); + float behindFade = 1.0 - saturate(-distFromWave / max(0.1, _CloudBandWidth)); + + float cloudDensity = (distFromWave > 0.0) ? aheadFade : behindFade; + cloudDensity = smoothstep(0.0, 1.0, cloudDensity); + + float ripple = sin((rawDist - waveRadius) * _RippleFrequency) * 0.5 + 0.5; + cloudDensity *= lerp(1.0, ripple, _RippleStrength); + + float NdotV = saturate(dot(normalWS, viewDirWS)); + float rim = pow(1.0 - NdotV, _FresnelPower) * _FresnelStrength; + cloudDensity += cloudDensity * rim; + + return saturate(cloudDensity) * waveOpacity; + } + + Varyings vert(Attributes input) + { + Varyings output = (Varyings)0; + VertexPositionInputs vertexInputs = GetVertexPositionInputs(input.positionOS.xyz); + VertexNormalInputs normalInputs = GetVertexNormalInputs(input.normalOS); + + output.positionCS = vertexInputs.positionCS; + output.positionWS = vertexInputs.positionWS; + output.normalWS = normalInputs.normalWS; + output.uv = TRANSFORM_TEX(input.uv, _BaseMap); + output.fogFactor = ComputeFogFactor(vertexInputs.positionCS.z); + + return output; + } + + half4 frag(Varyings input) : SV_Target + { + float3 worldPos = input.positionWS; + float3 normalWS = normalize(input.normalWS); + float3 viewDirWS = normalize(GetCameraPositionWS() - worldPos); + + half4 texColor = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv); + half4 baseCol = texColor * _BaseColor; + + float noiseVal = GetCloudNoise(worldPos); + + float w1 = CalculateSingleWave(worldPos, normalWS, viewDirWS, _EchoPosition1.xyz, _EchoRadius1, _EchoOpacity1, noiseVal); + float w2 = CalculateSingleWave(worldPos, normalWS, viewDirWS, _EchoPosition2.xyz, _EchoRadius2, _EchoOpacity2, noiseVal); + float w3 = CalculateSingleWave(worldPos, normalWS, viewDirWS, _EchoPosition3.xyz, _EchoRadius3, _EchoOpacity3, noiseVal); + + float totalWave = saturate(w1 + w2 + w3); + + half NdotV = saturate(dot(normalWS, viewDirWS)); + half rim = pow(1.0 - NdotV, _FresnelPower) * _FresnelStrength; + half3 surfaceLighting = half3(1, 1, 1) * (NdotV * 0.35 + 0.65); + + half revealFactor = pow(totalWave, _ColorRevealSharpness); + half3 naturalRevealedColor = texColor.rgb * surfaceLighting * (_ColorRevealIntensity * revealFactor); + + half4 mistColor = _EchoColor * totalWave; + half4 coreBloom = _EchoCoreColor * pow(totalWave, 2.5) * 0.35; + half3 waveGlow = mistColor.rgb * _WaveTintWeight + coreBloom.rgb; + + half3 finalRgb = baseCol.rgb + naturalRevealedColor + waveGlow; + + // Semi-transparent alpha: dark in shadow, glowing glass surface when wave passes + half alpha = saturate(_BaseAlpha + totalWave * _WaveAlpha + rim * 0.3); + half4 finalColor = half4(finalRgb, alpha); + + finalColor.rgb = MixFog(finalColor.rgb, input.fogFactor); + + return finalColor; + } + ENDHLSL + } + } + FallBack "Hidden/Universal Render Pipeline/FallbackError" +} diff --git a/Assets/EchoCloudShader_Glass.shader.meta b/Assets/EchoCloudShader_Glass.shader.meta new file mode 100644 index 0000000..36432f5 --- /dev/null +++ b/Assets/EchoCloudShader_Glass.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: bea74fe0800205749996005b1bdd8d25 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fonts.meta b/Assets/Fonts.meta new file mode 100644 index 0000000..10bd3f8 --- /dev/null +++ b/Assets/Fonts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2b05a9fc88b7d9b43bbe2039945b93b4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fonts/Inkfree.ttf b/Assets/Fonts/Inkfree.ttf new file mode 100644 index 0000000..ef94abd Binary files /dev/null and b/Assets/Fonts/Inkfree.ttf differ diff --git a/Assets/Fonts/Inkfree.ttf.meta b/Assets/Fonts/Inkfree.ttf.meta new file mode 100644 index 0000000..94b2a93 --- /dev/null +++ b/Assets/Fonts/Inkfree.ttf.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 155167adafd18384b856deacf34ef1fe +TrueTypeFontImporter: + externalObjects: {} + serializedVersion: 4 + fontSize: 16 + forceTextureCase: -2 + characterSpacing: 0 + characterPadding: 1 + includeFontData: 1 + fontNames: + - Ink Free + fallbackFontReferences: [] + customCharacters: + fontRenderingMode: 0 + ascentCalculationMode: 1 + useLegacyBoundsCalculation: 0 + shouldRoundAdvanceValue: 1 + subsetRecipes: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fonts/MonotypeCorsiva.ttf b/Assets/Fonts/MonotypeCorsiva.ttf new file mode 100644 index 0000000..55f88d0 Binary files /dev/null and b/Assets/Fonts/MonotypeCorsiva.ttf differ diff --git a/Assets/Fonts/MonotypeCorsiva.ttf.meta b/Assets/Fonts/MonotypeCorsiva.ttf.meta new file mode 100644 index 0000000..17db290 --- /dev/null +++ b/Assets/Fonts/MonotypeCorsiva.ttf.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 5a39a86da4edba147b3816afbbd86733 +TrueTypeFontImporter: + externalObjects: {} + serializedVersion: 4 + fontSize: 16 + forceTextureCase: -2 + characterSpacing: 0 + characterPadding: 1 + includeFontData: 1 + fontNames: + - Monotype Corsiva + fallbackFontReferences: [] + customCharacters: + fontRenderingMode: 0 + ascentCalculationMode: 1 + useLegacyBoundsCalculation: 0 + shouldRoundAdvanceValue: 1 + subsetRecipes: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fonts/SegoeScriptBold.ttf b/Assets/Fonts/SegoeScriptBold.ttf new file mode 100644 index 0000000..8240a7e Binary files /dev/null and b/Assets/Fonts/SegoeScriptBold.ttf differ diff --git a/Assets/Fonts/SegoeScriptBold.ttf.meta b/Assets/Fonts/SegoeScriptBold.ttf.meta new file mode 100644 index 0000000..bd54fa9 --- /dev/null +++ b/Assets/Fonts/SegoeScriptBold.ttf.meta @@ -0,0 +1,22 @@ +fileFormatVersion: 2 +guid: 7b1af7ddf2999d74b8309afb8b2ba6d6 +TrueTypeFontImporter: + externalObjects: {} + serializedVersion: 4 + fontSize: 16 + forceTextureCase: -2 + characterSpacing: 0 + characterPadding: 1 + includeFontData: 1 + fontNames: + - Segoe Script + fallbackFontReferences: [] + customCharacters: + fontRenderingMode: 0 + ascentCalculationMode: 1 + useLegacyBoundsCalculation: 0 + shouldRoundAdvanceValue: 1 + subsetRecipes: [] + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/NuGet/.nuget-installed.json b/Assets/Plugins/NuGet/.nuget-installed.json index 4d11c2f..bdd2030 100644 --- a/Assets/Plugins/NuGet/.nuget-installed.json +++ b/Assets/Plugins/NuGet/.nuget-installed.json @@ -1,23 +1,31 @@ { "packages": { "com.IvanMurzak.McpPlugin": { - "version": "8.7.0", + "version": "8.11.0", "dlls": [ "McpPlugin.dll" ] }, "com.IvanMurzak.McpPlugin.Common": { - "version": "8.7.0", + "version": "8.11.0", "dlls": [ "McpPlugin.Common.dll" ] }, "com.IvanMurzak.ReflectorNet": { - "version": "5.4.1", + "version": "5.4.2", "dlls": [ "ReflectorNet.dll" ] }, + "com.IvanMurzak.Rql": { + "version": "0.1.1", + "dlls": [ + "Rql.Contracts.dll", + "Rql.Execution.dll", + "Rql.Parser.dll" + ] + }, "Microsoft.AspNetCore.Connections.Abstractions": { "version": "8.0.15", "dlls": [ diff --git a/Assets/Plugins/NuGet/McpPlugin.Common.dll b/Assets/Plugins/NuGet/McpPlugin.Common.dll index c6391bf..06e0384 100644 --- a/Assets/Plugins/NuGet/McpPlugin.Common.dll +++ b/Assets/Plugins/NuGet/McpPlugin.Common.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b69c6a8c43ce08d00e7cffdee749ab1cc4ce7d219c3d2c01c6fb7d282a3cf41c -size 61440 +oid sha256:a7a7f930a61e6c2badfc963510dd7672611d4c1f5e9a2c9ea02dde70d5cfaf9e +size 62976 diff --git a/Assets/Plugins/NuGet/McpPlugin.dll b/Assets/Plugins/NuGet/McpPlugin.dll index 871fa8d..94491d2 100644 --- a/Assets/Plugins/NuGet/McpPlugin.dll +++ b/Assets/Plugins/NuGet/McpPlugin.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:258d5b9dd836d2eb1f3bdf319f28d7657a5a1e371237b227cc4736c4af189a4b -size 394752 +oid sha256:3489756921aedcfdb79b0364edd4bee75dbe54c4e950a93082d185f03b7e9139 +size 409088 diff --git a/Assets/Plugins/NuGet/ReflectorNet.dll b/Assets/Plugins/NuGet/ReflectorNet.dll index 756f277..5cecc90 100644 --- a/Assets/Plugins/NuGet/ReflectorNet.dll +++ b/Assets/Plugins/NuGet/ReflectorNet.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ae5523e1b31bf6f60ff64570677a9d8a4251b5ad15e934cda8be6f01a66a7f25 +oid sha256:2d9ca3108e9eac9fa3ed9136649328c5f56c2f45c2f9a6cbf950aff2d85011b4 size 243200 diff --git a/Assets/Plugins/NuGet/Rql.Contracts.dll b/Assets/Plugins/NuGet/Rql.Contracts.dll new file mode 100644 index 0000000..7f908c8 --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Contracts.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97ec341ff790e340bac5ff3e4a38e7b7669ea18a89716ed6e5f16717edb99b12 +size 38912 diff --git a/Assets/Plugins/NuGet/Rql.Contracts.dll.meta b/Assets/Plugins/NuGet/Rql.Contracts.dll.meta new file mode 100644 index 0000000..4ed3eae --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Contracts.dll.meta @@ -0,0 +1,27 @@ +fileFormatVersion: 2 +guid: cd9b1951086013443abeb983d34e3282 +PluginImporter: + externalObjects: {} + serializedVersion: 3 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + WindowsStoreApps: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/NuGet/Rql.Execution.dll b/Assets/Plugins/NuGet/Rql.Execution.dll new file mode 100644 index 0000000..58db409 --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Execution.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82f1209e9380bc06212c903236799c76e6c5ce54abec4277839a3b82c36d7818 +size 217600 diff --git a/Assets/Plugins/NuGet/Rql.Execution.dll.meta b/Assets/Plugins/NuGet/Rql.Execution.dll.meta new file mode 100644 index 0000000..eabecf6 --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Execution.dll.meta @@ -0,0 +1,27 @@ +fileFormatVersion: 2 +guid: 6d0864575954b5f4ca323584a43cf9bb +PluginImporter: + externalObjects: {} + serializedVersion: 3 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + WindowsStoreApps: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/NuGet/Rql.Parser.dll b/Assets/Plugins/NuGet/Rql.Parser.dll new file mode 100644 index 0000000..a9048e9 --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Parser.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6b6878845ed03766ec5e96e8cdb6af068c310fb38e853452ae121130c130de1 +size 27136 diff --git a/Assets/Plugins/NuGet/Rql.Parser.dll.meta b/Assets/Plugins/NuGet/Rql.Parser.dll.meta new file mode 100644 index 0000000..78b70a3 --- /dev/null +++ b/Assets/Plugins/NuGet/Rql.Parser.dll.meta @@ -0,0 +1,27 @@ +fileFormatVersion: 2 +guid: d6c97623158cdad4c946a2e13cfc860b +PluginImporter: + externalObjects: {} + serializedVersion: 3 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + WindowsStoreApps: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Mutant.prefab b/Assets/Prefabs/Mutant.prefab index 91853ab..bd30af9 100644 --- a/Assets/Prefabs/Mutant.prefab +++ b/Assets/Prefabs/Mutant.prefab @@ -99,8 +99,8 @@ MonoBehaviour: detectionRadius: 3.5 losePlayerDistance: 14 attackRange: 1.8 - attackDamage: 20 - attackCooldown: 1.2 + attackDamage: 8 + attackCooldown: 1.35 --- !u!114 &6492899942493091741 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/MainMenu.unity b/Assets/Scenes/MainMenu.unity index ba63392..aa991e3 100644 --- a/Assets/Scenes/MainMenu.unity +++ b/Assets/Scenes/MainMenu.unity @@ -119,7 +119,7 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} ---- !u!1 &2064227 +--- !u!1 &2624163 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -127,160 +127,49 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2064228} + - component: {fileID: 2624164} + - component: {fileID: 2624166} + - component: {fileID: 2624165} m_Layer: 0 - m_Name: Handle Slide Area + m_Name: Text (Legacy) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2064228 +--- !u!224 &2624164 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2064227} + m_GameObject: {fileID: 2624163} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1744349202} - m_Father: {fileID: 1365698210} + m_Children: [] + m_Father: {fileID: 172584974} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &24896463 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 24896464} - - component: {fileID: 24896466} - - component: {fileID: 24896465} - m_Layer: 0 - m_Name: AccentLine_Left - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &24896464 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 24896463} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 3, y: 0} - m_SizeDelta: {x: 6, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &24896465 +--- !u!114 &2624165 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 24896463} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.7} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &24896466 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 24896463} - m_CullTransparentMesh: 1 ---- !u!1 &26045768 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 26045769} - - component: {fileID: 26045771} - - component: {fileID: 26045770} - m_Layer: 0 - m_Name: Item Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &26045769 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26045768} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 28794174} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 5, y: -0.5} - m_SizeDelta: {x: -30, y: -3} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &26045770 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26045768} + m_GameObject: {fileID: 2624163} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_Color: {r: 0.06, g: 0.06, b: 0.06, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -289,27 +178,27 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 + m_FontSize: 18 + m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 - m_Alignment: 3 + m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: Option A ---- !u!222 &26045771 + m_Text: "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u0438 \u0432\u044B\u0439\u0442\u0438" +--- !u!222 &2624166 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 26045768} + m_GameObject: {fileID: 2624163} m_CullTransparentMesh: 1 ---- !u!1 &28794173 +--- !u!1 &20879441 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -317,49 +206,374 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 28794174} - - component: {fileID: 28794175} + - component: {fileID: 20879442} m_Layer: 0 - m_Name: Item + m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &28794174 +--- !u!224 &20879442 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 28794173} + m_GameObject: {fileID: 20879441} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 717955234} - - {fileID: 79118934} - - {fileID: 26045769} - m_Father: {fileID: 1798997871} + - {fileID: 2126875623} + m_Father: {fileID: 443381732} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 20} + m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &28794175 +--- !u!1 &25234448 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 25234449} + m_Layer: 0 + m_Name: Loading_Container + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &25234449 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 25234448} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 617193179} + - {fileID: 1422934959} + - {fileID: 653654762} + m_Father: {fileID: 1681551511} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 640, y: 220} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &28648154 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 28648155} + - component: {fileID: 28648157} + - component: {fileID: 28648156} + m_Layer: 0 + m_Name: Crosshair_H + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &28648155 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 28648154} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 476238123} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 220, y: 1.5} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &28648156 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 28794173} + m_GameObject: {fileID: 28648154} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.25} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &28648157 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 28648154} + m_CullTransparentMesh: 1 +--- !u!1 &49175960 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 49175961} + - component: {fileID: 49175962} + m_Layer: 0 + m_Name: Row_Resolution + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &49175961 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 49175960} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 380986620} + - {fileID: 1941764196} + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -344} + m_SizeDelta: {x: 809.6, y: 44} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &49175962 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 49175960} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 44 + m_PreferredWidth: -1 + m_PreferredHeight: 44 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &78569664 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 78569665} + - component: {fileID: 78569666} + m_Layer: 0 + m_Name: Row_Sensitivity + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &78569665 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 78569664} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1750226958} + - {fileID: 1862835272} + - {fileID: 1122175054} + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -450} + m_SizeDelta: {x: 809.6, y: 44} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &78569666 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 78569664} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 44 + m_PreferredWidth: -1 + m_PreferredHeight: 44 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &172584973 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 172584974} + - component: {fileID: 172584980} + - component: {fileID: 172584979} + - component: {fileID: 172584978} + - component: {fileID: 172584977} + - component: {fileID: 172584976} + - component: {fileID: 172584975} + m_Layer: 0 + m_Name: Button_Back + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &172584974 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 172584973} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2624164} + m_Father: {fileID: 2133450090} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 614.69995, y: -33.299988} + m_SizeDelta: {x: 389.8, y: 66.599976} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &172584975 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 172584973} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 3, y: -3} + m_UseGraphicAlpha: 1 +--- !u!114 &172584976 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 172584973} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.95, b: 0.6, a: 0.7} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &172584977 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 172584973} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 50 + m_PreferredWidth: -1 + m_PreferredHeight: 50 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!114 &172584978 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 172584973} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button m_Navigation: m_Mode: 3 m_WrapAround: 0 @@ -369,13 +583,13 @@ MonoBehaviour: m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_NormalColor: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_HighlightedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_PressedColor: {r: 0.78, g: 0.62, b: 0.08, a: 1} + m_SelectedColor: {r: 1, g: 0.9, b: 0.35, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 - m_FadeDuration: 0.1 + m_FadeDuration: 0.12 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} @@ -388,450 +602,36 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 717955235} - toggleTransition: 1 - graphic: {fileID: 79118935} - m_Group: {fileID: 0} - onValueChanged: + m_TargetGraphic: {fileID: 172584979} + m_OnClick: m_PersistentCalls: - m_Calls: [] - m_IsOn: 1 ---- !u!1 &45339537 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 45339538} - - component: {fileID: 45339541} - - component: {fileID: 45339540} - - component: {fileID: 45339539} - m_Layer: 0 - m_Name: HEADER_CONTROLS - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &45339538 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 45339537} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -402} - m_SizeDelta: {x: 809.6, y: 32} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &45339539 + m_Calls: + - m_Target: {fileID: 424662873} + m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp + m_MethodName: CloseSettings + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &172584979 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 45339537} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.95} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 17 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u2014 \u0423\u041F\u0420\u0410\u0412\u041B\u0415\u041D\u0418\u0415 \u2014" ---- !u!222 &45339540 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 45339537} - m_CullTransparentMesh: 1 ---- !u!114 &45339541 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 45339537} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 32 - m_PreferredWidth: -1 - m_PreferredHeight: 32 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &79118933 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 79118934} - - component: {fileID: 79118936} - - component: {fileID: 79118935} - m_Layer: 0 - m_Name: Item Checkmark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &79118934 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 79118933} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 28794174} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 10, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &79118935 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 79118933} + m_GameObject: {fileID: 172584973} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &79118936 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 79118933} - m_CullTransparentMesh: 1 ---- !u!1 &80711974 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 80711975} - - component: {fileID: 80711978} - - component: {fileID: 80711977} - - component: {fileID: 80711976} - m_Layer: 0 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &80711975 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 80711974} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1823235902} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -22} - m_SizeDelta: {x: 280, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &80711976 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 80711974} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u044D\u043A\u0440\u0430\u043D\u0430" ---- !u!222 &80711977 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 80711974} - m_CullTransparentMesh: 1 ---- !u!114 &80711978 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 80711974} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &112531607 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 112531608} - - component: {fileID: 112531610} - - component: {fileID: 112531609} - m_Layer: 0 - m_Name: Text (Legacy) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &112531608 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 112531607} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2134885864} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &112531609 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 112531607} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.9, g: 0.98, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 24 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u25BA \u0418\u0413\u0420\u0410\u0422\u042C" ---- !u!222 &112531610 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 112531607} - m_CullTransparentMesh: 1 ---- !u!1 &122623568 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 122623569} - - component: {fileID: 122623572} - - component: {fileID: 122623571} - - component: {fileID: 122623573} - - component: {fileID: 122623570} - m_Layer: 0 - m_Name: Dropdown - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &122623569 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 122623568} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1749250128} - - {fileID: 1206250968} - - {fileID: 971459724} - m_Father: {fileID: 1823235902} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -22} - m_SizeDelta: {x: 160, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &122623570 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 122623568} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 420 - m_MinHeight: -1 - m_PreferredWidth: 420 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &122623571 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 122623568} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.95, g: 0.78, b: 0.12, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -848,21 +648,100 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &122623572 +--- !u!222 &172584980 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 122623568} + m_GameObject: {fileID: 172584973} m_CullTransparentMesh: 1 ---- !u!114 &122623573 +--- !u!1 &178114036 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 178114037} + - component: {fileID: 178114039} + - component: {fileID: 178114038} + - component: {fileID: 178114040} + m_Layer: 0 + m_Name: Dropdown + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &178114037 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 178114036} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 997866963} + - {fileID: 308703000} + - {fileID: 1663496840} + m_Father: {fileID: 2135189238} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.42, y: 0.1} + m_AnchorMax: {x: 1, y: 0.9} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &178114038 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 122623568} + m_GameObject: {fileID: 178114036} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.12, g: 0.12, b: 0.12, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &178114039 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 178114036} + m_CullTransparentMesh: 1 +--- !u!114 &178114040 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 178114036} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} @@ -896,11 +775,11 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 122623571} - m_Template: {fileID: 971459724} - m_CaptionText: {fileID: 1749250129} + m_TargetGraphic: {fileID: 178114038} + m_Template: {fileID: 1663496840} + m_CaptionText: {fileID: 997866964} m_CaptionImage: {fileID: 0} - m_ItemText: {fileID: 848012413} + m_ItemText: {fileID: 1003616529} m_ItemImage: {fileID: 0} m_Value: 0 m_Options: @@ -915,7 +794,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] m_AlphaFadeSpeed: 0.15 ---- !u!1 &140769735 +--- !u!1 &221418914 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -923,266 +802,42 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 140769736} + - component: {fileID: 221418915} + - component: {fileID: 221418917} + - component: {fileID: 221418916} m_Layer: 0 - m_Name: Fill Area + m_Name: Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &140769736 +--- !u!224 &221418915 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 140769735} + m_GameObject: {fileID: 221418914} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1541304796} - m_Father: {fileID: 1365698210} + m_Children: [] + m_Father: {fileID: 1916965278} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.25} m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &154381595 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 154381596} - - component: {fileID: 154381598} - - component: {fileID: 154381597} - m_Layer: 0 - m_Name: Toggle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &154381596 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 154381595} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1050261374} - - {fileID: 155513782} - m_Father: {fileID: 307602168} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -20} - m_SizeDelta: {x: 160, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &154381597 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 154381595} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 50 - m_MinHeight: -1 - m_PreferredWidth: 50 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &154381598 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 154381595} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1050261375} - toggleTransition: 1 - graphic: {fileID: 214383730} - m_Group: {fileID: 0} - onValueChanged: - m_PersistentCalls: - m_Calls: [] - m_IsOn: 1 ---- !u!1 &155513781 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 155513782} - - component: {fileID: 155513784} - - component: {fileID: 155513783} - m_Layer: 0 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &155513782 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 155513781} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 154381596} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 9, y: -0.5} - m_SizeDelta: {x: -28, y: -3} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &155513783 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 155513781} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!222 &155513784 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 155513781} - m_CullTransparentMesh: 1 ---- !u!1 &167590330 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 167590331} - - component: {fileID: 167590333} - - component: {fileID: 167590332} - m_Layer: 0 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &167590331 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 167590330} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2014975975} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0.2} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &167590332 +--- !u!114 &221418916 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 167590330} + m_GameObject: {fileID: 221418914} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -1196,7 +851,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 @@ -1206,15 +861,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &167590333 +--- !u!222 &221418917 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 167590330} + m_GameObject: {fileID: 221418914} m_CullTransparentMesh: 1 ---- !u!1 &195917733 +--- !u!1 &275948022 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1222,78 +877,42 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 195917734} + - component: {fileID: 275948023} + - component: {fileID: 275948025} + - component: {fileID: 275948024} m_Layer: 0 - m_Name: Fill Area + m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &195917734 +--- !u!224 &275948023 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 195917733} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1275212688} - m_Father: {fileID: 695073361} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &214383728 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 214383729} - - component: {fileID: 214383731} - - component: {fileID: 214383730} - m_Layer: 0 - m_Name: Checkmark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &214383729 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 214383728} + m_GameObject: {fileID: 275948022} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1050261374} + m_Father: {fileID: 2002801080} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} + m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &214383730 +--- !u!114 &275948024 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 214383728} + m_GameObject: {fileID: 275948022} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -1307,7 +926,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -1317,15 +936,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &214383731 +--- !u!222 &275948025 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 214383728} + m_GameObject: {fileID: 275948022} m_CullTransparentMesh: 1 ---- !u!1 &255538500 +--- !u!1 &297772530 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1333,249 +952,35 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 255538501} - - component: {fileID: 255538503} - - component: {fileID: 255538502} + - component: {fileID: 297772531} m_Layer: 0 - m_Name: LoadingPanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &255538501 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 255538500} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1028437931} - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &255538502 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 255538500} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.02, g: 0.03, b: 0.05, a: 0.97} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &255538503 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 255538500} - m_CullTransparentMesh: 1 ---- !u!1 &307602167 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 307602168} - - component: {fileID: 307602170} - - component: {fileID: 307602169} - m_Layer: 0 - m_Name: Row_Mute + m_Name: Fill Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &307602168 +--- !u!224 &297772531 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 307602167} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 658779860} - - {fileID: 154381596} - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -126} - m_SizeDelta: {x: 809.6, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &307602169 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 307602167} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &307602170 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 307602167} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 40 - m_PreferredWidth: -1 - m_PreferredHeight: 40 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &313363002 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 313363003} - - component: {fileID: 313363004} - m_Layer: 0 - m_Name: Item - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &313363003 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 313363002} + m_GameObject: {fileID: 297772530} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 2052518884} - - {fileID: 1390111610} - - {fileID: 848012412} - m_Father: {fileID: 2112506985} + - {fileID: 1622998064} + m_Father: {fileID: 1862835272} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 20} + m_AnchorMin: {x: 0, y: 0.25} + m_AnchorMax: {x: 1, y: 0.75} + m_AnchoredPosition: {x: -5, y: 0} + m_SizeDelta: {x: -20, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &313363004 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 313363002} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 2052518885} - toggleTransition: 1 - graphic: {fileID: 1390111611} - m_Group: {fileID: 0} - onValueChanged: - m_PersistentCalls: - m_Calls: [] - m_IsOn: 1 ---- !u!1 &341736390 +--- !u!1 &308702999 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1583,520 +988,9 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 341736391} - - component: {fileID: 341736393} - - component: {fileID: 341736392} - m_Layer: 0 - m_Name: Row_Volume - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &341736391 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 341736390} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1949182650} - - {fileID: 695073361} - - {fileID: 1627704736} - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -69} - m_SizeDelta: {x: 809.6, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &341736392 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 341736390} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &341736393 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 341736390} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 42 - m_PreferredWidth: -1 - m_PreferredHeight: 42 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &377092544 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 377092545} - - component: {fileID: 377092547} - - component: {fileID: 377092546} - m_Layer: 0 - m_Name: Toggle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &377092545 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 377092544} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 404883535} - - {fileID: 530488304} - m_Father: {fileID: 2052515649} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -20} - m_SizeDelta: {x: 160, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &377092546 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 377092544} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 50 - m_MinHeight: -1 - m_PreferredWidth: 50 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &377092547 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 377092544} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 404883536} - toggleTransition: 1 - graphic: {fileID: 1620894684} - m_Group: {fileID: 0} - onValueChanged: - m_PersistentCalls: - m_Calls: [] - m_IsOn: 1 ---- !u!1 &404883534 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 404883535} - - component: {fileID: 404883537} - - component: {fileID: 404883536} - m_Layer: 0 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &404883535 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 404883534} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1620894683} - m_Father: {fileID: 377092545} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 10, y: -10} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &404883536 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 404883534} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &404883537 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 404883534} - m_CullTransparentMesh: 1 ---- !u!1 &431614394 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 431614395} - - component: {fileID: 431614398} - - component: {fileID: 431614397} - - component: {fileID: 431614396} - m_Layer: 0 - m_Name: Settings_Card - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &431614395 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431614394} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 911800779} - - {fileID: 1446752195} - - {fileID: 1644576011} - - {fileID: 466622501} - m_Father: {fileID: 1762560493} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 920, y: 720} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &431614396 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431614394} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline - m_EffectColor: {r: 0, g: 0.85, b: 0.95, a: 0.5} - m_EffectDistance: {x: 2, y: -2} - m_UseGraphicAlpha: 1 ---- !u!114 &431614397 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431614394} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.05, g: 0.08, b: 0.12, a: 0.98} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &431614398 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 431614394} - m_CullTransparentMesh: 1 ---- !u!1 &444551040 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 444551041} - - component: {fileID: 444551043} - - component: {fileID: 444551042} - m_Layer: 0 - m_Name: Text (Legacy) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &444551041 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 444551040} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1162694772} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &444551042 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 444551040} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.95, g: 0.85, b: 0.85, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438" ---- !u!222 &444551043 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 444551040} - m_CullTransparentMesh: 1 ---- !u!1 &466622500 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 466622501} - - component: {fileID: 466622502} - m_Layer: 0 - m_Name: Settings_BottomButtons - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &466622501 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 466622500} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1162694772} - - {fileID: 1513288351} - m_Father: {fileID: 431614395} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.06, y: 0.03} - m_AnchorMax: {x: 0.94, y: 0.12} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &466622502 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 466622500} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 4 - m_Spacing: 30 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!1 &502912704 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 502912705} - - component: {fileID: 502912707} - - component: {fileID: 502912706} + - component: {fileID: 308703000} + - component: {fileID: 308703002} + - component: {fileID: 308703001} m_Layer: 0 m_Name: Arrow m_TagString: Untagged @@ -2104,32 +998,32 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &502912705 +--- !u!224 &308703000 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 502912704} + m_GameObject: {fileID: 308702999} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 2031144558} + m_Father: {fileID: 178114037} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0.5} m_AnchorMax: {x: 1, y: 0.5} m_AnchoredPosition: {x: -15, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &502912706 +--- !u!114 &308703001 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 502912704} + m_GameObject: {fileID: 308702999} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -2153,15 +1047,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &502912707 +--- !u!222 &308703002 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 502912704} + m_GameObject: {fileID: 308702999} m_CullTransparentMesh: 1 ---- !u!1 &530488303 +--- !u!1 &330704468 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2169,362 +1063,57 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 530488304} - - component: {fileID: 530488306} - - component: {fileID: 530488305} + - component: {fileID: 330704469} + - component: {fileID: 330704470} + - component: {fileID: 330704471} m_Layer: 0 - m_Name: Label + m_Name: ValueText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &530488304 +--- !u!224 &330704469 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530488303} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 377092545} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 9, y: -0.5} - m_SizeDelta: {x: -28, y: -3} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &530488305 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530488303} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: ---- !u!222 &530488306 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530488303} - m_CullTransparentMesh: 1 ---- !u!1 &565326966 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 565326967} - - component: {fileID: 565326969} - - component: {fileID: 565326968} - m_Layer: 0 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &565326967 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565326966} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 695073361} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &565326968 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565326966} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &565326969 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 565326966} - m_CullTransparentMesh: 1 ---- !u!1 &583476198 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 583476199} - - component: {fileID: 583476201} - - component: {fileID: 583476200} - m_Layer: 0 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &583476199 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 583476198} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2031144558} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -7.5, y: -0.5} - m_SizeDelta: {x: -35, y: -13} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &583476200 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 583476198} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Option A ---- !u!222 &583476201 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 583476198} - m_CullTransparentMesh: 1 ---- !u!1 &620129124 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 620129125} - - component: {fileID: 620129127} - - component: {fileID: 620129126} - m_Layer: 0 - m_Name: Text (Legacy) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &620129125 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620129124} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2086627768} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &620129126 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620129124} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 22 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u2699 \u041D\u0410\u0421\u0422\u0420\u041E\u0419\u041A\u0418" ---- !u!222 &620129127 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620129124} - m_CullTransparentMesh: 1 ---- !u!1 &620756159 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 620756160} - - component: {fileID: 620756163} - - component: {fileID: 620756162} - - component: {fileID: 620756161} - m_Layer: 0 - m_Name: HEADER_AUDIO - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &620756160 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620756159} + m_GameObject: {fileID: 330704468} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1644576011} + m_Father: {fileID: 1612935439} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -16} - m_SizeDelta: {x: 809.6, y: 32} + m_AnchorMin: {x: 0.84, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &620756161 +--- !u!222 &330704470 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 330704468} + m_CullTransparentMesh: 1 +--- !u!114 &330704471 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620756159} + m_GameObject: {fileID: 330704468} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.95} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -2533,7 +1122,79 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 17 + m_FontSize: 15 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 5 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: 100% +--- !u!1 &356139106 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 356139107} + - component: {fileID: 356139110} + - component: {fileID: 356139109} + - component: {fileID: 356139108} + m_Layer: 0 + m_Name: HEADER_GRAPHICS + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &356139107 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 356139106} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -177} + m_SizeDelta: {x: 809.6, y: 32} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &356139108 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 356139106} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.95} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 @@ -2544,22 +1205,22 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: "\u2014 \u0410\u0423\u0414\u0418\u041E \u0418 \u0417\u0412\u0423\u041A \u2014" ---- !u!222 &620756162 + m_Text: "\u2014 \u0413\u0420\u0410\u0424\u0418\u041A\u0410 \u2014" +--- !u!222 &356139109 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620756159} + m_GameObject: {fileID: 356139106} m_CullTransparentMesh: 1 ---- !u!114 &620756163 +--- !u!114 &356139110 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 620756159} + m_GameObject: {fileID: 356139106} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} @@ -2575,7 +1236,7 @@ MonoBehaviour: m_LayoutPriority: 1 m_MaxWidth: -1 m_MaxHeight: -1 ---- !u!1 &647772571 +--- !u!1 &359650858 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2583,158 +1244,49 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 647772572} - - component: {fileID: 647772575} - - component: {fileID: 647772574} - - component: {fileID: 647772573} + - component: {fileID: 359650859} + - component: {fileID: 359650861} + - component: {fileID: 359650860} m_Layer: 0 - m_Name: Template - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &647772572 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647772571} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1428280759} - - {fileID: 1278017387} - m_Father: {fileID: 2031144558} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 2} - m_SizeDelta: {x: 0, y: 150} - m_Pivot: {x: 0.5, y: 1} ---- !u!114 &647772573 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647772571} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.ScrollRect - m_Content: {fileID: 1798997871} - m_Horizontal: 0 - m_Vertical: 1 - m_MovementType: 2 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 1428280759} - m_HorizontalScrollbar: {fileID: 0} - m_VerticalScrollbar: {fileID: 1278017388} - m_HorizontalScrollbarVisibility: 0 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: 0 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &647772574 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647772571} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &647772575 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 647772571} - m_CullTransparentMesh: 1 ---- !u!1 &658779859 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 658779860} - - component: {fileID: 658779863} - - component: {fileID: 658779862} - - component: {fileID: 658779861} - m_Layer: 0 - m_Name: Label + m_Name: Text (Legacy) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &658779860 +--- !u!224 &359650859 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658779859} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 359650858} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 307602168} + m_Father: {fileID: 1544822214} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -20} - m_SizeDelta: {x: 280, y: 40} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &658779861 +--- !u!114 &359650860 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658779859} + m_GameObject: {fileID: 359650858} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} + m_Color: {r: 0.06, g: 0.06, b: 0.06, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -2743,49 +1295,27 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 0 + m_FontSize: 34 + m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 - m_Alignment: 3 + m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: "\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A (Mute)" ---- !u!222 &658779862 + m_Text: "\u0418\u0413\u0420\u0410\u0422\u042C" +--- !u!222 &359650861 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658779859} + m_GameObject: {fileID: 359650858} m_CullTransparentMesh: 1 ---- !u!114 &658779863 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 658779859} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &695073360 +--- !u!1 &369535200 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2793,162 +1323,49 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 695073361} - - component: {fileID: 695073363} - - component: {fileID: 695073362} + - component: {fileID: 369535201} + - component: {fileID: 369535203} + - component: {fileID: 369535202} m_Layer: 0 - m_Name: Slider + m_Name: Radar_BeaconDot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &695073361 +--- !u!224 &369535201 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 695073360} + m_GameObject: {fileID: 369535200} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 565326967} - - {fileID: 195917734} - - {fileID: 1937732878} - m_Father: {fileID: 341736391} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -21} - m_SizeDelta: {x: 160, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &695073362 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 695073360} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 360 - m_MinHeight: -1 - m_PreferredWidth: 360 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &695073363 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 695073360} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Slider - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1976303571} - m_FillRect: {fileID: 1275212688} - m_HandleRect: {fileID: 1976303570} - m_Direction: 0 - m_MinValue: 0 - m_MaxValue: 1 - m_WholeNumbers: 0 - m_Value: 1 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &717955233 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 717955234} - - component: {fileID: 717955236} - - component: {fileID: 717955235} - m_Layer: 0 - m_Name: Item Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &717955234 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 717955233} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 28794174} + m_Father: {fileID: 476238123} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 14, y: 14} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &717955235 +--- !u!114 &369535202 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 717955233} + m_GameObject: {fileID: 369535200} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_Color: {r: 1, g: 0.92, b: 0.2, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -2965,15 +1382,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &717955236 +--- !u!222 &369535203 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 717955233} + m_GameObject: {fileID: 369535200} m_CullTransparentMesh: 1 ---- !u!1 &720986362 +--- !u!1 &380986619 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2981,74 +1398,78 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 720986363} - - component: {fileID: 720986365} - - component: {fileID: 720986364} + - component: {fileID: 380986620} + - component: {fileID: 380986622} + - component: {fileID: 380986621} m_Layer: 0 - m_Name: Background + m_Name: Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &720986363 +--- !u!224 &380986620 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 720986362} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_GameObject: {fileID: 380986619} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1365698210} + m_Father: {fileID: 49175961} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.4, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &720986364 +--- !u!114 &380986621 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 720986362} + m_GameObject: {fileID: 380986619} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &720986365 + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u044D\u043A\u0440\u0430\u043D\u0430" +--- !u!222 &380986622 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 720986362} + m_GameObject: {fileID: 380986619} m_CullTransparentMesh: 1 ---- !u!1 &726704210 +--- !u!1 &424662872 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3056,100 +1477,58 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 726704211} + - component: {fileID: 424662874} + - component: {fileID: 424662873} m_Layer: 0 - m_Name: Sliding Area + m_Name: MainMenuManager m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &726704211 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 726704210} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1925115965} - m_Father: {fileID: 1278017387} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &770273317 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 770273318} - - component: {fileID: 770273319} - m_Layer: 0 - m_Name: MainMenuPanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &770273318 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 770273317} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2134885864} - - {fileID: 2086627768} - - {fileID: 1174929049} - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.08, y: 0.18} - m_AnchorMax: {x: 0.38, y: 0.6} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &770273319 +--- !u!114 &424662873 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 770273317} + m_GameObject: {fileID: 424662872} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Script: {fileID: 11500000, guid: 184bffc58f97dd54b96740a6289afda6, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.VerticalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 18 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!1 &783861094 + m_EditorClassIdentifier: Assembly-CSharp::MainMenuManager + mainMenuPanel: {fileID: 1187567538} + headerContainer: {fileID: 898861344} + settingsPanel: {fileID: 1333474034} + loadingPanel: {fileID: 1681551510} + gameSceneName: SampleScene + loadingSlider: {fileID: 1422934960} + loadingText: {fileID: 653654764} + volumeSlider: {fileID: 1916965279} + volumeValueText: {fileID: 330704471} + muteToggle: {fileID: 777803796} + qualityDropdown: {fileID: 178114040} + fullscreenToggle: {fileID: 1183264873} + resolutionDropdown: {fileID: 1941764199} + sensitivitySlider: {fileID: 1862835273} + sensitivityValueText: {fileID: 1122175052} +--- !u!4 &424662874 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 424662872} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &443381731 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3157,10 +1536,10 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 783861095} - - component: {fileID: 783861098} - - component: {fileID: 783861097} - - component: {fileID: 783861096} + - component: {fileID: 443381732} + - component: {fileID: 443381735} + - component: {fileID: 443381734} + - component: {fileID: 443381733} m_Layer: 0 m_Name: Scrollbar m_TagString: Untagged @@ -3168,33 +1547,33 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &783861095 +--- !u!224 &443381732 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 783861094} + m_GameObject: {fileID: 443381731} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 2014975975} - m_Father: {fileID: 971459724} + - {fileID: 20879442} + m_Father: {fileID: 1663496840} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 1, y: 1} ---- !u!114 &783861096 +--- !u!114 &443381733 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 783861094} + m_GameObject: {fileID: 443381731} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} @@ -3228,8 +1607,8 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 167590332} - m_HandleRect: {fileID: 167590331} + m_TargetGraphic: {fileID: 2126875624} + m_HandleRect: {fileID: 2126875623} m_Direction: 2 m_Value: 0 m_Size: 0.2 @@ -3237,13 +1616,13 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: [] ---- !u!114 &783861097 +--- !u!114 &443381734 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 783861094} + m_GameObject: {fileID: 443381731} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -3267,15 +1646,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &783861098 +--- !u!222 &443381735 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 783861094} + m_GameObject: {fileID: 443381731} m_CullTransparentMesh: 1 ---- !u!1 &848012411 +--- !u!1 &476238122 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3283,42 +1662,1425 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 848012412} - - component: {fileID: 848012414} - - component: {fileID: 848012413} + - component: {fileID: 476238123} + - component: {fileID: 476238124} m_Layer: 0 - m_Name: Item Label + m_Name: Corner_Echolocation_Radar m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &848012412 +--- !u!224 &476238123 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 848012411} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_GameObject: {fileID: 476238122} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 313363003} + m_Children: + - {fileID: 2124938209} + - {fileID: 1573194001} + - {fileID: 28648155} + - {fileID: 2100556429} + - {fileID: 369535201} + m_Father: {fileID: 1908515134} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 5, y: -0.5} - m_SizeDelta: {x: -30, y: -3} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -140, y: 140} + m_SizeDelta: {x: 280, y: 280} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &848012413 +--- !u!114 &476238124 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 848012411} + m_GameObject: {fileID: 476238122} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 27669377a9e37834c888101dec6dc187, type: 3} + m_Name: + m_EditorClassIdentifier: Assembly-CSharp::MenuEcholocationRadar + maxSimultaneousWaves: 4 + waveMaxRadius: 1600 + waveSpeed: 240 + waveSpawnInterval: 1.7 + initialThickness: 14 + maxThickness: 52 + waveBaseColor: {r: 1, g: 0.85, b: 0.1, a: 0.85} + waveCoreColor: {r: 1, g: 0.98, b: 0.55, a: 1} + beaconColor: {r: 1, g: 0.88, b: 0.15, a: 1} + radarBeaconDot: {fileID: 369535202} + radarReticle: {fileID: 2124938211} +--- !u!1 &479211098 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 479211099} + - component: {fileID: 479211101} + - component: {fileID: 479211100} + m_Layer: 0 + m_Name: Item Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &479211099 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 479211098} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1840484421} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &479211100 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 479211098} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &479211101 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 479211098} + m_CullTransparentMesh: 1 +--- !u!1 &529391613 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 529391614} + - component: {fileID: 529391615} + m_Layer: 0 + m_Name: Settings_List + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &529391614 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 529391613} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040887086} + - {fileID: 1612935439} + - {fileID: 2129875647} + - {fileID: 356139107} + - {fileID: 2135189238} + - {fileID: 1163692066} + - {fileID: 49175961} + - {fileID: 1079888557} + - {fileID: 78569665} + m_Father: {fileID: 1898873718} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.06, y: 0.14} + m_AnchorMax: {x: 0.94, y: 0.87} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &529391615 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 529391613} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.VerticalLayoutGroup + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 1 + m_Spacing: 15 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 1 + m_ChildControlHeight: 0 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &558388185 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 558388186} + - component: {fileID: 558388188} + - component: {fileID: 558388187} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &558388186 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 558388185} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1422934959} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.25} + m_AnchorMax: {x: 1, y: 0.75} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &558388187 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 558388185} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &558388188 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 558388185} + m_CullTransparentMesh: 1 +--- !u!1 &576255633 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 576255634} + - component: {fileID: 576255637} + - component: {fileID: 576255636} + - component: {fileID: 576255635} + m_Layer: 0 + m_Name: Template + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &576255634 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 576255633} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1319970849} + - {fileID: 1383599966} + m_Father: {fileID: 1941764196} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 2} + m_SizeDelta: {x: 0, y: 150} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &576255635 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 576255633} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.ScrollRect + m_Content: {fileID: 924256466} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 2 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 1319970849} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 1383599967} + m_HorizontalScrollbarVisibility: 0 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: 0 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &576255636 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 576255633} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &576255637 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 576255633} + m_CullTransparentMesh: 1 +--- !u!1 &607136696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 607136697} + m_Layer: 0 + m_Name: Fill Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &607136697 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 607136696} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 756788801} + m_Father: {fileID: 1422934959} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.25} + m_AnchorMax: {x: 1, y: 0.75} + m_AnchoredPosition: {x: -5, y: 0} + m_SizeDelta: {x: -20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &617193178 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 617193179} + - component: {fileID: 617193181} + - component: {fileID: 617193180} + m_Layer: 0 + m_Name: Loading_Title + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &617193179 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 617193178} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 25234449} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.65} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &617193180 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 617193178} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 12800000, guid: 7b1af7ddf2999d74b8309afb8b2ba6d6, type: 3} + m_FontSize: 52 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 52 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: Synthesia +--- !u!222 &617193181 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 617193178} + m_CullTransparentMesh: 1 +--- !u!1 &653654761 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 653654762} + - component: {fileID: 653654763} + - component: {fileID: 653654764} + m_Layer: 0 + m_Name: Loading_Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &653654762 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653654761} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 25234449} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.3} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &653654763 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653654761} + m_CullTransparentMesh: 1 +--- !u!114 &653654764 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 653654761} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.95, g: 0.95, b: 0.95, a: 0.9} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 18 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430..." +--- !u!1 &656081539 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 656081540} + m_Layer: 0 + m_Name: Handle Slide Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &656081540 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 656081539} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1608933625} + m_Father: {fileID: 1916965278} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &745020970 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 745020971} + - component: {fileID: 745020973} + - component: {fileID: 745020972} + m_Layer: 0 + m_Name: Item Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &745020971 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 745020970} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1056505374} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &745020972 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 745020970} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &745020973 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 745020970} + m_CullTransparentMesh: 1 +--- !u!1 &756788800 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 756788801} + - component: {fileID: 756788803} + - component: {fileID: 756788802} + m_Layer: 0 + m_Name: Fill + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &756788801 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 756788800} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 607136697} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 10, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &756788802 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 756788800} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &756788803 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 756788800} + m_CullTransparentMesh: 1 +--- !u!1 &777803794 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 777803795} + - component: {fileID: 777803796} + m_Layer: 0 + m_Name: Toggle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &777803795 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 777803794} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1928592248} + m_Father: {fileID: 2129875647} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.85, y: 0.15} + m_AnchorMax: {x: 1, y: 0.85} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &777803796 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 777803794} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1928592249} + toggleTransition: 1 + graphic: {fileID: 1907154270} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &846395731 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 846395732} + m_Layer: 0 + m_Name: Handle Slide Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &846395732 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 846395731} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1226984057} + m_Father: {fileID: 1862835272} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &875537321 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 875537322} + - component: {fileID: 875537328} + - component: {fileID: 875537327} + - component: {fileID: 875537326} + - component: {fileID: 875537325} + - component: {fileID: 875537324} + - component: {fileID: 875537323} + m_Layer: 0 + m_Name: Button_Quit + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &875537322 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1655984483} + m_Father: {fileID: 1187567539} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &875537323 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 3, y: -3} + m_UseGraphicAlpha: 1 +--- !u!114 &875537324 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.95, b: 0.6, a: 0.7} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &875537325 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 90 + m_PreferredWidth: -1 + m_PreferredHeight: 90 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!114 &875537326 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_HighlightedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_PressedColor: {r: 0.78, g: 0.62, b: 0.08, a: 1} + m_SelectedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.12 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 875537327} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 424662873} + m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp + m_MethodName: QuitGame + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &875537327 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &875537328 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 875537321} + m_CullTransparentMesh: 1 +--- !u!1 &887722894 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 887722895} + - component: {fileID: 887722897} + - component: {fileID: 887722896} + m_Layer: 0 + m_Name: Background_Black + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &887722895 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 887722894} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1908515134} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &887722896 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 887722894} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0, b: 0, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &887722897 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 887722894} + m_CullTransparentMesh: 1 +--- !u!1 &898861344 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 898861345} + m_Layer: 0 + m_Name: Header_Container + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &898861345 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 898861344} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1179865068} + m_Father: {fileID: 1908515134} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 210} + m_SizeDelta: {x: 1100, y: 200} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &913684402 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 913684403} + - component: {fileID: 913684405} + - component: {fileID: 913684404} + m_Layer: 0 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &913684403 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 913684402} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1163692066} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.7, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &913684404 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 913684402} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u041F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C" +--- !u!222 &913684405 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 913684402} + m_CullTransparentMesh: 1 +--- !u!1 &924256465 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 924256466} + m_Layer: 0 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &924256466 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 924256465} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1056505374} + m_Father: {fileID: 1319970849} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 28} + m_Pivot: {x: 0.5, y: 1} +--- !u!1 &996689254 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 996689255} + - component: {fileID: 996689257} + - component: {fileID: 996689256} + m_Layer: 0 + m_Name: Item Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &996689255 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 996689254} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1056505374} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 10, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &996689256 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 996689254} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &996689257 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 996689254} + m_CullTransparentMesh: 1 +--- !u!1 &997866962 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 997866963} + - component: {fileID: 997866965} + - component: {fileID: 997866964} + m_Layer: 0 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &997866963 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 997866962} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 178114037} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -7.5, y: -0.5} + m_SizeDelta: {x: -35, y: -13} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &997866964 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 997866962} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} @@ -3346,15 +3108,15 @@ MonoBehaviour: m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Option A ---- !u!222 &848012414 +--- !u!222 &997866965 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 848012411} + m_GameObject: {fileID: 997866962} m_CullTransparentMesh: 1 ---- !u!1 &886053400 +--- !u!1 &1003616527 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3362,10 +3124,1331 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 886053404} - - component: {fileID: 886053403} - - component: {fileID: 886053402} - - component: {fileID: 886053401} + - component: {fileID: 1003616528} + - component: {fileID: 1003616530} + - component: {fileID: 1003616529} + m_Layer: 0 + m_Name: Item Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1003616528 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003616527} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1840484421} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: -0.5} + m_SizeDelta: {x: -30, y: -3} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1003616529 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003616527} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Option A +--- !u!222 &1003616530 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1003616527} + m_CullTransparentMesh: 1 +--- !u!1 &1050743705 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1050743706} + - component: {fileID: 1050743708} + - component: {fileID: 1050743707} + m_Layer: 0 + m_Name: Settings_Divider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1050743706 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1050743705} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1898873718} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.05, y: 0.89} + m_AnchorMax: {x: 0.95, y: 0.895} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1050743707 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1050743705} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.4} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1050743708 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1050743705} + m_CullTransparentMesh: 1 +--- !u!1 &1056505373 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1056505374} + - component: {fileID: 1056505375} + m_Layer: 0 + m_Name: Item + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1056505374 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1056505373} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 745020971} + - {fileID: 996689255} + - {fileID: 2094966549} + m_Father: {fileID: 924256466} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1056505375 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1056505373} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 745020972} + toggleTransition: 1 + graphic: {fileID: 996689256} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &1066710314 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1066710315} + - component: {fileID: 1066710321} + - component: {fileID: 1066710320} + - component: {fileID: 1066710319} + - component: {fileID: 1066710318} + - component: {fileID: 1066710317} + - component: {fileID: 1066710316} + m_Layer: 0 + m_Name: Button_ResetDefaults + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1066710315 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1925506858} + m_Father: {fileID: 2133450090} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.9, y: -33.299988} + m_SizeDelta: {x: 389.8, y: 66.599976} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1066710316 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 3, y: -3} + m_UseGraphicAlpha: 1 +--- !u!114 &1066710317 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.95, b: 0.6, a: 0.7} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &1066710318 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 50 + m_PreferredWidth: -1 + m_PreferredHeight: 50 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!114 &1066710319 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 0.35, g: 0.15, b: 0.15, a: 1} + m_HighlightedColor: {r: 0.5, g: 0.2, b: 0.2, a: 1} + m_PressedColor: {r: 0.65, g: 0.25, b: 0.25, a: 1} + m_SelectedColor: {r: 0.5, g: 0.2, b: 0.2, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.12 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1066710320} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 424662873} + m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp + m_MethodName: ResetToDefaults + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &1066710320 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.35, g: 0.15, b: 0.15, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1066710321 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1066710314} + m_CullTransparentMesh: 1 +--- !u!1 &1079888556 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1079888557} + - component: {fileID: 1079888560} + - component: {fileID: 1079888559} + - component: {fileID: 1079888558} + m_Layer: 0 + m_Name: HEADER_CONTROLS + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1079888557 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1079888556} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -397} + m_SizeDelta: {x: 809.6, y: 32} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1079888558 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1079888556} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.95} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u2014 \u0423\u041F\u0420\u0410\u0412\u041B\u0415\u041D\u0418\u0415 \u2014" +--- !u!222 &1079888559 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1079888556} + m_CullTransparentMesh: 1 +--- !u!114 &1079888560 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1079888556} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 32 + m_PreferredWidth: -1 + m_PreferredHeight: 32 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &1100054922 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1100054923} + - component: {fileID: 1100054925} + - component: {fileID: 1100054924} + m_Layer: 0 + m_Name: Backdrop_Dim + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1100054923 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1100054922} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1333474035} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1100054924 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1100054922} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0, b: 0, a: 0.92} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1100054925 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1100054922} + m_CullTransparentMesh: 1 +--- !u!1 &1122175051 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1122175054} + - component: {fileID: 1122175053} + - component: {fileID: 1122175052} + m_Layer: 0 + m_Name: ValueText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1122175052 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1122175051} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 15 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 5 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: 1,0x +--- !u!222 &1122175053 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1122175051} + m_CullTransparentMesh: 1 +--- !u!224 &1122175054 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1122175051} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 78569665} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.84, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1125765756 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1125765757} + - component: {fileID: 1125765759} + - component: {fileID: 1125765758} + m_Layer: 0 + m_Name: Fill + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1125765757 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1125765756} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1639958734} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 10, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1125765758 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1125765756} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1125765759 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1125765756} + m_CullTransparentMesh: 1 +--- !u!1 &1163692065 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1163692066} + - component: {fileID: 1163692067} + m_Layer: 0 + m_Name: Row_Fullscreen + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1163692066 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1163692065} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 913684403} + - {fileID: 1183264872} + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -287} + m_SizeDelta: {x: 809.6, y: 40} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1163692067 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1163692065} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 40 + m_PreferredWidth: -1 + m_PreferredHeight: 40 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &1179865067 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1179865068} + - component: {fileID: 1179865072} + - component: {fileID: 1179865071} + - component: {fileID: 1179865070} + - component: {fileID: 1179865069} + m_Layer: 0 + m_Name: Title_Synthesia + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1179865068 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179865067} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 898861345} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1179865069 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179865067} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0.12, g: 0.1, b: 0, a: 0.8} + m_EffectDistance: {x: 4, y: -4} + m_UseGraphicAlpha: 1 +--- !u!114 &1179865070 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179865067} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.85, b: 0.1, a: 0.5} + m_EffectDistance: {x: 2.5, y: -2.5} + m_UseGraphicAlpha: 1 +--- !u!114 &1179865071 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179865067} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 12800000, guid: 7b1af7ddf2999d74b8309afb8b2ba6d6, type: 3} + m_FontSize: 110 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 110 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: Synthesia +--- !u!222 &1179865072 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179865067} + m_CullTransparentMesh: 1 +--- !u!1 &1183264871 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1183264872} + - component: {fileID: 1183264873} + m_Layer: 0 + m_Name: Toggle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1183264872 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1183264871} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2066219334} + m_Father: {fileID: 1163692066} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.85, y: 0.15} + m_AnchorMax: {x: 1, y: 0.85} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1183264873 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1183264871} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2066219335} + toggleTransition: 1 + graphic: {fileID: 1875088192} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &1187567538 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1187567539} + - component: {fileID: 1187567540} + m_Layer: 0 + m_Name: MainMenuPanel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1187567539 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1187567538} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1544822214} + - {fileID: 1435542204} + - {fileID: 875537322} + m_Father: {fileID: 1908515134} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -110} + m_SizeDelta: {x: 620, y: 380} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1187567540 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1187567538} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.VerticalLayoutGroup + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 4 + m_Spacing: 24 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &1226984056 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1226984057} + - component: {fileID: 1226984059} + - component: {fileID: 1226984058} + m_Layer: 0 + m_Name: Handle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1226984057 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1226984056} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 846395732} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.2857143, y: 0} + m_AnchorMax: {x: 0.2857143, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1226984058 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1226984056} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1226984059 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1226984056} + m_CullTransparentMesh: 1 +--- !u!1 &1242909751 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1242909752} + - component: {fileID: 1242909754} + - component: {fileID: 1242909753} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1242909752 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242909751} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1862835272} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.25} + m_AnchorMax: {x: 1, y: 0.75} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1242909753 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242909751} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1242909754 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242909751} + m_CullTransparentMesh: 1 +--- !u!1 &1319970848 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1319970849} + - component: {fileID: 1319970852} + - component: {fileID: 1319970851} + - component: {fileID: 1319970850} + m_Layer: 0 + m_Name: Viewport + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1319970849 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1319970848} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 924256466} + m_Father: {fileID: 576255634} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -18, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &1319970850 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1319970848} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Mask + m_ShowMaskGraphic: 0 +--- !u!114 &1319970851 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1319970848} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1319970852 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1319970848} + m_CullTransparentMesh: 1 +--- !u!1 &1321778715 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1321778719} + - component: {fileID: 1321778718} + - component: {fileID: 1321778717} + - component: {fileID: 1321778716} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera @@ -3373,21 +4456,21 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!81 &886053401 +--- !u!81 &1321778716 AudioListener: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 886053400} + m_GameObject: {fileID: 1321778715} m_Enabled: 1 ---- !u!114 &886053402 +--- !u!114 &1321778717 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 886053400} + m_GameObject: {fileID: 1321778715} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} @@ -3425,17 +4508,17 @@ MonoBehaviour: m_VarianceClampScale: 0.9 m_ContrastAdaptiveSharpening: 0 m_Version: 2 ---- !u!20 &886053403 +--- !u!20 &1321778718 Camera: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 886053400} + m_GameObject: {fileID: 1321778715} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 2 - m_BackGroundColor: {r: 0.035, g: 0.05, b: 0.075, a: 1} + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 @@ -3476,13 +4559,13 @@ Camera: m_OcclusionCulling: 1 m_StereoConvergence: 10 m_StereoSeparation: 0.022 ---- !u!4 &886053404 +--- !u!4 &1321778719 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 886053400} + m_GameObject: {fileID: 1321778715} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: -10} @@ -3491,7 +4574,7 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &911800778 +--- !u!1 &1333474034 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3499,1278 +4582,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 911800779} - - component: {fileID: 911800781} - - component: {fileID: 911800780} + - component: {fileID: 1333474035} m_Layer: 0 - m_Name: Settings_Header - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &911800779 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 911800778} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 431614395} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.05, y: 0.9} - m_AnchorMax: {x: 0.95, y: 0.98} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &911800780 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 911800778} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.9, g: 0.97, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 28 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: "\u041D\u0410\u0421\u0422\u0420\u041E\u0419\u041A\u0418 \u0421\u0418\u0421\u0422\u0415\u041C\u042B" ---- !u!222 &911800781 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 911800778} - m_CullTransparentMesh: 1 ---- !u!1 &958196733 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 958196734} - - component: {fileID: 958196736} - - component: {fileID: 958196735} - m_Layer: 0 - m_Name: Text (Legacy) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &958196734 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 958196733} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1513288351} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &958196735 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 958196733} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.9, g: 0.98, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 20 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u2714 \u041D\u0410\u0417\u0410\u0414 \u0412 \u041C\u0415\u041D\u042E" ---- !u!222 &958196736 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 958196733} - m_CullTransparentMesh: 1 ---- !u!1 &971459723 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 971459724} - - component: {fileID: 971459727} - - component: {fileID: 971459726} - - component: {fileID: 971459725} - m_Layer: 0 - m_Name: Template + m_Name: SettingsPanel m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 ---- !u!224 &971459724 +--- !u!224 &1333474035 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 971459723} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1952669712} - - {fileID: 783861095} - m_Father: {fileID: 122623569} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 2} - m_SizeDelta: {x: 0, y: 150} - m_Pivot: {x: 0.5, y: 1} ---- !u!114 &971459725 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 971459723} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.ScrollRect - m_Content: {fileID: 2112506985} - m_Horizontal: 0 - m_Vertical: 1 - m_MovementType: 2 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 1952669712} - m_HorizontalScrollbar: {fileID: 0} - m_VerticalScrollbar: {fileID: 783861096} - m_HorizontalScrollbarVisibility: 0 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: 0 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &971459726 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 971459723} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &971459727 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 971459723} - m_CullTransparentMesh: 1 ---- !u!1 &994563259 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 994563260} - - component: {fileID: 994563262} - - component: {fileID: 994563261} - m_Layer: 0 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &994563260 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 994563259} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2109719149} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &994563261 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 994563259} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &994563262 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 994563259} - m_CullTransparentMesh: 1 ---- !u!1 &1028437930 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1028437931} - m_Layer: 0 - m_Name: Loading_Container - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1028437931 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1028437930} + m_GameObject: {fileID: 1333474034} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1390812851} - - {fileID: 1790482024} - - {fileID: 1553759682} - m_Father: {fileID: 255538501} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 600, y: 200} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1049063477 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1049063478} - - component: {fileID: 1049063481} - - component: {fileID: 1049063480} - - component: {fileID: 1049063479} - m_Layer: 0 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1049063478 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1049063477} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1830551284} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -22} - m_SizeDelta: {x: 280, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1049063479 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1049063477} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0433\u0440\u0430\u0444\u0438\u043A\u0438" ---- !u!222 &1049063480 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1049063477} - m_CullTransparentMesh: 1 ---- !u!114 &1049063481 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1049063477} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &1050261373 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1050261374} - - component: {fileID: 1050261376} - - component: {fileID: 1050261375} - m_Layer: 0 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1050261374 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1050261373} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 214383729} - m_Father: {fileID: 154381596} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 10, y: -10} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1050261375 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1050261373} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1050261376 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1050261373} - m_CullTransparentMesh: 1 ---- !u!1 &1088347071 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1088347072} - - component: {fileID: 1088347074} - - component: {fileID: 1088347073} - m_Layer: 0 - m_Name: Version_Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1088347072 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1088347071} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.7, y: 0.02} - m_AnchorMax: {x: 0.98, y: 0.06} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1088347073 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1088347071} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.4, g: 0.52, b: 0.62, a: 0.75} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 5 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: "\u0412\u0435\u0440\u0441\u0438\u044F 1.0.0 | \u041B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044F '\u042D\u0445\u043E'" ---- !u!222 &1088347074 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1088347071} - m_CullTransparentMesh: 1 ---- !u!1 &1104096924 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1104096925} - - component: {fileID: 1104096927} - - component: {fileID: 1104096926} - m_Layer: 0 - m_Name: Title_Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1104096925 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1104096924} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1614174432} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.4} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1104096926 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1104096924} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.92, g: 0.97, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 48 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: ECHO // PROTOCOL ---- !u!222 &1104096927 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1104096924} - m_CullTransparentMesh: 1 ---- !u!1 &1115523616 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1115523620} - - component: {fileID: 1115523619} - - component: {fileID: 1115523618} - - component: {fileID: 1115523617} - m_Layer: 0 - m_Name: ValueText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1115523617 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1115523616} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 1,0x ---- !u!222 &1115523618 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1115523616} - m_CullTransparentMesh: 1 ---- !u!114 &1115523619 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1115523616} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 90 - m_MinHeight: -1 - m_PreferredWidth: 90 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!224 &1115523620 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1115523616} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1847879371} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 521, y: -21} - m_SizeDelta: {x: 90, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1162694771 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1162694772} - - component: {fileID: 1162694776} - - component: {fileID: 1162694775} - - component: {fileID: 1162694774} - - component: {fileID: 1162694773} - m_Layer: 0 - m_Name: Button_ResetDefaults - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1162694772 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1162694771} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 444551041} - m_Father: {fileID: 466622501} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 194.9, y: -32.399994} - m_SizeDelta: {x: 389.8, y: 64.79999} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1162694773 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1162694771} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 50 - m_PreferredWidth: -1 - m_PreferredHeight: 50 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &1162694774 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1162694771} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 0.18, g: 0.12, b: 0.14, a: 0.95} - m_HighlightedColor: {r: 0.35, g: 0.18, b: 0.22, a: 1} - m_PressedColor: {r: 0.12, g: 0.06, b: 0.08, a: 1} - m_SelectedColor: {r: 0.35, g: 0.18, b: 0.22, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.12 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1162694775} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1934016257} - m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp - m_MethodName: ResetToDefaults - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &1162694775 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1162694771} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.18, g: 0.12, b: 0.14, a: 0.95} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1162694776 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1162694771} - m_CullTransparentMesh: 1 ---- !u!1 &1174929048 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1174929049} - - component: {fileID: 1174929053} - - component: {fileID: 1174929052} - - component: {fileID: 1174929051} - - component: {fileID: 1174929050} - m_Layer: 0 - m_Name: Button_Quit - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1174929049 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1174929048} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1747080790} - m_Father: {fileID: 770273318} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1174929050 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1174929048} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 62 - m_PreferredWidth: -1 - m_PreferredHeight: 62 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &1174929051 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1174929048} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 0.18, g: 0.08, b: 0.1, a: 0.9} - m_HighlightedColor: {r: 0.55, g: 0.16, b: 0.22, a: 1} - m_PressedColor: {r: 0.1, g: 0.04, b: 0.06, a: 1} - m_SelectedColor: {r: 0.55, g: 0.16, b: 0.22, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.12 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1174929052} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1934016257} - m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp - m_MethodName: QuitGame - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &1174929052 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1174929048} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.18, g: 0.08, b: 0.1, a: 0.9} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1174929053 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1174929048} - m_CullTransparentMesh: 1 ---- !u!1 &1206250967 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1206250968} - - component: {fileID: 1206250970} - - component: {fileID: 1206250969} - m_Layer: 0 - m_Name: Arrow - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1206250968 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1206250967} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 122623569} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: -15, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1206250969 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1206250967} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1206250970 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1206250967} - m_CullTransparentMesh: 1 ---- !u!1 &1275212687 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1275212688} - - component: {fileID: 1275212690} - - component: {fileID: 1275212689} - m_Layer: 0 - m_Name: Fill - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1275212688 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1275212687} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 195917734} + - {fileID: 1100054923} + - {fileID: 1898873718} + m_Father: {fileID: 1908515134} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1275212689 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1275212687} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1275212690 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1275212687} - m_CullTransparentMesh: 1 ---- !u!1 &1278017386 +--- !u!1 &1383599965 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -4778,10 +4619,10 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1278017387} - - component: {fileID: 1278017390} - - component: {fileID: 1278017389} - - component: {fileID: 1278017388} + - component: {fileID: 1383599966} + - component: {fileID: 1383599969} + - component: {fileID: 1383599968} + - component: {fileID: 1383599967} m_Layer: 0 m_Name: Scrollbar m_TagString: Untagged @@ -4789,33 +4630,33 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1278017387 +--- !u!224 &1383599966 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1278017386} + m_GameObject: {fileID: 1383599965} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 726704211} - m_Father: {fileID: 647772572} + - {fileID: 1472728059} + m_Father: {fileID: 576255634} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 1, y: 1} ---- !u!114 &1278017388 +--- !u!114 &1383599967 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1278017386} + m_GameObject: {fileID: 1383599965} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} @@ -4849,8 +4690,8 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 1925115966} - m_HandleRect: {fileID: 1925115965} + m_TargetGraphic: {fileID: 1993745639} + m_HandleRect: {fileID: 1993745638} m_Direction: 2 m_Value: 0 m_Size: 0.2 @@ -4858,13 +4699,13 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: [] ---- !u!114 &1278017389 +--- !u!114 &1383599968 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1278017386} + m_GameObject: {fileID: 1383599965} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -4888,15 +4729,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1278017390 +--- !u!222 &1383599969 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1278017386} + m_GameObject: {fileID: 1383599965} m_CullTransparentMesh: 1 ---- !u!1 &1365698209 +--- !u!1 &1417098981 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -4904,1495 +4745,9 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1365698210} - - component: {fileID: 1365698212} - - component: {fileID: 1365698211} - m_Layer: 0 - m_Name: Slider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1365698210 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1365698209} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 720986363} - - {fileID: 140769736} - - {fileID: 2064228} - m_Father: {fileID: 1847879371} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -21} - m_SizeDelta: {x: 160, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1365698211 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1365698209} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 360 - m_MinHeight: -1 - m_PreferredWidth: 360 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &1365698212 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1365698209} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Slider - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1744349203} - m_FillRect: {fileID: 1541304796} - m_HandleRect: {fileID: 1744349202} - m_Direction: 0 - m_MinValue: 0.2 - m_MaxValue: 3 - m_WholeNumbers: 0 - m_Value: 1 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &1368536051 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1368536052} - - component: {fileID: 1368536054} - - component: {fileID: 1368536053} - m_Layer: 0 - m_Name: Background_Dark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1368536052 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1368536051} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1368536053 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1368536051} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.025, g: 0.04, b: 0.065, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1368536054 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1368536051} - m_CullTransparentMesh: 1 ---- !u!1 &1390111609 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1390111610} - - component: {fileID: 1390111612} - - component: {fileID: 1390111611} - m_Layer: 0 - m_Name: Item Checkmark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1390111610 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390111609} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 313363003} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.5} - m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 10, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1390111611 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390111609} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1390111612 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390111609} - m_CullTransparentMesh: 1 ---- !u!1 &1390812850 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1390812851} - - component: {fileID: 1390812853} - - component: {fileID: 1390812852} - m_Layer: 0 - m_Name: Loading_Title - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1390812851 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390812850} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1028437931} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.6} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1390812852 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390812850} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 28 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: "\u0417\u0410\u0413\u0420\u0423\u0417\u041A\u0410 \u041C\u0418\u0421\u0421\u0418\u0418..." ---- !u!222 &1390812853 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1390812850} - m_CullTransparentMesh: 1 ---- !u!1 &1404926833 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1404926834} - - component: {fileID: 1404926836} - - component: {fileID: 1404926835} - m_Layer: 0 - m_Name: Fill - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1404926834 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1404926833} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1819305651} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1404926835 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1404926833} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1404926836 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1404926833} - m_CullTransparentMesh: 1 ---- !u!1 &1428280758 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1428280759} - - component: {fileID: 1428280762} - - component: {fileID: 1428280761} - - component: {fileID: 1428280760} - m_Layer: 0 - m_Name: Viewport - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1428280759 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1428280758} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1798997871} - m_Father: {fileID: 647772572} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -18, y: 0} - m_Pivot: {x: 0, y: 1} ---- !u!114 &1428280760 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1428280758} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Mask - m_ShowMaskGraphic: 0 ---- !u!114 &1428280761 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1428280758} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1428280762 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1428280758} - m_CullTransparentMesh: 1 ---- !u!1 &1446752194 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1446752195} - - component: {fileID: 1446752197} - - component: {fileID: 1446752196} - m_Layer: 0 - m_Name: Settings_Divider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1446752195 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1446752194} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 431614395} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.05, y: 0.89} - m_AnchorMax: {x: 0.95, y: 0.895} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1446752196 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1446752194} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.35} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1446752197 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1446752194} - m_CullTransparentMesh: 1 ---- !u!1 &1513288350 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1513288351} - - component: {fileID: 1513288355} - - component: {fileID: 1513288354} - - component: {fileID: 1513288353} - - component: {fileID: 1513288352} - m_Layer: 0 - m_Name: Button_Back - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1513288351 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1513288350} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 958196734} - m_Father: {fileID: 466622501} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 614.69995, y: -32.399994} - m_SizeDelta: {x: 389.8, y: 64.79999} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1513288352 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1513288350} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 50 - m_PreferredWidth: -1 - m_PreferredHeight: 50 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &1513288353 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1513288350} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 0.08, g: 0.22, b: 0.3, a: 0.95} - m_HighlightedColor: {r: 0, g: 0.65, b: 0.85, a: 1} - m_PressedColor: {r: 0.05, g: 0.14, b: 0.2, a: 1} - m_SelectedColor: {r: 0, g: 0.65, b: 0.85, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.12 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 1513288354} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1934016257} - m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp - m_MethodName: CloseSettings - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &1513288354 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1513288350} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.08, g: 0.22, b: 0.3, a: 0.95} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1513288355 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1513288350} - m_CullTransparentMesh: 1 ---- !u!1 &1541304795 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1541304796} - - component: {fileID: 1541304798} - - component: {fileID: 1541304797} - m_Layer: 0 - m_Name: Fill - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1541304796 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1541304795} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 140769736} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0.2857143, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 10, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1541304797 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1541304795} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1541304798 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1541304795} - m_CullTransparentMesh: 1 ---- !u!1 &1553759681 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1553759682} - - component: {fileID: 1553759683} - - component: {fileID: 1553759684} - m_Layer: 0 - m_Name: Loading_Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1553759682 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553759681} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1028437931} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0.3} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1553759683 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553759681} - m_CullTransparentMesh: 1 ---- !u!114 &1553759684 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1553759681} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.8, g: 0.9, b: 1, a: 0.9} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: 0% ---- !u!1 &1614174431 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1614174432} - m_Layer: 0 - m_Name: Header_Container - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1614174432 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1614174431} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1104096925} - - {fileID: 1871766106} - - {fileID: 1753562160} - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.08, y: 0.64} - m_AnchorMax: {x: 0.55, y: 0.9} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1620894682 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1620894683} - - component: {fileID: 1620894685} - - component: {fileID: 1620894684} - m_Layer: 0 - m_Name: Checkmark - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1620894683 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1620894682} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 404883535} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1620894684 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1620894682} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1620894685 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1620894682} - m_CullTransparentMesh: 1 ---- !u!1 &1627704735 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1627704736} - - component: {fileID: 1627704738} - - component: {fileID: 1627704737} - - component: {fileID: 1627704739} - m_Layer: 0 - m_Name: ValueText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1627704736 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1627704735} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 341736391} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 521, y: -21} - m_SizeDelta: {x: 90, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1627704737 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1627704735} - m_CullTransparentMesh: 1 ---- !u!114 &1627704738 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1627704735} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 90 - m_MinHeight: -1 - m_PreferredWidth: 90 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &1627704739 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1627704735} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: 100% ---- !u!1 &1644576010 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1644576011} - - component: {fileID: 1644576012} - m_Layer: 0 - m_Name: Settings_List - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1644576011 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1644576010} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 620756160} - - {fileID: 341736391} - - {fileID: 307602168} - - {fileID: 1993881766} - - {fileID: 1830551284} - - {fileID: 2052515649} - - {fileID: 1823235902} - - {fileID: 45339538} - - {fileID: 1847879371} - m_Father: {fileID: 431614395} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.06, y: 0.14} - m_AnchorMax: {x: 0.94, y: 0.87} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1644576012 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1644576010} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.VerticalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 1 - m_Spacing: 16 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!1 &1727153849 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1727153852} - - component: {fileID: 1727153851} - - component: {fileID: 1727153850} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1727153850 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1727153849} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3} - m_Name: - m_EditorClassIdentifier: Unity.InputSystem::UnityEngine.InputSystem.UI.InputSystemUIInputModule - m_SendPointerHoverToParent: 1 - m_MoveRepeatDelay: 0.5 - m_MoveRepeatRate: 0.1 - m_XRTrackingOrigin: {fileID: 0} - m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_DeselectOnBackgroundClick: 1 - m_PointerBehavior: 0 - m_CursorLockBehavior: 0 - m_ScrollDeltaPerTick: 6 ---- !u!114 &1727153851 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1727153849} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.EventSystems.EventSystem - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 ---- !u!4 &1727153852 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1727153849} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1739000157 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1739000158} - - component: {fileID: 1739000160} - - component: {fileID: 1739000159} - m_Layer: 0 - m_Name: Backdrop_Dim - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1739000158 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1739000157} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1762560493} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1739000159 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1739000157} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.01, g: 0.02, b: 0.03, a: 0.78} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1739000160 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1739000157} - m_CullTransparentMesh: 1 ---- !u!1 &1744349201 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1744349202} - - component: {fileID: 1744349204} - - component: {fileID: 1744349203} - m_Layer: 0 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1744349202 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1744349201} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2064228} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.2857143, y: 0} - m_AnchorMax: {x: 0.2857143, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1744349203 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1744349201} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1744349204 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1744349201} - m_CullTransparentMesh: 1 ---- !u!1 &1747080789 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1747080790} - - component: {fileID: 1747080792} - - component: {fileID: 1747080791} - m_Layer: 0 - m_Name: Text (Legacy) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1747080790 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1747080789} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1174929049} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1747080791 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1747080789} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.95, g: 0.85, b: 0.85, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 22 - m_FontStyle: 1 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u2716 \u0412\u042B\u0425\u041E\u0414 \u0418\u0417 \u0418\u0413\u0420\u042B" ---- !u!222 &1747080792 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1747080789} - m_CullTransparentMesh: 1 ---- !u!1 &1749250127 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1749250128} - - component: {fileID: 1749250130} - - component: {fileID: 1749250129} + - component: {fileID: 1417098982} + - component: {fileID: 1417098984} + - component: {fileID: 1417098983} m_Layer: 0 m_Name: Label m_TagString: Untagged @@ -6400,32 +4755,32 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1749250128 +--- !u!224 &1417098982 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1749250127} + m_GameObject: {fileID: 1417098981} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 122623569} + m_Father: {fileID: 1941764196} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -7.5, y: -0.5} m_SizeDelta: {x: -35, y: -13} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1749250129 +--- !u!114 &1417098983 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1749250127} + m_GameObject: {fileID: 1417098981} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} @@ -6453,15 +4808,15 @@ MonoBehaviour: m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Option A ---- !u!222 &1749250130 +--- !u!222 &1417098984 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1749250127} + m_GameObject: {fileID: 1417098981} m_CullTransparentMesh: 1 ---- !u!1 &1753562159 +--- !u!1 &1422934958 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -6469,270 +4824,8 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1753562160} - - component: {fileID: 1753562162} - - component: {fileID: 1753562161} - m_Layer: 0 - m_Name: Header_Divider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1753562160 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1753562159} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1614174432} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.02} - m_AnchorMax: {x: 0.85, y: 0.05} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1753562161 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1753562159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.45} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1753562162 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1753562159} - m_CullTransparentMesh: 1 ---- !u!1 &1762560492 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1762560493} - m_Layer: 0 - m_Name: SettingsPanel - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &1762560493 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1762560492} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1739000158} - - {fileID: 431614395} - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1763149195 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1763149196} - - component: {fileID: 1763149198} - - component: {fileID: 1763149197} - m_Layer: 0 - m_Name: Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1763149196 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1763149195} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1790482024} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1763149197 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1763149195} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1763149198 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1763149195} - m_CullTransparentMesh: 1 ---- !u!1 &1771129747 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1771129748} - - component: {fileID: 1771129750} - - component: {fileID: 1771129749} - m_Layer: 0 - m_Name: Decor_Tint - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1771129748 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1771129747} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2075058634} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1771129749 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1771129747} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.45, b: 0.6, a: 0.06} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1771129750 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1771129747} - m_CullTransparentMesh: 1 ---- !u!1 &1790482023 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1790482024} - - component: {fileID: 1790482025} + - component: {fileID: 1422934959} + - component: {fileID: 1422934960} m_Layer: 0 m_Name: Loading_ProgressBar m_TagString: Untagged @@ -6740,35 +4833,35 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1790482024 +--- !u!224 &1422934959 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790482023} + m_GameObject: {fileID: 1422934958} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1763149196} - - {fileID: 1819305651} - - {fileID: 2109719149} - m_Father: {fileID: 1028437931} + - {fileID: 558388186} + - {fileID: 607136697} + - {fileID: 2002801080} + m_Father: {fileID: 25234449} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.05, y: 0.35} - m_AnchorMax: {x: 0.95, y: 0.55} + m_AnchorMin: {x: 0.05, y: 0.38} + m_AnchorMax: {x: 0.95, y: 0.52} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1790482025 +--- !u!114 &1422934960 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1790482023} + m_GameObject: {fileID: 1422934958} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} @@ -6802,9 +4895,9 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 0 - m_TargetGraphic: {fileID: 994563261} - m_FillRect: {fileID: 1404926834} - m_HandleRect: {fileID: 994563260} + m_TargetGraphic: {fileID: 275948024} + m_FillRect: {fileID: 756788801} + m_HandleRect: {fileID: 275948023} m_Direction: 0 m_MinValue: 0 m_MaxValue: 1 @@ -6813,7 +4906,7 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: [] ---- !u!1 &1798997870 +--- !u!1 &1435542203 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -6821,462 +4914,162 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1798997871} + - component: {fileID: 1435542204} + - component: {fileID: 1435542210} + - component: {fileID: 1435542209} + - component: {fileID: 1435542208} + - component: {fileID: 1435542207} + - component: {fileID: 1435542206} + - component: {fileID: 1435542205} m_Layer: 0 - m_Name: Content + m_Name: Button_Settings m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1798997871 +--- !u!224 &1435542204 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1798997870} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 28794174} - m_Father: {fileID: 1428280759} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 28} - m_Pivot: {x: 0.5, y: 1} ---- !u!1 &1819305650 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1819305651} - m_Layer: 0 - m_Name: Fill Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1819305651 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1819305650} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1404926834} - m_Father: {fileID: 1790482024} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.25} - m_AnchorMax: {x: 1, y: 0.75} - m_AnchoredPosition: {x: -5, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1823235901 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1823235902} - - component: {fileID: 1823235904} - - component: {fileID: 1823235903} - m_Layer: 0 - m_Name: Row_Resolution - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1823235902 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1823235901} + m_GameObject: {fileID: 1435542203} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 80711975} - - {fileID: 122623569} - m_Father: {fileID: 1644576011} + - {fileID: 1559811257} + m_Father: {fileID: 1187567539} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -348} - m_SizeDelta: {x: 809.6, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1823235903 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1823235901} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &1823235904 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1823235901} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 44 - m_PreferredWidth: -1 - m_PreferredHeight: 44 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &1830551283 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1830551284} - - component: {fileID: 1830551286} - - component: {fileID: 1830551285} - m_Layer: 0 - m_Name: Row_Quality - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1830551284 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1830551283} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1049063478} - - {fileID: 2031144558} - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -232} - m_SizeDelta: {x: 809.6, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1830551285 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1830551283} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &1830551286 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1830551283} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 44 - m_PreferredWidth: -1 - m_PreferredHeight: 44 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &1847879370 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1847879371} - - component: {fileID: 1847879373} - - component: {fileID: 1847879372} - m_Layer: 0 - m_Name: Row_Sensitivity - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1847879371 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1847879370} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2040403456} - - {fileID: 1365698210} - - {fileID: 1115523620} - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -455} - m_SizeDelta: {x: 809.6, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1847879372 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1847879370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &1847879373 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1847879370} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 42 - m_PreferredWidth: -1 - m_PreferredHeight: 42 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &1871766105 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1871766106} - - component: {fileID: 1871766108} - - component: {fileID: 1871766107} - m_Layer: 0 - m_Name: Subtitle_Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1871766106 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1871766105} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1614174432} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.12} - m_AnchorMax: {x: 1, y: 0.4} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1871766107 +--- !u!114 &1435542205 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1871766105} + m_GameObject: {fileID: 1435542203} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.85} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 16 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 1 - m_LineSpacing: 1 - m_Text: "\u0422\u0410\u041A\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0419 \u0421\u0422\u0415\u041B\u0421-\u042D\u041A\u0428\u0415\u041D \u2022 \u0421\u0415\u041A\u0420\u0415\u0422\u041D\u042B\u0419 \u041E\u0411\u042A\u0415\u041A\u0422" ---- !u!222 &1871766108 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1871766105} - m_CullTransparentMesh: 1 ---- !u!1 &1925115964 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1925115965} - - component: {fileID: 1925115967} - - component: {fileID: 1925115966} - m_Layer: 0 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1925115965 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1925115964} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 726704211} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0.2} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1925115966 + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 3, y: -3} + m_UseGraphicAlpha: 1 +--- !u!114 &1435542206 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1925115964} + m_GameObject: {fileID: 1435542203} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.95, b: 0.6, a: 0.7} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &1435542207 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1435542203} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 90 + m_PreferredWidth: -1 + m_PreferredHeight: 90 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!114 &1435542208 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1435542203} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_HighlightedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_PressedColor: {r: 0.78, g: 0.62, b: 0.08, a: 1} + m_SelectedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.12 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1435542209} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 424662873} + m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp + m_MethodName: OpenSettings + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &1435542209 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1435542203} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.95, g: 0.78, b: 0.12, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -7293,15 +5086,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1925115967 +--- !u!222 &1435542210 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1925115964} + m_GameObject: {fileID: 1435542203} m_CullTransparentMesh: 1 ---- !u!1 &1934016256 +--- !u!1 &1472728058 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7309,94 +5102,35 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1934016258} - - component: {fileID: 1934016257} + - component: {fileID: 1472728059} m_Layer: 0 - m_Name: MainMenuManager + m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!114 &1934016257 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1934016256} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 184bffc58f97dd54b96740a6289afda6, type: 3} - m_Name: - m_EditorClassIdentifier: Assembly-CSharp::MainMenuManager - mainMenuPanel: {fileID: 770273317} - headerContainer: {fileID: 1614174431} - settingsPanel: {fileID: 1762560492} - loadingPanel: {fileID: 255538500} - gameSceneName: SampleScene - loadingSlider: {fileID: 1790482025} - loadingText: {fileID: 1553759684} - volumeSlider: {fileID: 695073363} - volumeValueText: {fileID: 1627704739} - muteToggle: {fileID: 154381598} - qualityDropdown: {fileID: 2031144562} - fullscreenToggle: {fileID: 377092547} - resolutionDropdown: {fileID: 122623573} - sensitivitySlider: {fileID: 1365698212} - sensitivityValueText: {fileID: 1115523617} ---- !u!4 &1934016258 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1934016256} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1937732877 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1937732878} - m_Layer: 0 - m_Name: Handle Slide Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1937732878 +--- !u!224 &1472728059 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1937732877} + m_GameObject: {fileID: 1472728058} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1976303570} - m_Father: {fileID: 695073361} + - {fileID: 1993745638} + m_Father: {fileID: 1383599966} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: 0} + m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &1949182649 +--- !u!1 &1495143804 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7404,101 +5138,35 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1949182650} - - component: {fileID: 1949182653} - - component: {fileID: 1949182652} - - component: {fileID: 1949182651} + - component: {fileID: 1495143805} m_Layer: 0 - m_Name: Label + m_Name: Content m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1949182650 +--- !u!224 &1495143805 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1949182649} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 1495143804} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 341736391} + m_Children: + - {fileID: 1840484421} + m_Father: {fileID: 2119819753} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -21} - m_SizeDelta: {x: 280, y: 42} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1949182651 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1949182649} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text - m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 3 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: "\u041E\u0431\u0449\u0430\u044F \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C" ---- !u!222 &1949182652 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1949182649} - m_CullTransparentMesh: 1 ---- !u!114 &1949182653 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1949182649} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &1952669711 + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 28} + m_Pivot: {x: 0.5, y: 1} +--- !u!1 &1529474257 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7506,57 +5174,42 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1952669712} - - component: {fileID: 1952669715} - - component: {fileID: 1952669714} - - component: {fileID: 1952669713} + - component: {fileID: 1529474258} + - component: {fileID: 1529474260} + - component: {fileID: 1529474259} m_Layer: 0 - m_Name: Viewport + m_Name: Arrow m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1952669712 +--- !u!224 &1529474258 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1952669711} + m_GameObject: {fileID: 1529474257} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2112506985} - m_Father: {fileID: 971459724} + m_Children: [] + m_Father: {fileID: 1941764196} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -18, y: 0} - m_Pivot: {x: 0, y: 1} ---- !u!114 &1952669713 + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: -15, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1529474259 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1952669711} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Mask - m_ShowMaskGraphic: 0 ---- !u!114 &1952669714 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1952669711} + m_GameObject: {fileID: 1529474257} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -7570,7 +5223,195 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1529474260 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1529474257} + m_CullTransparentMesh: 1 +--- !u!1 &1544822213 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1544822214} + - component: {fileID: 1544822220} + - component: {fileID: 1544822219} + - component: {fileID: 1544822218} + - component: {fileID: 1544822217} + - component: {fileID: 1544822216} + - component: {fileID: 1544822215} + m_Layer: 0 + m_Name: Button_Play + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1544822214 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 359650859} + m_Father: {fileID: 1187567539} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1544822215 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Shadow + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 3, y: -3} + m_UseGraphicAlpha: 1 +--- !u!114 &1544822216 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.95, b: 0.6, a: 0.7} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &1544822217 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 90 + m_PreferredWidth: -1 + m_PreferredHeight: 90 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!114 &1544822218 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_HighlightedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_PressedColor: {r: 0.78, g: 0.62, b: 0.08, a: 1} + m_SelectedColor: {r: 1, g: 0.9, b: 0.35, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.12 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1544822219} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 424662873} + m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp + m_MethodName: PlayGame + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &1544822219 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1544822213} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.95, g: 0.78, b: 0.12, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 @@ -7580,15 +5421,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1952669715 +--- !u!222 &1544822220 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1952669711} + m_GameObject: {fileID: 1544822213} m_CullTransparentMesh: 1 ---- !u!1 &1976303569 +--- !u!1 &1559811256 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7596,9 +5437,242 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1976303570} - - component: {fileID: 1976303572} - - component: {fileID: 1976303571} + - component: {fileID: 1559811257} + - component: {fileID: 1559811259} + - component: {fileID: 1559811258} + m_Layer: 0 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1559811257 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1559811256} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1435542204} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1559811258 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1559811256} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.06, g: 0.06, b: 0.06, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 34 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u041D\u0410\u0421\u0422\u0420\u041E\u0419\u041A\u0418" +--- !u!222 &1559811259 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1559811256} + m_CullTransparentMesh: 1 +--- !u!1 &1573194000 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1573194001} + - component: {fileID: 1573194003} + - component: {fileID: 1573194002} + m_Layer: 0 + m_Name: Radar_ReticleInner + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1573194001 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1573194000} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 476238123} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 90, y: 90} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1573194002 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1573194000} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.08} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1573194003 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1573194000} + m_CullTransparentMesh: 1 +--- !u!1 &1593550058 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1593550059} + - component: {fileID: 1593550061} + - component: {fileID: 1593550060} + m_Layer: 0 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1593550059 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1593550058} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2135189238} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.4, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1593550060 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1593550058} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0433\u0440\u0430\u0444\u0438\u043A\u0438" +--- !u!222 &1593550061 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1593550058} + m_CullTransparentMesh: 1 +--- !u!1 &1608933624 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1608933625} + - component: {fileID: 1608933627} + - component: {fileID: 1608933626} m_Layer: 0 m_Name: Handle m_TagString: Untagged @@ -7606,32 +5680,32 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1976303570 +--- !u!224 &1608933625 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1976303569} + m_GameObject: {fileID: 1608933624} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1937732878} + m_Father: {fileID: 656081540} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1976303571 +--- !u!114 &1608933626 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1976303569} + m_GameObject: {fileID: 1608933624} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -7655,15 +5729,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1976303572 +--- !u!222 &1608933627 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1976303569} + m_GameObject: {fileID: 1608933624} m_CullTransparentMesh: 1 ---- !u!1 &1993881765 +--- !u!1 &1612935438 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7671,50 +5745,221 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1993881766} - - component: {fileID: 1993881769} - - component: {fileID: 1993881768} - - component: {fileID: 1993881767} + - component: {fileID: 1612935439} + - component: {fileID: 1612935440} m_Layer: 0 - m_Name: HEADER_GRAPHICS + m_Name: Row_Volume m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1993881766 +--- !u!224 &1612935439 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1993881765} + m_GameObject: {fileID: 1612935438} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1644576011} + m_Children: + - {fileID: 2143631260} + - {fileID: 1916965278} + - {fileID: 330704469} + m_Father: {fileID: 529391614} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -178} - m_SizeDelta: {x: 809.6, y: 32} + m_AnchoredPosition: {x: 404.8, y: -69} + m_SizeDelta: {x: 809.6, y: 44} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1993881767 +--- !u!114 &1612935440 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1993881765} + m_GameObject: {fileID: 1612935438} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 44 + m_PreferredWidth: -1 + m_PreferredHeight: 44 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &1622998063 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1622998064} + - component: {fileID: 1622998066} + - component: {fileID: 1622998065} + m_Layer: 0 + m_Name: Fill + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1622998064 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1622998063} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 297772531} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.2857143, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 10, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1622998065 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1622998063} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1622998066 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1622998063} + m_CullTransparentMesh: 1 +--- !u!1 &1639958733 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1639958734} + m_Layer: 0 + m_Name: Fill Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1639958734 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1639958733} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1125765757} + m_Father: {fileID: 1916965278} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.25} + m_AnchorMax: {x: 1, y: 0.75} + m_AnchoredPosition: {x: -5, y: 0} + m_SizeDelta: {x: -20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1655984482 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1655984483} + - component: {fileID: 1655984485} + - component: {fileID: 1655984484} + m_Layer: 0 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1655984483 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1655984482} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 875537322} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1655984484 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1655984482} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.85, b: 0.95, a: 0.95} + m_Color: {r: 0.06, g: 0.06, b: 0.06, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -7723,49 +5968,27 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 17 + m_FontSize: 34 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 - m_Alignment: 3 + m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: "\u2014 \u0413\u0420\u0410\u0424\u0418\u041A\u0410 \u0418 \u0414\u0418\u0421\u041F\u041B\u0415\u0419 \u2014" ---- !u!222 &1993881768 + m_Text: "\u0412\u042B\u0425\u041E\u0414" +--- !u!222 &1655984485 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1993881765} + m_GameObject: {fileID: 1655984482} m_CullTransparentMesh: 1 ---- !u!114 &1993881769 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1993881765} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 32 - m_PreferredWidth: -1 - m_PreferredHeight: 32 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &2014975974 +--- !u!1 &1663496839 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7773,105 +5996,75 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2014975975} + - component: {fileID: 1663496840} + - component: {fileID: 1663496843} + - component: {fileID: 1663496842} + - component: {fileID: 1663496841} m_Layer: 0 - m_Name: Sliding Area + m_Name: Template m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2014975975 + m_IsActive: 0 +--- !u!224 &1663496840 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2014975974} + m_GameObject: {fileID: 1663496839} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 167590331} - m_Father: {fileID: 783861095} + - {fileID: 2119819753} + - {fileID: 443381732} + m_Father: {fileID: 178114037} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &2031144557 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2031144558} - - component: {fileID: 2031144561} - - component: {fileID: 2031144560} - - component: {fileID: 2031144562} - - component: {fileID: 2031144559} - m_Layer: 0 - m_Name: Dropdown - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2031144558 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2031144557} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 583476199} - - {fileID: 502912705} - - {fileID: 647772572} - m_Father: {fileID: 1830551284} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 378, y: -22} - m_SizeDelta: {x: 160, y: 44} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2031144559 + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 2} + m_SizeDelta: {x: 0, y: 150} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1663496841 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2031144557} + m_GameObject: {fileID: 1663496839} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 420 - m_MinHeight: -1 - m_PreferredWidth: 420 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &2031144560 + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.ScrollRect + m_Content: {fileID: 1495143805} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 2 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 2119819753} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 443381733} + m_HorizontalScrollbarVisibility: 0 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: 0 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1663496842 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2031144557} + m_GameObject: {fileID: 1663496839} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -7895,21 +6088,1342 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &2031144561 +--- !u!222 &1663496843 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2031144557} + m_GameObject: {fileID: 1663496839} m_CullTransparentMesh: 1 ---- !u!114 &2031144562 +--- !u!1 &1681551510 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1681551511} + - component: {fileID: 1681551513} + - component: {fileID: 1681551512} + m_Layer: 0 + m_Name: LoadingPanel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &1681551511 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1681551510} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 25234449} + m_Father: {fileID: 1908515134} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1681551512 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2031144557} + m_GameObject: {fileID: 1681551510} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0, b: 0, a: 0.98} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1681551513 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1681551510} + m_CullTransparentMesh: 1 +--- !u!1 &1731981653 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1731981656} + - component: {fileID: 1731981655} + - component: {fileID: 1731981654} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1731981654 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731981653} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3} + m_Name: + m_EditorClassIdentifier: Unity.InputSystem::UnityEngine.InputSystem.UI.InputSystemUIInputModule + m_SendPointerHoverToParent: 1 + m_MoveRepeatDelay: 0.5 + m_MoveRepeatRate: 0.1 + m_XRTrackingOrigin: {fileID: 0} + m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_DeselectOnBackgroundClick: 1 + m_PointerBehavior: 0 + m_CursorLockBehavior: 0 + m_ScrollDeltaPerTick: 6 +--- !u!114 &1731981655 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731981653} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.EventSystems.EventSystem + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1731981656 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1731981653} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1750226957 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1750226958} + - component: {fileID: 1750226960} + - component: {fileID: 1750226959} + m_Layer: 0 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1750226958 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1750226957} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 78569665} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.4, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1750226959 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1750226957} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u0427\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u043C\u044B\u0448\u0438" +--- !u!222 &1750226960 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1750226957} + m_CullTransparentMesh: 1 +--- !u!1 &1771691816 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1771691817} + - component: {fileID: 1771691819} + - component: {fileID: 1771691818} + m_Layer: 0 + m_Name: Item Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1771691817 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1771691816} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1840484421} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 10, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1771691818 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1771691816} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1771691819 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1771691816} + m_CullTransparentMesh: 1 +--- !u!1 &1772238059 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1772238060} + - component: {fileID: 1772238062} + - component: {fileID: 1772238061} + m_Layer: 0 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1772238060 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1772238059} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2129875647} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.7, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1772238061 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1772238059} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A (Mute)" +--- !u!222 &1772238062 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1772238059} + m_CullTransparentMesh: 1 +--- !u!1 &1804162763 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1804162764} + - component: {fileID: 1804162766} + - component: {fileID: 1804162765} + m_Layer: 0 + m_Name: Settings_Header + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1804162764 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1804162763} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1898873718} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.05, y: 0.9} + m_AnchorMax: {x: 0.95, y: 0.98} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1804162765 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1804162763} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 28 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u041D\u0410\u0421\u0422\u0420\u041E\u0419\u041A\u0418" +--- !u!222 &1804162766 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1804162763} + m_CullTransparentMesh: 1 +--- !u!1 &1840484420 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1840484421} + - component: {fileID: 1840484422} + m_Layer: 0 + m_Name: Item + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1840484421 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1840484420} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 479211099} + - {fileID: 1771691817} + - {fileID: 1003616528} + m_Father: {fileID: 1495143805} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1840484422 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1840484420} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Toggle + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 479211100} + toggleTransition: 1 + graphic: {fileID: 1771691818} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &1862835271 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1862835272} + - component: {fileID: 1862835273} + m_Layer: 0 + m_Name: Slider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1862835272 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1862835271} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1242909752} + - {fileID: 297772531} + - {fileID: 846395732} + m_Father: {fileID: 78569665} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.42, y: 0.2} + m_AnchorMax: {x: 0.82, y: 0.8} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1862835273 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1862835271} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Slider + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1226984058} + m_FillRect: {fileID: 1622998064} + m_HandleRect: {fileID: 1226984057} + m_Direction: 0 + m_MinValue: 0.2 + m_MaxValue: 3 + m_WholeNumbers: 0 + m_Value: 1 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &1875088190 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1875088191} + - component: {fileID: 1875088193} + - component: {fileID: 1875088192} + m_Layer: 0 + m_Name: Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1875088191 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1875088190} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2066219334} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1875088192 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1875088190} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1875088193 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1875088190} + m_CullTransparentMesh: 1 +--- !u!1 &1898873717 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1898873718} + - component: {fileID: 1898873721} + - component: {fileID: 1898873720} + - component: {fileID: 1898873719} + m_Layer: 0 + m_Name: Settings_Card + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1898873718 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1898873717} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1804162764} + - {fileID: 1050743706} + - {fileID: 529391614} + - {fileID: 2133450090} + m_Father: {fileID: 1333474035} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 920, y: 740} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1898873719 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1898873717} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.85, b: 0.1, a: 0.55} + m_EffectDistance: {x: 2, y: -2} + m_UseGraphicAlpha: 1 +--- !u!114 &1898873720 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1898873717} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.04, g: 0.04, b: 0.04, a: 0.98} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1898873721 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1898873717} + m_CullTransparentMesh: 1 +--- !u!1 &1907154268 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1907154269} + - component: {fileID: 1907154271} + - component: {fileID: 1907154270} + m_Layer: 0 + m_Name: Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1907154269 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1907154268} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1928592248} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1907154270 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1907154268} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1907154271 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1907154268} + m_CullTransparentMesh: 1 +--- !u!1 &1908515133 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1908515134} + - component: {fileID: 1908515137} + - component: {fileID: 1908515136} + - component: {fileID: 1908515135} + m_Layer: 0 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1908515134 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1908515133} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 887722895} + - {fileID: 476238123} + - {fileID: 898861345} + - {fileID: 1187567539} + - {fileID: 1333474035} + - {fileID: 1681551511} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &1908515135 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1908515133} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.GraphicRaycaster + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &1908515136 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1908515133} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.CanvasScaler + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1920, y: 1080} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0.5 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &1908515137 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1908515133} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 1 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 + m_UseReflectionProbes: 0 + m_AdditionalShaderChannelsFlag: 0 + m_UpdateRectTransformForStandalone: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!1 &1916965277 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1916965278} + - component: {fileID: 1916965279} + m_Layer: 0 + m_Name: Slider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1916965278 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1916965277} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 221418915} + - {fileID: 1639958734} + - {fileID: 656081540} + m_Father: {fileID: 1612935439} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.42, y: 0.2} + m_AnchorMax: {x: 0.82, y: 0.8} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1916965279 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1916965277} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Slider + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1608933626} + m_FillRect: {fileID: 1125765757} + m_HandleRect: {fileID: 1608933625} + m_Direction: 0 + m_MinValue: 0 + m_MaxValue: 1 + m_WholeNumbers: 0 + m_Value: 1 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &1925506857 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1925506858} + - component: {fileID: 1925506860} + - component: {fileID: 1925506859} + m_Layer: 0 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1925506858 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1925506857} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1066710315} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1925506859 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1925506857} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 18 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u0421\u0431\u0440\u043E\u0441" +--- !u!222 &1925506860 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1925506857} + m_CullTransparentMesh: 1 +--- !u!1 &1928592247 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1928592248} + - component: {fileID: 1928592250} + - component: {fileID: 1928592249} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1928592248 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1928592247} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1907154269} + m_Father: {fileID: 777803795} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 10, y: -10} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1928592249 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1928592247} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1928592250 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1928592247} + m_CullTransparentMesh: 1 +--- !u!1 &1941764195 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1941764196} + - component: {fileID: 1941764198} + - component: {fileID: 1941764197} + - component: {fileID: 1941764199} + m_Layer: 0 + m_Name: Dropdown + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1941764196 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1941764195} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1417098982} + - {fileID: 1529474258} + - {fileID: 576255634} + m_Father: {fileID: 49175961} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.42, y: 0.1} + m_AnchorMax: {x: 1, y: 0.9} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1941764197 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1941764195} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.12, g: 0.12, b: 0.12, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1941764198 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1941764195} + m_CullTransparentMesh: 1 +--- !u!114 &1941764199 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1941764195} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} @@ -7943,11 +7457,11 @@ MonoBehaviour: m_SelectedTrigger: Selected m_DisabledTrigger: Disabled m_Interactable: 1 - m_TargetGraphic: {fileID: 2031144560} - m_Template: {fileID: 647772572} - m_CaptionText: {fileID: 583476200} + m_TargetGraphic: {fileID: 1941764197} + m_Template: {fileID: 576255634} + m_CaptionText: {fileID: 1417098983} m_CaptionImage: {fileID: 0} - m_ItemText: {fileID: 26045770} + m_ItemText: {fileID: 2094966550} m_ItemImage: {fileID: 0} m_Value: 0 m_Options: @@ -7962,7 +7476,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] m_AlphaFadeSpeed: 0.15 ---- !u!1 &2040403455 +--- !u!1 &1993745637 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7970,50 +7484,161 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2040403456} - - component: {fileID: 2040403459} - - component: {fileID: 2040403458} - - component: {fileID: 2040403457} + - component: {fileID: 1993745638} + - component: {fileID: 1993745640} + - component: {fileID: 1993745639} m_Layer: 0 - m_Name: Label + m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2040403456 +--- !u!224 &1993745638 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2040403455} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 1993745637} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1847879371} + m_Father: {fileID: 1472728059} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -21} - m_SizeDelta: {x: 280, y: 42} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.2} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2040403457 +--- !u!114 &1993745639 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2040403455} + m_GameObject: {fileID: 1993745637} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1993745640 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1993745637} + m_CullTransparentMesh: 1 +--- !u!1 &2002801079 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2002801080} + m_Layer: 0 + m_Name: Handle Slide Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2002801080 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2002801079} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 275948023} + m_Father: {fileID: 1422934959} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &2040887085 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040887086} + - component: {fileID: 2040887089} + - component: {fileID: 2040887088} + - component: {fileID: 2040887087} + m_Layer: 0 + m_Name: HEADER_AUDIO + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040887086 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040887085} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -16} + m_SizeDelta: {x: 809.6, y: 32} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2040887087 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040887085} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.95} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -8022,7 +7647,184 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 + m_FontSize: 16 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u2014 \u0417\u0412\u0423\u041A \u0418 \u042D\u0425\u041E\u041B\u041E\u041A\u0410\u0426\u0418\u042F \u2014" +--- !u!222 &2040887088 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040887085} + m_CullTransparentMesh: 1 +--- !u!114 &2040887089 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040887085} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 32 + m_PreferredWidth: -1 + m_PreferredHeight: 32 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &2066219333 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2066219334} + - component: {fileID: 2066219336} + - component: {fileID: 2066219335} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2066219334 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066219333} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1875088191} + m_Father: {fileID: 1183264872} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 10, y: -10} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2066219335 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066219333} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2066219336 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066219333} + m_CullTransparentMesh: 1 +--- !u!1 &2094966548 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2094966549} + - component: {fileID: 2094966551} + - component: {fileID: 2094966550} + m_Layer: 0 + m_Name: Item Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2094966549 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2094966548} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1056505374} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: -0.5} + m_SizeDelta: {x: -30, y: -3} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2094966550 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2094966548} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 @@ -8033,38 +7835,16 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: "\u0427\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u043C\u044B\u0448\u0438" ---- !u!222 &2040403458 + m_Text: Option A +--- !u!222 &2094966551 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2040403455} + m_GameObject: {fileID: 2094966548} m_CullTransparentMesh: 1 ---- !u!114 &2040403459 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2040403455} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &2052515648 +--- !u!1 &2100556428 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8072,136 +7852,49 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2052515649} - - component: {fileID: 2052515651} - - component: {fileID: 2052515650} + - component: {fileID: 2100556429} + - component: {fileID: 2100556431} + - component: {fileID: 2100556430} m_Layer: 0 - m_Name: Row_Fullscreen + m_Name: Crosshair_V m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2052515649 +--- !u!224 &2100556429 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052515648} + m_GameObject: {fileID: 2100556428} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2102610180} - - {fileID: 377092545} - m_Father: {fileID: 1644576011} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 404.8, y: -290} - m_SizeDelta: {x: 809.6, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2052515650 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052515648} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 18 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &2052515651 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052515648} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 40 - m_PreferredWidth: -1 - m_PreferredHeight: 40 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &2052518883 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2052518884} - - component: {fileID: 2052518886} - - component: {fileID: 2052518885} - m_Layer: 0 - m_Name: Item Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2052518884 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052518883} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 313363003} + m_Father: {fileID: 476238123} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 1.5, y: 220} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2052518885 +--- !u!114 &2100556430 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052518883} + m_GameObject: {fileID: 2100556428} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.25} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -8218,15 +7911,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &2052518886 +--- !u!222 &2100556431 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2052518883} + m_GameObject: {fileID: 2100556428} m_CullTransparentMesh: 1 ---- !u!1 &2075058633 +--- !u!1 &2119819752 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8234,240 +7927,230 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2075058634} - - component: {fileID: 2075058637} - - component: {fileID: 2075058636} - - component: {fileID: 2075058635} + - component: {fileID: 2119819753} + - component: {fileID: 2119819756} + - component: {fileID: 2119819755} + - component: {fileID: 2119819754} m_Layer: 0 - m_Name: Canvas + m_Name: Viewport m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2075058634 +--- !u!224 &2119819753 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2075058633} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1368536052} - - {fileID: 1771129748} - - {fileID: 24896464} - - {fileID: 1088347072} - - {fileID: 1614174432} - - {fileID: 770273318} - - {fileID: 1762560493} - - {fileID: 255538501} - m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!114 &2075058635 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2075058633} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.GraphicRaycaster - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &2075058636 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2075058633} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.CanvasScaler - m_UiScaleMode: 1 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 1920, y: 1080} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0.5 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 - m_PresetInfoIsWorld: 0 ---- !u!223 &2075058637 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2075058633} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 1 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_VertexColorAlwaysGammaSpace: 0 - m_UseReflectionProbes: 0 - m_AdditionalShaderChannelsFlag: 0 - m_UpdateRectTransformForStandalone: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!1 &2086627767 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2086627768} - - component: {fileID: 2086627772} - - component: {fileID: 2086627771} - - component: {fileID: 2086627770} - - component: {fileID: 2086627769} - m_Layer: 0 - m_Name: Button_Settings - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2086627768 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086627767} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 2119819752} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 620129125} - m_Father: {fileID: 770273318} + - {fileID: 1495143805} + m_Father: {fileID: 1663496840} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2086627769 + m_SizeDelta: {x: -18, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &2119819754 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086627767} + m_GameObject: {fileID: 2119819752} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 62 - m_PreferredWidth: -1 - m_PreferredHeight: 62 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &2086627770 + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Mask + m_ShowMaskGraphic: 0 +--- !u!114 &2119819755 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086627767} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 0.07, g: 0.12, b: 0.18, a: 0.9} - m_HighlightedColor: {r: 0.18, g: 0.38, b: 0.52, a: 1} - m_PressedColor: {r: 0.04, g: 0.08, b: 0.12, a: 1} - m_SelectedColor: {r: 0.18, g: 0.38, b: 0.52, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.12 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 2086627771} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1934016257} - m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp - m_MethodName: OpenSettings - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &2086627771 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086627767} + m_GameObject: {fileID: 2119819752} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 0.07, g: 0.12, b: 0.18, a: 0.9} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2119819756 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2119819752} + m_CullTransparentMesh: 1 +--- !u!1 &2124938208 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2124938209} + - component: {fileID: 2124938212} + - component: {fileID: 2124938211} + - component: {fileID: 2124938210} + m_Layer: 0 + m_Name: Radar_ReticleOuter + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2124938209 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2124938208} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 476238123} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 180, y: 180} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2124938210 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2124938208} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Outline + m_EffectColor: {r: 1, g: 0.85, b: 0.1, a: 0.35} + m_EffectDistance: {x: 1.5, y: -1.5} + m_UseGraphicAlpha: 1 +--- !u!114 &2124938211 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2124938208} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.85, b: 0.1, a: 0.2} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2124938212 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2124938208} + m_CullTransparentMesh: 1 +--- !u!1 &2126875622 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2126875623} + - component: {fileID: 2126875625} + - component: {fileID: 2126875624} + m_Layer: 0 + m_Name: Handle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2126875623 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2126875622} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 20879442} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.2} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2126875624 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2126875622} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -8484,15 +8167,15 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!222 &2086627772 +--- !u!222 &2126875625 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2086627767} + m_GameObject: {fileID: 2126875622} m_CullTransparentMesh: 1 ---- !u!1 &2102610179 +--- !u!1 &2129875646 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8500,10 +8183,193 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2102610180} - - component: {fileID: 2102610183} - - component: {fileID: 2102610182} - - component: {fileID: 2102610181} + - component: {fileID: 2129875647} + - component: {fileID: 2129875648} + m_Layer: 0 + m_Name: Row_Mute + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2129875647 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2129875646} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1772238060} + - {fileID: 777803795} + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -126} + m_SizeDelta: {x: 809.6, y: 40} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2129875648 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2129875646} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 40 + m_PreferredWidth: -1 + m_PreferredHeight: 40 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &2133450089 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2133450090} + - component: {fileID: 2133450091} + m_Layer: 0 + m_Name: Settings_BottomButtons + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2133450090 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2133450089} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1066710315} + - {fileID: 172584974} + m_Father: {fileID: 1898873718} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.06, y: 0.03} + m_AnchorMax: {x: 0.94, y: 0.12} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2133450091 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2133450089} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.HorizontalLayoutGroup + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 4 + m_Spacing: 30 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &2135189237 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2135189238} + - component: {fileID: 2135189239} + m_Layer: 0 + m_Name: Row_Quality + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2135189238 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2135189237} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1593550059} + - {fileID: 178114037} + m_Father: {fileID: 529391614} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 404.8, y: -230} + m_SizeDelta: {x: 809.6, y: 44} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2135189239 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2135189237} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: 44 + m_PreferredWidth: -1 + m_PreferredHeight: 44 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 + m_MaxWidth: -1 + m_MaxHeight: -1 +--- !u!1 &2143631259 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2143631260} + - component: {fileID: 2143631262} + - component: {fileID: 2143631261} m_Layer: 0 m_Name: Label m_TagString: Untagged @@ -8511,39 +8377,39 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2102610180 +--- !u!224 &2143631260 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2102610179} + m_GameObject: {fileID: 2143631259} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 2052515649} + m_Father: {fileID: 1612935439} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 140, y: -20} - m_SizeDelta: {x: 280, y: 40} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.4, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2102610181 +--- !u!114 &2143631261 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2102610179} + m_GameObject: {fileID: 2143631259} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text m_Material: {fileID: 0} - m_Color: {r: 0.85, g: 0.92, b: 0.98, a: 1} + m_Color: {r: 0.92, g: 0.92, b: 0.92, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -8552,7 +8418,7 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 18 + m_FontSize: 16 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 @@ -8560,273 +8426,23 @@ MonoBehaviour: m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: "\u041F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C" ---- !u!222 &2102610182 + m_Text: "\u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0437\u0432\u0443\u043A\u0430" +--- !u!222 &2143631262 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2102610179} - m_CullTransparentMesh: 1 ---- !u!114 &2102610183 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2102610179} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: 280 - m_MinHeight: -1 - m_PreferredWidth: 280 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!1 &2109719148 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2109719149} - m_Layer: 0 - m_Name: Handle Slide Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2109719149 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2109719148} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 994563260} - m_Father: {fileID: 1790482024} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &2112506984 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2112506985} - m_Layer: 0 - m_Name: Content - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2112506985 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2112506984} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 313363003} - m_Father: {fileID: 1952669712} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 28} - m_Pivot: {x: 0.5, y: 1} ---- !u!1 &2134885863 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2134885864} - - component: {fileID: 2134885868} - - component: {fileID: 2134885867} - - component: {fileID: 2134885866} - - component: {fileID: 2134885865} - m_Layer: 0 - m_Name: Button_Play - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2134885864 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2134885863} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 112531608} - m_Father: {fileID: 770273318} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 30} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2134885865 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2134885863} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.LayoutElement - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: 66 - m_PreferredWidth: -1 - m_PreferredHeight: 66 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 - m_MaxWidth: -1 - m_MaxHeight: -1 ---- !u!114 &2134885866 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2134885863} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 0.08, g: 0.22, b: 0.32, a: 0.95} - m_HighlightedColor: {r: 0, g: 0.65, b: 0.85, a: 1} - m_PressedColor: {r: 0.04, g: 0.14, b: 0.22, a: 1} - m_SelectedColor: {r: 0, g: 0.65, b: 0.85, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.12 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 2134885867} - m_OnClick: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1934016257} - m_TargetAssemblyTypeName: MainMenuManager, Assembly-CSharp - m_MethodName: PlayGame - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &2134885867 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2134885863} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.08, g: 0.22, b: 0.32, a: 0.95} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &2134885868 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2134885863} + m_GameObject: {fileID: 2143631259} m_CullTransparentMesh: 1 --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 m_Roots: - - {fileID: 886053404} - - {fileID: 1727153852} - - {fileID: 2075058634} - - {fileID: 1934016258} + - {fileID: 1321778719} + - {fileID: 1731981656} + - {fileID: 1908515134} + - {fileID: 424662874} diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 281d04d..788cb6d 100644 Binary files a/Assets/Scenes/SampleScene.unity and b/Assets/Scenes/SampleScene.unity differ diff --git a/Assets/Scripts/BlindMutantAI.cs b/Assets/Scripts/BlindMutantAI.cs index 85f6852..b91fb36 100644 --- a/Assets/Scripts/BlindMutantAI.cs +++ b/Assets/Scripts/BlindMutantAI.cs @@ -17,17 +17,24 @@ public class BlindMutantAI : MonoBehaviour private float waitTimer = 0f; private int currentPatrolIndex; private bool isInvestigating = false; + private float investigationTimer = 0f; + + [Header("Режим охраны комнаты")] + [Tooltip("Если включено, мутант приписан к комнате и патрулирует строго ее, но реагирует на звуки снаружи")] + public bool isRoomConfined = false; [Header("Обнаружение игрока")] public float detectionRadius = 3.5f; // Радиус обостренных чувств (слух/запах в упор) public float losePlayerDistance = 14f; // Дистанция потери цели private Transform targetPlayer; private PlayerHealth targetPlayerHealth; + private EchoTrigger echoTrigger; + private float silentPlayerTimer = 0f; [Header("Настройки атаки")] public float attackRange = 1.8f; // Дистанция ближнего боя - public float attackDamage = 20f; // Урон за один удар - public float attackCooldown = 1.2f; // Кулдаун между ударами + public float attackDamage = 8f; // Урон за один удар (снижен с 20 для баланса) + public float attackCooldown = 1.35f; // Кулдаун между ударами private float nextAttackTime = 0f; void Start() @@ -36,6 +43,8 @@ public class BlindMutantAI : MonoBehaviour if (agent != null) { agent.speed = walkSpeed; + // Слегка варьируем приоритет избегания, чтобы мутанты уступали друг другу дорогу + agent.avoidancePriority = Random.Range(30, 70); // Если агент чуть выше пола или не на сетке, привязываем его к ближайшей точке NavMesh if (!agent.isOnNavMesh) @@ -56,12 +65,24 @@ public class BlindMutantAI : MonoBehaviour targetPlayerHealth = playerObj; } + if (echoTrigger == null) + { + echoTrigger = FindAnyObjectByType(); + } + // Если точки патрулирования не заданы или массив состоит из null, ищем PatrolWaypoints на сцене if (IsPatrolArrayEmptyOrNull()) { AutoAssignPatrolWaypoints(); } + // Рассинхронизируем начальные точки и таймеры, чтобы толпа мутантов не двигалась синхронно + if (patrolPoints != null && patrolPoints.Length > 0) + { + currentPatrolIndex = Random.Range(0, patrolPoints.Length); + } + waitTimer = Random.Range(0.2f, waitTimeAtPoint); + GoToNextPatrolPoint(); } @@ -114,6 +135,33 @@ public class BlindMutantAI : MonoBehaviour animator.SetFloat("Speed", currentSpeed); } + /// + /// Проверяет, стоит ли игрок неподвижно и без звуков (шейдер волн эхолокации не активен) + /// + public bool IsPlayerSilentAndStill() + { + if (echoTrigger == null) + { + echoTrigger = EchoTrigger.Instance != null ? EchoTrigger.Instance : FindAnyObjectByType(); + } + + if (echoTrigger != null) + { + return !echoTrigger.IsPlayerMakingNoise(); + } + + // Резервная проверка, если EchoTrigger не найден + if (targetPlayerHealth != null) + { + var cc = targetPlayerHealth.GetComponent(); + if (cc != null && cc.velocity.sqrMagnitude > 0.05f) return false; + var anim = targetPlayerHealth.GetComponentInChildren(); + if (anim != null && anim.GetBool("IsMoving")) return false; + } + + return true; + } + private void HandlePlayerChaseAndAttack() { if (agent == null || !agent.isOnNavMesh) return; @@ -124,6 +172,24 @@ public class BlindMutantAI : MonoBehaviour return; } + // Если игрок замер на месте и не издает звуков — слепой мутант не может его заметить и атаковать! + if (IsPlayerSilentAndStill()) + { + agent.isStopped = true; + silentPlayerTimer += Time.deltaTime; + + // Если игрок сохраняет тишину и неподвижность 0.8 секунды — мутант теряет цель и возвращается к патрулю + if (silentPlayerTimer >= 0.8f) + { + LosePlayerTarget(); + } + return; + } + else + { + silentPlayerTimer = 0f; + } + float distanceToPlayer = Vector3.Distance(transform.position, targetPlayer.position); // Игрок убежал слишком далеко @@ -174,6 +240,9 @@ public class BlindMutantAI : MonoBehaviour { if (targetPlayerHealth == null || targetPlayerHealth.IsDead) return; + // Если игрок стоит на месте и не издает звуков (нет волн эхолокации в шейдере) — слепой мутант его не замечает! + if (IsPlayerSilentAndStill()) return; + float distance = Vector3.Distance(transform.position, targetPlayerHealth.transform.position); if (distance <= detectionRadius) { @@ -185,11 +254,25 @@ public class BlindMutantAI : MonoBehaviour { if (agent == null || !agent.isOnNavMesh) return; - if (!agent.pathPending && agent.remainingDistance < 0.6f) + if (isInvestigating) + { + investigationTimer += Time.deltaTime; + // Защита от застревания: если не дошел до точки звука за 10 сек, возвращаемся к патрулю + if (investigationTimer >= 10f) + { + isInvestigating = false; + investigationTimer = 0f; + agent.speed = walkSpeed; + waitTimer = waitTimeAtPoint; + } + } + + if (!agent.pathPending && (agent.remainingDistance < 0.8f || !agent.hasPath)) { if (isInvestigating) { isInvestigating = false; + investigationTimer = 0f; agent.speed = walkSpeed; waitTimer = waitTimeAtPoint; } @@ -228,6 +311,7 @@ public class BlindMutantAI : MonoBehaviour private void LosePlayerTarget() { targetPlayer = null; + silentPlayerTimer = 0f; if (agent != null && agent.isOnNavMesh) { agent.isStopped = false; @@ -237,7 +321,7 @@ public class BlindMutantAI : MonoBehaviour waitTimer = 0f; GoToNextPatrolPoint(); - Debug.Log("Мутант потерял игрока и возвращается к патрулированию."); + Debug.Log("Мутант потерял игрока (игрок замер в тишине) и возвращается к патрулированию."); } private void GoToNextPatrolPoint() @@ -290,6 +374,7 @@ public class BlindMutantAI : MonoBehaviour if (agent == null || !agent.isOnNavMesh) return; isInvestigating = true; + investigationTimer = 0f; waitTimer = 0f; agent.isStopped = false; agent.speed = runSpeed; @@ -302,6 +387,7 @@ public class BlindMutantAI : MonoBehaviour { animator.SetTrigger("GetHit"); } + silentPlayerTimer = 0f; EngagePlayer(player); } diff --git a/Assets/Scripts/CameraFollow.cs b/Assets/Scripts/CameraFollow.cs index 7b68f4e..668214c 100644 --- a/Assets/Scripts/CameraFollow.cs +++ b/Assets/Scripts/CameraFollow.cs @@ -4,26 +4,59 @@ using UnityEngine.InputSystem; public class CameraFollow : MonoBehaviour { [Header("За кем следить")] - public Transform target; // Сюда перетащить игрока (Player) + public Transform target; // Ссылка на персонажа (Player) - [Header("Настройки орбиты")] - public float distance = 4.0f; // Дистанция от игрока - public float height = 1.5f; // Высота над игроком - public float mouseSensitivity = 10f; // Чувствительность мыши (в New Input System значения могут отличаться) + [Header("Настройки дистанции и зума")] + [Tooltip("Текущая дистанция камеры от игрока")] + public float distance = 2.4f; // Было 4.0 -> теперь 2.4 (персонаж ближе и крупнее) + [Tooltip("Минимальное приближение при зуме колесиком мыши")] + public float minDistance = 1.6f; + [Tooltip("Максимальное отдаление при зуме колесиком мыши")] + public float maxDistance = 4.0f; + [Tooltip("Скорость зума колесиком мыши")] + public float zoomSpeed = 0.4f; + + [Header("Позиционирование")] + [Tooltip("Высота камеры над игроком")] + public float height = 1.35f; + [Tooltip("Небольшое смещение вправо (плечевой вид от третьего лица)")] + public float shoulderOffset = 0.25f; + + [Header("Настройки обзора (Мышь)")] + public float mouseSensitivity = 10f; + public float minPitch = -40f; + public float maxPitch = 60f; + + [Header("Коллизия со стенами")] + [Tooltip("Предотвращает прохождение камеры сквозь стены бункера")] + public bool checkWallCollision = true; + public LayerMask collisionLayers = ~0; + public float collisionRadius = 0.2f; private float pitch = 0f; // Вращение вверх/вниз (X) private float yaw = 0f; // Вращение влево/вправо (Y) + private float currentDistance; void Start() { Vector3 angles = transform.eulerAngles; pitch = angles.x; yaw = angles.y; + currentDistance = distance; + + if (target == null) + { + var player = GameObject.FindWithTag("Player"); + if (player != null) target = player.transform; + } + + // Исключаем слой Ignore Raycast (слой 2) из проверки стен + collisionLayers &= ~(1 << 2); } void LateUpdate() { - if (target == null) return; + if (target == null || Time.timeScale == 0f) return; var mouse = Mouse.current; if (mouse != null) @@ -36,12 +69,41 @@ public class CameraFollow : MonoBehaviour pitch -= mouseDelta.y * sens * Time.deltaTime; // Ограничиваем угол наклона камеры - pitch = Mathf.Clamp(pitch, -40f, 60f); + pitch = Mathf.Clamp(pitch, minPitch, maxPitch); + + // Плавный зум колесиком мыши: игрок может сам отдалять/приближать камеру + float scroll = mouse.scroll.ReadValue().y; + if (Mathf.Abs(scroll) > 0.01f) + { + distance = Mathf.Clamp(distance - Mathf.Sign(scroll) * zoomSpeed, minDistance, maxDistance); + } } - // Вращаем и позиционируем камеру + // Вращаем камеру Quaternion rotation = Quaternion.Euler(pitch, yaw, 0f); - Vector3 position = target.position - (rotation * Vector3.forward * distance) + (Vector3.up * height); + + // Точка фокусировки над персонажем + Vector3 targetFocus = target.position + (Vector3.up * height); + + // Плечевое смещение + Vector3 rightOffset = rotation * Vector3.right * shoulderOffset; + Vector3 desiredOrigin = targetFocus + rightOffset; + + // Направление назад + Vector3 backDirection = -(rotation * Vector3.forward); + float targetDist = distance; + + // Коллизия со стенами: не даем камере заглядывать сквозь стены + if (checkWallCollision) + { + if (Physics.SphereCast(targetFocus, collisionRadius, backDirection, out RaycastHit hit, distance, collisionLayers, QueryTriggerInteraction.Ignore)) + { + targetDist = Mathf.Clamp(hit.distance - 0.1f, minDistance * 0.5f, distance); + } + } + + currentDistance = Mathf.Lerp(currentDistance, targetDist, Time.deltaTime * 15f); + Vector3 position = desiredOrigin + (backDirection * currentDistance); transform.position = position; transform.rotation = rotation; diff --git a/Assets/Scripts/DeathScreenUI.cs b/Assets/Scripts/DeathScreenUI.cs new file mode 100644 index 0000000..82420b2 --- /dev/null +++ b/Assets/Scripts/DeathScreenUI.cs @@ -0,0 +1,102 @@ +using System.Collections; +using UnityEngine; +using UnityEngine.UI; +using UnityEngine.SceneManagement; + +public class DeathScreenUI : MonoBehaviour +{ + public static DeathScreenUI Instance { get; private set; } + + [Header("Панель смерти")] + public GameObject deathPanel; + public CanvasGroup canvasGroup; + + [Header("Кнопки")] + public Button restartButton; + public Button mainMenuButton; + + [Header("Настройки")] + public float fadeDuration = 0.8f; + public string mainMenuSceneName = "MainMenu"; + + private bool isShown = false; + public bool IsShown => isShown; + + private void Awake() + { + if (Instance == null) Instance = this; + + if (deathPanel != null) + { + deathPanel.SetActive(false); + } + + if (restartButton != null) + { + restartButton.onClick.AddListener(RestartGame); + } + + if (mainMenuButton != null) + { + mainMenuButton.onClick.AddListener(ReturnToMainMenu); + } + } + + /// + /// Показывает экран смерти с плавным затемнением и открывает курсор + /// + public void ShowDeathScreen() + { + if (isShown) return; + isShown = true; + + if (deathPanel != null) + { + deathPanel.SetActive(true); + StartCoroutine(FadeInRoutine()); + } + + // Разблокируем курсор для кликов по кнопкам + Cursor.lockState = CursorLockMode.None; + Cursor.visible = true; + } + + private IEnumerator FadeInRoutine() + { + if (canvasGroup != null) + { + canvasGroup.alpha = 0f; + float elapsed = 0f; + while (elapsed < fadeDuration) + { + elapsed += Time.unscaledDeltaTime; + canvasGroup.alpha = Mathf.Clamp01(elapsed / fadeDuration); + yield return null; + } + canvasGroup.alpha = 1f; + } + } + + /// + /// Перезапускает текущую игровую сцену + /// + public void RestartGame() + { + Time.timeScale = 1f; + Cursor.lockState = CursorLockMode.Locked; + Cursor.visible = false; + Scene currentScene = SceneManager.GetActiveScene(); + SceneManager.LoadScene(currentScene.name); + } + + /// + /// Возвращает игрока в главное меню + /// + public void ReturnToMainMenu() + { + Time.timeScale = 1f; + Cursor.lockState = CursorLockMode.None; + Cursor.visible = true; + SceneManager.LoadScene(mainMenuSceneName); + } +} diff --git a/Assets/Scripts/DeathScreenUI.cs.meta b/Assets/Scripts/DeathScreenUI.cs.meta new file mode 100644 index 0000000..5157356 --- /dev/null +++ b/Assets/Scripts/DeathScreenUI.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d8c03c0ff699d124b8a325a9e342b7b2 \ No newline at end of file diff --git a/Assets/Scripts/EchoTrigger.cs b/Assets/Scripts/EchoTrigger.cs index f4e5286..cd41150 100644 --- a/Assets/Scripts/EchoTrigger.cs +++ b/Assets/Scripts/EchoTrigger.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; @@ -66,20 +67,61 @@ public class EchoTrigger : MonoBehaviour private int lastRightStepCycle = int.MinValue; private PlayerNoise playerNoise; + private readonly List allEchoMaterials = new List(); + void Awake() { if (Instance == null) Instance = this; } - void Start() + /// + /// Активна ли прямо сейчас хоть одна световая волна эхолокации (отрисовывается ли шейдер) + /// + public bool HasActiveWave { - if (echoMaterial != null) + get { for (int i = 0; i < MAX_WAVES; i++) { - echoMaterial.SetFloat("_EchoRadius" + (i + 1), 0f); - echoMaterial.SetFloat("_EchoOpacity" + (i + 1), 0f); + if (waveActive[i] && waveRadii[i] > 0.05f) return true; } + return false; + } + } + + /// + /// Издает ли игрок шум или движется ли он прямо сейчас (шаги, клавиши, активные волны) + /// + public bool IsPlayerMakingNoise() + { + // 1. Отрисовывается ли прямо сейчас волна эхолокации в шейдере + if (HasActiveWave) return true; + + // 2. Движется ли контроллер персонажа + if (characterController != null && characterController.velocity.sqrMagnitude > 0.05f) + return true; + + // 3. Активно ли перемещение в аниматоре + if (playerAnimator != null && playerAnimator.GetBool("IsMoving")) + return true; + + // 4. Зажаты ли клавиши перемещения + var keyboard = Keyboard.current; + if (keyboard != null && (keyboard.wKey.isPressed || keyboard.aKey.isPressed || keyboard.sKey.isPressed || keyboard.dKey.isPressed)) + return true; + + return false; + } + + void Start() + { + CollectAllEchoMaterials(); + + for (int i = 0; i < MAX_WAVES; i++) + { + SetFloatOnAllEchoMaterials("_EchoRadius" + (i + 1), 0f); + SetFloatOnAllEchoMaterials("_EchoOpacity" + (i + 1), 0f); + SetVectorOnAllEchoMaterials("_EchoPosition" + (i + 1), Vector4.zero); } lastPosition = transform.position; @@ -96,6 +138,56 @@ public class EchoTrigger : MonoBehaviour audioSource = GetComponent(); FindFootBones(); + + // Начальная ознакомительная волна при старте сцены, чтобы игрок сразу увидел комнату + Vector3 startWavePos = transform.position; + if (characterController != null) + { + float floorY = transform.position.y + characterController.center.y - (characterController.height * 0.5f); + startWavePos.y = floorY + 0.05f; + } + TriggerExternalWave(startWavePos, walkRadius, 1.0f); + } + + public void CollectAllEchoMaterials() + { + allEchoMaterials.Clear(); + if (echoMaterial != null && !allEchoMaterials.Contains(echoMaterial)) + allEchoMaterials.Add(echoMaterial); + + Renderer[] allRenderers = Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None); + foreach (var r in allRenderers) + { + if (r == null || r.sharedMaterials == null) continue; + foreach (var m in r.sharedMaterials) + { + if (m != null && m.shader != null && (m.shader.name == "Custom/EchoCloudShader" || m.shader.name == "Custom/EchoCloudShader_Glass")) + { + if (!allEchoMaterials.Contains(m)) + allEchoMaterials.Add(m); + } + } + } + } + + public void SetFloatOnAllEchoMaterials(string propName, float value) + { + Shader.SetGlobalFloat(propName, value); + for (int i = 0; i < allEchoMaterials.Count; i++) + { + if (allEchoMaterials[i] != null) + allEchoMaterials[i].SetFloat(propName, value); + } + } + + public void SetVectorOnAllEchoMaterials(string propName, Vector4 value) + { + Shader.SetGlobalVector(propName, value); + for (int i = 0; i < allEchoMaterials.Count; i++) + { + if (allEchoMaterials[i] != null) + allEchoMaterials[i].SetVector(propName, value); + } } public void FindFootBones() @@ -128,30 +220,67 @@ public class EchoTrigger : MonoBehaviour void Update() { HandleStepDetection(); + HandleManualEchoPulse(); UpdateWaveShaderProgress(); } + void HandleManualEchoPulse() + { + // Возможность выпустить эхолокационный импульс (Space, E, Q или ПКМ) + var keyboard = Keyboard.current; + var mouse = Mouse.current; + bool pulseKey = (keyboard != null && (keyboard.spaceKey.wasPressedThisFrame || keyboard.eKey.wasPressedThisFrame || keyboard.qKey.wasPressedThisFrame)) + || (mouse != null && mouse.rightButton.wasPressedThisFrame); + + if (pulseKey) + { + Vector3 origin = transform.position; + if (characterController != null) + { + origin.y = transform.position.y + characterController.center.y - (characterController.height * 0.5f) + 0.05f; + } + TriggerExternalWave(origin, walkRadius * 1.2f, 1.2f); + } + } + void HandleStepDetection() { + // Всегда отслеживаем физическое перемещение + Vector3 currentPos = new Vector3(transform.position.x, 0, transform.position.z); + Vector3 lastPos = new Vector3(lastPosition.x, 0, lastPosition.z); + float delta = Vector3.Distance(currentPos, lastPos); + distanceMoved += delta; + lastPosition = transform.position; + + bool stepTriggeredByAnimation = false; + if (syncWithAnimation && playerAnimator != null) { - HandleAnimationSteps(); + stepTriggeredByAnimation = CheckAnimationSteps(); } - else + + // Если шаг был по анимации — сбрасываем счетчик дистанции + if (stepTriggeredByAnimation) { - HandleDistanceSteps(); + distanceMoved = 0f; + } + // Резерв: если по какой-то причине аниматор не сработал за stepDistance метров движения + else if (distanceMoved >= stepDistance) + { + distanceMoved = 0f; + TriggerFootstep(true); } } - void HandleAnimationSteps() + bool CheckAnimationSteps() { AnimatorStateInfo stateInfo = playerAnimator.GetCurrentAnimatorStateInfo(0); bool isMoving = playerAnimator.GetBool("IsMoving"); float animSpeed = playerAnimator.GetFloat("Speed"); - bool isGrounded = characterController == null || characterController.isGrounded; - // Синхронизируем шаги только когда персонаж движется по земле в режиме перемещения - if (isMoving && animSpeed > 0.1f && isGrounded && stateInfo.IsName("Locomotion")) + bool inLocomotion = stateInfo.IsName("Locomotion") || playerAnimator.IsInTransition(0); + + if (isMoving && animSpeed > 0.05f && inLocomotion) { float speedRatio = Mathf.InverseLerp(1.5f, 6.0f, animSpeed); float targetLeftPhase = Mathf.Lerp(leftFootPhaseWalk, leftFootPhaseSprint, speedRatio); @@ -161,47 +290,35 @@ public class EchoTrigger : MonoBehaviour if (!wasMoving) { - // При начале движения инициализируем циклы текущим положением анимации, - // чтобы не было фантомного шага из простоя lastLeftStepCycle = Mathf.FloorToInt(currTime - targetLeftPhase); lastRightStepCycle = Mathf.FloorToInt(currTime - targetRightPhase); wasMoving = true; + return false; } - else - { - int leftCycle = Mathf.FloorToInt(currTime - targetLeftPhase); - if (leftCycle > lastLeftStepCycle) - { - lastLeftStepCycle = leftCycle; - TriggerFootstep(true); - } - int rightCycle = Mathf.FloorToInt(currTime - targetRightPhase); - if (rightCycle > lastRightStepCycle) - { - lastRightStepCycle = rightCycle; - TriggerFootstep(false); - } + bool stepped = false; + int leftCycle = Mathf.FloorToInt(currTime - targetLeftPhase); + if (leftCycle > lastLeftStepCycle) + { + lastLeftStepCycle = leftCycle; + TriggerFootstep(true); + stepped = true; } + + int rightCycle = Mathf.FloorToInt(currTime - targetRightPhase); + if (rightCycle > lastRightStepCycle) + { + lastRightStepCycle = rightCycle; + TriggerFootstep(false); + stepped = true; + } + + return stepped; } else { wasMoving = false; - } - } - - void HandleDistanceSteps() - { - Vector3 currentPos = new Vector3(transform.position.x, 0, transform.position.z); - Vector3 lastPos = new Vector3(lastPosition.x, 0, lastPosition.z); - - distanceMoved += Vector3.Distance(currentPos, lastPos); - lastPosition = transform.position; - - if (distanceMoved >= stepDistance) - { - distanceMoved = 0f; - TriggerFootstep(true); + return false; } } @@ -230,7 +347,7 @@ public class EchoTrigger : MonoBehaviour spawnPos.y = floorY + 0.05f; } - // Определяем режим передвижения (Sneak / Walk / Run) + // Определяем режим передвижения (Sneak / Walk / Run) через InputSystem var keyboard = Keyboard.current; bool isRunning = keyboard != null && keyboard.leftShiftKey.isPressed; bool isSneaking = keyboard != null && (keyboard.leftCtrlKey.isPressed || keyboard.cKey.isPressed); @@ -288,7 +405,11 @@ public class EchoTrigger : MonoBehaviour void UpdateWaveShaderProgress() { - if (echoMaterial == null) return; + if (allEchoMaterials.Count == 0) + { + CollectAllEchoMaterials(); + if (allEchoMaterials.Count == 0 && echoMaterial == null) return; + } for (int i = 0; i < MAX_WAVES; i++) { @@ -299,27 +420,22 @@ public class EchoTrigger : MonoBehaviour float maxRadius = waveMaxRadii[i]; float progress = Mathf.Clamp01(currentRadius / maxRadius); - // Плавное появление (Fade-in): в первые 18% пути волна мягко разгорается (без резкой вспышки) - float fadeIn = Mathf.SmoothStep(0f, 1f, progress / 0.18f); - // Плавное рассеивание (Fade-out): к концу облако плавно растворяется в темноте - float fadeOut = Mathf.Pow(1f - progress, 1.4f); + // Быстрое появление: уже к 0.4м (за 0.025с) волна на 100% яркости у ног + float fadeIn = Mathf.Clamp01(currentRadius / 0.4f); + // Плавное рассеивание к концу дистанции + float fadeOut = Mathf.Pow(1f - progress, 1.2f); float opacity = (fadeIn * fadeOut) * waveIntensities[i]; opacity = Mathf.Max(0f, opacity); - echoMaterial.SetFloat("_EchoRadius" + (i + 1), currentRadius); - echoMaterial.SetFloat("_EchoOpacity" + (i + 1), opacity); - - Shader.SetGlobalFloat("_EchoRadius" + (i + 1), currentRadius); - Shader.SetGlobalFloat("_EchoOpacity" + (i + 1), opacity); + SetFloatOnAllEchoMaterials("_EchoRadius" + (i + 1), currentRadius); + SetFloatOnAllEchoMaterials("_EchoOpacity" + (i + 1), opacity); if (currentRadius >= maxRadius) { waveActive[i] = false; - echoMaterial.SetFloat("_EchoRadius" + (i + 1), 0f); - echoMaterial.SetFloat("_EchoOpacity" + (i + 1), 0f); - Shader.SetGlobalFloat("_EchoRadius" + (i + 1), 0f); - Shader.SetGlobalFloat("_EchoOpacity" + (i + 1), 0f); + SetFloatOnAllEchoMaterials("_EchoRadius" + (i + 1), 0f); + SetFloatOnAllEchoMaterials("_EchoOpacity" + (i + 1), 0f); } } } @@ -327,7 +443,11 @@ public class EchoTrigger : MonoBehaviour public void TriggerExternalWave(Vector3 position, float targetMax, float targetIntensity) { - if (echoMaterial == null) return; + if (allEchoMaterials.Count == 0) + { + CollectAllEchoMaterials(); + if (allEchoMaterials.Count == 0 && echoMaterial == null) return; + } // Ищем свободный слот int waveIndex = -1; @@ -340,7 +460,7 @@ public class EchoTrigger : MonoBehaviour } } - // Если занято, берем самую старую волну + // Если все слоты заняты, берем самую старую / дальнюю волну if (waveIndex == -1) { float maxRad = -1f; @@ -354,16 +474,15 @@ public class EchoTrigger : MonoBehaviour } } - // Назначаем волне её радиус и её личную яркость! + // Назначаем волне её радиус и яркость waveMaxRadii[waveIndex] = targetMax; waveIntensities[waveIndex] = targetIntensity; - waveRadii[waveIndex] = 0f; + waveRadii[waveIndex] = 0.05f; // Начинаем чуть выше 0, чтобы сразу вступала в силу waveActive[waveIndex] = true; - // Начинаем плавно с 0, чтобы разгореться через fadeIn - echoMaterial.SetFloat("_EchoOpacity" + (waveIndex + 1), 0f); - echoMaterial.SetVector("_EchoPosition" + (waveIndex + 1), position); - Shader.SetGlobalFloat("_EchoOpacity" + (waveIndex + 1), 0f); - Shader.SetGlobalVector("_EchoPosition" + (waveIndex + 1), position); + // Начальная установка координат и стартовой прозрачности + SetFloatOnAllEchoMaterials("_EchoRadius" + (waveIndex + 1), 0.05f); + SetFloatOnAllEchoMaterials("_EchoOpacity" + (waveIndex + 1), 0.2f * targetIntensity); + SetVectorOnAllEchoMaterials("_EchoPosition" + (waveIndex + 1), new Vector4(position.x, position.y, position.z, 1.0f)); } } \ No newline at end of file diff --git a/Assets/Scripts/Editor/CharacterSetup.cs b/Assets/Scripts/Editor/CharacterSetup.cs index 963a2c4..3db6eea 100644 --- a/Assets/Scripts/Editor/CharacterSetup.cs +++ b/Assets/Scripts/Editor/CharacterSetup.cs @@ -157,6 +157,13 @@ public static class CharacterSetup EditorUtility.SetDirty(echo); } + var ph = player.GetComponent(); + if (ph != null) + { + ph.playerAnimator = animator; + EditorUtility.SetDirty(ph); + } + // 9. Проверяем CameraFollow на главной камере if (Camera.main != null) { diff --git a/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs b/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs new file mode 100644 index 0000000..323292e --- /dev/null +++ b/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs @@ -0,0 +1,287 @@ +using System.IO; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; +using UnityEngine.SceneManagement; + +public static class CosmicRetroLabIntegrator +{ + private const string ROOT_NAME = "Cosmic_Retro_Laboratory"; + private const string PROPS_DIR = "Assets/room/Cosmic_Retro_Laboratory_2_Demo/Prefabs/Props/"; + + private static GameObject deskPrefab; + private static GameObject compPrefab; + private static GameObject microPrefab; + private static GameObject notePrefab; + private static GameObject stoolPrefab; + private static GameObject capsulePrefab; + private static GameObject alienPrefab; + + [MenuItem("Tools/Integrate Cosmic Retro Laboratory")] + public static void Integrate() + { + LoadPrefabs(); + + // 1. Найти или очистить предыдущую интеграцию + var existingRoot = GameObject.Find(ROOT_NAME); + if (existingRoot != null) + { + Undo.DestroyObjectImmediate(existingRoot); + } + + var rootGo = new GameObject(ROOT_NAME); + Undo.RegisterCreatedObjectUndo(rootGo, "Integrate Cosmic Retro Lab"); + + // 2. Интеграция по секторам исследовательского комплекса + BuildAirlockSector(rootGo.transform); + BuildSouthConcourseSector(rootGo.transform); + BuildGrandAtriumSector(rootGo.transform); + BuildBiochemLabSector(rootGo.transform); + BuildGeneticsWingSector(rootGo.transform); + BuildCryoVaultSector(rootGo.transform); + BuildSurgicalSector(rootGo.transform); + BuildQuarantineSector(rootGo.transform); + + // 3. Обновить список материалов эхолокации в EchoTrigger (если компонент в сцене) + var echoTrigger = Object.FindAnyObjectByType(); + if (echoTrigger != null) + { + echoTrigger.CollectAllEchoMaterials(); + EditorUtility.SetDirty(echoTrigger); + } + + // 4. Сохранить изменения в открытой сцене и синхронизировать с SampleScene.unity + var activeScene = SceneManager.GetActiveScene(); + EditorSceneManager.MarkSceneDirty(activeScene); + EditorSceneManager.SaveScene(activeScene); + + string sampleScenePath = "Assets/Scenes/SampleScene.unity"; + if (activeScene.path != sampleScenePath) + { + EditorSceneManager.SaveScene(activeScene, sampleScenePath, true); + } + + AssetDatabase.SaveAssets(); + + Debug.Log($"[CosmicRetroLabIntegrator] Успешно интегрировано 73 объекта Cosmic Retro Laboratory в сцену '{activeScene.name}' ({activeScene.path}) и сохранено в '{sampleScenePath}'!"); + } + + private static void LoadPrefabs() + { + deskPrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Desk_01.prefab"); + compPrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Computer_01.prefab"); + microPrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Microscope.prefab"); + notePrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Notebook.prefab"); + stoolPrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Stool.prefab"); + capsulePrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Capsule_01.prefab"); + alienPrefab = AssetDatabase.LoadAssetAtPath(PROPS_DIR + "CR_Lab2_Alien_01.prefab"); + + if (deskPrefab == null || compPrefab == null || capsulePrefab == null || alienPrefab == null) + { + throw new System.Exception("Не удалось загрузить один или несколько префабов Cosmic Retro!"); + } + } + + // --- СЕКТОР 1: Входной шлюз / Точка появления игрока (Spawn: 0, 1.05, -44) --- + private static void BuildAirlockSector(Transform parent) + { + var sector = CreateSector(parent, "01_Airlock_Spawn"); + + // Приемный терминал службы безопасности (справа от игрока, экран виден при движении на север) + SpawnWorkstation(sector, new Vector3(3.2f, 0.0f, -42.5f), -90f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Security_Console"); + + // Первая капсула со спящим пришельцем у шлюза + SpawnCapsuleWithAlien(sector, new Vector3(3.2f, 0.0f, -45.0f), Quaternion.Euler(0, -45f, 0), "Airlock_Stasis_Capsule"); + } + + // --- СЕКТОР 2: Южный переходной коридор (Z ~ -30) --- + private static void BuildSouthConcourseSector(Transform parent) + { + var sector = CreateSector(parent, "02_SouthConcourse"); + + // Наблюдательный терминал коридора + SpawnWorkstation(sector, new Vector3(-4.5f, 0.0f, -29.5f), 0f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Concourse_Terminal"); + + // Капсула с биологическим образцом в восточной нише + SpawnCapsuleWithAlien(sector, new Vector3(4.5f, 0.0f, -29.5f), Quaternion.Euler(0, 180f, 0), "Concourse_Specimen_Pod"); + } + + // --- СЕКТОР 3: Главный Атриум / Центральный исследовательский хаб --- + private static void BuildGrandAtriumSector(Transform parent) + { + var sector = CreateSector(parent, "03_GrandAtrium"); + + // Двойной центральный пост мониторинга + SpawnWorkstation(sector, new Vector3(-3.0f, 0.0f, 3.0f), 45f, + withComputer: true, withMicroscope: true, withNotebook: true, withStool: true, "Atrium_Command_Station_Alpha"); + + SpawnWorkstation(sector, new Vector3(3.0f, 0.0f, 3.0f), -45f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Atrium_Command_Station_Beta"); + + // Парные стазис-капсулы в центре атриума + SpawnCapsuleWithAlien(sector, new Vector3(-5.0f, 0.0f, 7.5f), Quaternion.Euler(0, 45f, 0), "Atrium_Containment_Pod_Left"); + SpawnCapsuleWithAlien(sector, new Vector3(5.0f, 0.0f, 7.5f), Quaternion.Euler(0, -45f, 0), "Atrium_Containment_Pod_Right"); + } + + // --- СЕКТОР 4: Биохимическая лаборатория (Сектор D, X ~ -40, Z ~ -10) --- + private static void BuildBiochemLabSector(Transform parent) + { + var sector = CreateSector(parent, "04_BiochemistryLab"); + + // Исследовательский пост биохимического синтеза (микроскоп, компьютер, блокнот) + SpawnWorkstation(sector, new Vector3(-38.0f, 0.0f, -6.5f), 90f, + withComputer: true, withMicroscope: true, withNotebook: true, withStool: true, "Biochem_Analysis_Desk_01"); + + // Вспомогательный рабочий стол анализа проб + SpawnWorkstation(sector, new Vector3(-38.0f, 0.0f, -13.5f), 90f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Biochem_Analysis_Desk_02"); + + // Биохимические инкубаторы с пришельцами + SpawnCapsuleWithAlien(sector, new Vector3(-43.0f, 0.0f, -6.5f), Quaternion.Euler(0, 135f, 0), "Biochem_Incubator_01"); + SpawnCapsuleWithAlien(sector, new Vector3(-43.0f, 0.0f, -13.5f), Quaternion.Euler(0, 45f, 0), "Biochem_Incubator_02"); + } + + // --- СЕКТОР 5: Отсек генетики и мутагенеза (Сектор G, X ~ +39, Z ~ +15) --- + private static void BuildGeneticsWingSector(Transform parent) + { + var sector = CreateSector(parent, "05_GeneticsWing"); + + // Рабочее место генного инженера + SpawnWorkstation(sector, new Vector3(36.0f, 0.0f, 15.5f), 90f, + withComputer: true, withMicroscope: true, withNotebook: true, withStool: true, "Genetics_Console"); + + // Тройная шеренга генетических инкубационных капсул + SpawnCapsuleWithAlien(sector, new Vector3(42.5f, 0.0f, 13.5f), Quaternion.Euler(0, -90f, 0), "Genetics_Incubator_Pod_1"); + SpawnCapsuleWithAlien(sector, new Vector3(42.5f, 0.0f, 15.8f), Quaternion.Euler(0, -90f, 0), "Genetics_Incubator_Pod_2"); + SpawnCapsuleWithAlien(sector, new Vector3(42.5f, 0.0f, 18.0f), Quaternion.Euler(0, -90f, 0), "Genetics_Incubator_Pod_3"); + } + + // --- СЕКТОР 6: Криогенное хранилище / Стазис-сектор (Сектор B, X ~ -36, Z ~ -37) --- + private static void BuildCryoVaultSector(Transform parent) + { + var sector = CreateSector(parent, "06_CryoVault"); + + // Главный пульт криогенного управления + SpawnWorkstation(sector, new Vector3(-36.5f, 0.0f, -33.5f), 180f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Cryo_Master_Terminal"); + + // Банк из четырех крио-капсул глубокой заморозки + SpawnCapsuleWithAlien(sector, new Vector3(-33.0f, 0.0f, -41.0f), Quaternion.identity, "Cryo_Stasis_Tank_01"); + SpawnCapsuleWithAlien(sector, new Vector3(-35.5f, 0.0f, -41.0f), Quaternion.identity, "Cryo_Stasis_Tank_02"); + SpawnCapsuleWithAlien(sector, new Vector3(-38.0f, 0.0f, -41.0f), Quaternion.identity, "Cryo_Stasis_Tank_03"); + SpawnCapsuleWithAlien(sector, new Vector3(-40.5f, 0.0f, -41.0f), Quaternion.identity, "Cryo_Stasis_Tank_04"); + } + + // --- СЕКТОР 7: Хирургический бокс / Медблок (Сектор E, X ~ +39, Z ~ -10) --- + private static void BuildSurgicalSector(Transform parent) + { + var sector = CreateSector(parent, "07_SurgicalTheatre"); + + // Диагностический пост хирурга + SpawnWorkstation(sector, new Vector3(36.5f, 0.0f, -9.5f), 90f, + withComputer: true, withMicroscope: true, withNotebook: true, withStool: true, "Surgical_Diagnostics_Desk"); + + // Изолированная капсула для автопсий и исследований + SpawnCapsuleWithAlien(sector, new Vector3(43.0f, 0.0f, -9.5f), Quaternion.Euler(0, -90f, 0), "Surgical_Stasis_Pod"); + } + + // --- СЕКТОР 8: Карантинный изолятор (Сектор C, X ~ -35, Z ~ +16) --- + private static void BuildQuarantineSector(Transform parent) + { + var sector = CreateSector(parent, "08_QuarantineBay"); + + // Пост наблюдения за карантинным блоком + SpawnWorkstation(sector, new Vector3(-32.0f, 0.0f, 16.0f), -90f, + withComputer: true, withMicroscope: false, withNotebook: true, withStool: true, "Quarantine_Observation_Desk"); + + // Высокозащищенная капсула изоляции + SpawnCapsuleWithAlien(sector, new Vector3(-39.0f, 0.0f, 16.0f), Quaternion.Euler(0, 90f, 0), "BioHazard_Isolation_Pod"); + } + + // --- ХЕЛПЕРЫ ДЛЯ СПАВНА И ПОЗИЦИОНИРОВАНИЯ --- + private static Transform CreateSector(Transform parent, string name) + { + var go = new GameObject(name); + go.transform.SetParent(parent, false); + return go.transform; + } + + private static void SpawnCapsuleWithAlien(Transform parent, Vector3 pos, Quaternion rot, string name) + { + var capsule = (GameObject)PrefabUtility.InstantiatePrefab(capsulePrefab); + capsule.name = name; + capsule.transform.SetParent(parent, false); + capsule.transform.position = pos; + capsule.transform.rotation = rot; + + // Пришелец размещается ровно внутри капсулы на высоте 0.92 м + var alien = (GameObject)PrefabUtility.InstantiatePrefab(alienPrefab); + alien.name = "Specimen_" + name; + alien.transform.SetParent(capsule.transform, false); + alien.transform.localPosition = new Vector3(0.0f, 0.92f, 0.0f); + alien.transform.localRotation = Quaternion.identity; + + // Отключаем прямой коллайдер пришельца, чтобы он не конфликтовал со стеклянной оболочкой капсулы + var col = alien.GetComponent(); + if (col != null) col.enabled = false; + } + + private static void SpawnWorkstation(Transform parent, Vector3 deskPos, float rotY, + bool withComputer, bool withMicroscope, bool withNotebook, bool withStool, string stationName) + { + var station = new GameObject(stationName); + station.transform.SetParent(parent, false); + station.transform.position = deskPos; + station.transform.rotation = Quaternion.Euler(0f, rotY, 0f); + + // Стол + var desk = (GameObject)PrefabUtility.InstantiatePrefab(deskPrefab); + desk.name = "Desk"; + desk.transform.SetParent(station.transform, false); + desk.transform.localPosition = Vector3.zero; + desk.transform.localRotation = Quaternion.identity; + + // Компьютер (слева на столе, высота поверхности стола = 0.81м) + if (withComputer) + { + var comp = (GameObject)PrefabUtility.InstantiatePrefab(compPrefab); + comp.name = "Computer_Terminal"; + comp.transform.SetParent(station.transform, false); + comp.transform.localPosition = new Vector3(-0.35f, 0.81f, 0.05f); + comp.transform.localRotation = Quaternion.identity; + } + + // Микроскоп (справа на столе) + if (withMicroscope) + { + var micro = (GameObject)PrefabUtility.InstantiatePrefab(microPrefab); + micro.name = "Research_Microscope"; + micro.transform.SetParent(station.transform, false); + micro.transform.localPosition = new Vector3(0.38f, 0.81f, 0.08f); + micro.transform.localRotation = Quaternion.Euler(0f, -15f, 0f); + } + + // Блокнот / Журнал наблюдений (по центру/справа перед исследователем) + if (withNotebook) + { + var note = (GameObject)PrefabUtility.InstantiatePrefab(notePrefab); + note.name = "Lab_Notebook"; + note.transform.SetParent(station.transform, false); + float noteX = withMicroscope ? 0.20f : 0.30f; + note.transform.localPosition = new Vector3(noteX, 0.81f, -0.15f); + note.transform.localRotation = Quaternion.Euler(0f, 12f, 0f); + } + + // Табурет перед столом + if (withStool) + { + var stool = (GameObject)PrefabUtility.InstantiatePrefab(stoolPrefab); + stool.name = "Swivel_Stool"; + stool.transform.SetParent(station.transform, false); + stool.transform.localPosition = new Vector3(0.0f, 0.0f, -0.75f); + stool.transform.localRotation = Quaternion.Euler(0f, 25f, 0f); + } + } +} diff --git a/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs.meta b/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs.meta new file mode 100644 index 0000000..bb47390 --- /dev/null +++ b/Assets/Scripts/Editor/CosmicRetroLabIntegrator.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: b1e48e3d2f493a74ebf84e4714e772a8 \ No newline at end of file diff --git a/Assets/Scripts/Editor/DeathScreenBuilder.cs b/Assets/Scripts/Editor/DeathScreenBuilder.cs new file mode 100644 index 0000000..d25cf8b --- /dev/null +++ b/Assets/Scripts/Editor/DeathScreenBuilder.cs @@ -0,0 +1,231 @@ +using UnityEngine; +using UnityEngine.UI; +using UnityEditor; +using UnityEditor.SceneManagement; + +public static class DeathScreenBuilder +{ + private static Font standardFont; + private static DefaultControls.Resources uiResources; + + [MenuItem("Tools/Build Death Screen In Scene")] + public static string Build() + { + standardFont = Resources.GetBuiltinResource("LegacyRuntime.ttf"); + if (standardFont == null) + standardFont = Resources.GetBuiltinResource("Arial.ttf"); + + uiResources = new DefaultControls.Resources(); + + // 1. Находим PauseCanvas или Canvas в сцене + GameObject canvasGo = GameObject.Find("PauseCanvas"); + if (canvasGo == null) + { + canvasGo = GameObject.Find("Canvas"); + } + + if (canvasGo == null) + { + // Создаем новый Canvas + canvasGo = new GameObject("DeathCanvas"); + Canvas canvas = canvasGo.AddComponent(); + canvas.renderMode = RenderMode.ScreenSpaceOverlay; + canvas.sortingOrder = 100; + + CanvasScaler scaler = canvasGo.AddComponent(); + scaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize; + scaler.referenceResolution = new Vector2(1920, 1080); + scaler.matchWidthOrHeight = 0.5f; + + canvasGo.AddComponent(); + } + + Undo.RegisterFullObjectHierarchyUndo(canvasGo, "Build Death Screen"); + + // Удаляем старый DeathScreenPanel, если был + Transform oldPanel = canvasGo.transform.Find("DeathScreenPanel"); + if (oldPanel != null) + { + Undo.DestroyObjectImmediate(oldPanel.gameObject); + } + + // 2. Создаем фоновую панель затемнения (DeathScreenPanel) + GameObject deathPanel = CreateImage("DeathScreenPanel", canvasGo.transform, + new Color(0.05f, 0.01f, 0.015f, 0.92f), // Глубокий темно-бордовый фон + Vector2.zero, Vector2.one, Vector2.zero, Vector2.zero); + + CanvasGroup cg = deathPanel.AddComponent(); + cg.alpha = 1f; + + // 3. Центральная карточка (Death_Card) + GameObject card = CreateImage("Death_Card", deathPanel.transform, + new Color(0.10f, 0.03f, 0.045f, 0.98f), + new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), + new Vector2(520f, 440f), Vector2.zero); + + // Кроваво-красная светящаяся рамка + Outline outline = card.AddComponent(); + outline.effectColor = new Color(0.95f, 0.15f, 0.20f, 0.70f); + outline.effectDistance = new Vector2(2f, -2f); + + Shadow shadow = card.AddComponent(); + shadow.effectColor = new Color(0.5f, 0.0f, 0.05f, 0.5f); + shadow.effectDistance = new Vector2(6f, -6f); + + // 4. Заголовок "ВЫ ПОГИБЛИ" + CreateText("Death_Title", card.transform, + "ВЫ ПОГИБЛИ", + 40, FontStyle.Bold, TextAnchor.MiddleCenter, + new Color(1f, 0.22f, 0.22f, 1f), + new Vector2(0.05f, 0.76f), new Vector2(0.95f, 0.95f), Vector2.zero, Vector2.zero); + + // Разделительная линия + CreateImage("Death_Divider", card.transform, + new Color(0.95f, 0.20f, 0.25f, 0.55f), + new Vector2(0.12f, 0.74f), new Vector2(0.88f, 0.745f), Vector2.zero, Vector2.zero); + + // Подзаголовок + CreateText("Death_Subtitle", card.transform, + "Биометрические показатели на нуле.\nСвязь с комплексом потеряна.", + 16, FontStyle.Normal, TextAnchor.MiddleCenter, + new Color(0.90f, 0.78f, 0.80f, 0.90f), + new Vector2(0.08f, 0.58f), new Vector2(0.92f, 0.72f), Vector2.zero, Vector2.zero); + + // 5. Контейнер кнопок + GameObject btnContainer = CreateEmptyRect("Buttons_Container", card.transform, + new Vector2(0.10f, 0.08f), new Vector2(0.90f, 0.54f), Vector2.zero, Vector2.zero); + + VerticalLayoutGroup vLayout = btnContainer.AddComponent(); + vLayout.spacing = 16f; + vLayout.childAlignment = TextAnchor.MiddleCenter; + vLayout.childControlWidth = true; + vLayout.childControlHeight = false; + vLayout.childForceExpandWidth = true; + vLayout.childForceExpandHeight = false; + + // Кнопка "Начать заново" + Button restartBtn = CreateStyledButton("Btn_Restart", btnContainer.transform, + "↺ НАЧАТЬ ЗАНОВО", + new Color(0.38f, 0.08f, 0.10f, 0.95f), + new Color(0.85f, 0.16f, 0.20f, 1.0f), + new Color(0.22f, 0.04f, 0.05f, 1.0f), + Color.white, 54f, 20); + + // Кнопка "Главное меню" + Button mainMenuBtn = CreateStyledButton("Btn_MainMenu", btnContainer.transform, + "⮌ ГЛАВНОЕ МЕНЮ", + new Color(0.18f, 0.18f, 0.22f, 0.95f), + new Color(0.36f, 0.36f, 0.42f, 1.0f), + new Color(0.10f, 0.10f, 0.12f, 1.0f), + new Color(0.9f, 0.9f, 0.9f, 1f), 50f, 18); + + // 6. Настраиваем компонент DeathScreenUI + DeathScreenUI deathUI = canvasGo.GetComponent(); + if (deathUI == null) + deathUI = canvasGo.AddComponent(); + + deathUI.deathPanel = deathPanel; + deathUI.canvasGroup = cg; + deathUI.restartButton = restartBtn; + deathUI.mainMenuButton = mainMenuBtn; + deathUI.fadeDuration = 0.8f; + deathUI.mainMenuSceneName = "MainMenu"; + + // По умолчанию скрываем панель смерти + deathPanel.SetActive(false); + + // 7. Привязываем к игроку (PlayerHealth) + GameObject player = GameObject.Find("Player"); + if (player == null) player = GameObject.Find("Capsule"); + if (player != null) + { + var ph = player.GetComponent(); + if (ph != null) + { + ph.deathScreenUI = deathUI; + EditorUtility.SetDirty(ph); + } + } + + EditorUtility.SetDirty(deathUI); + EditorUtility.SetDirty(canvasGo); + EditorSceneManager.MarkSceneDirty(canvasGo.scene); + EditorSceneManager.SaveScene(canvasGo.scene); + + Debug.Log("[DeathScreenBuilder] Экран смерти успешно собран и настроен в сцене!"); + return "SUCCESS: Death screen successfully built and configured in scene!"; + } + + private static GameObject CreateImage(string name, Transform parent, Color color, Vector2 anchorMin, Vector2 anchorMax, Vector2 sizeDelta, Vector2 anchoredPosition) + { + GameObject go = CreateEmptyRect(name, parent, anchorMin, anchorMax, sizeDelta, anchoredPosition); + Image img = go.AddComponent(); + img.color = color; + return go; + } + + private static GameObject CreateEmptyRect(string name, Transform parent, Vector2 anchorMin, Vector2 anchorMax, Vector2 sizeDelta, Vector2 anchoredPosition) + { + GameObject go = new GameObject(name); + go.transform.SetParent(parent, false); + RectTransform rt = go.AddComponent(); + rt.anchorMin = anchorMin; + rt.anchorMax = anchorMax; + rt.sizeDelta = sizeDelta; + rt.anchoredPosition = anchoredPosition; + return go; + } + + private static GameObject CreateText(string name, Transform parent, string text, int fontSize, FontStyle style, TextAnchor alignment, Color color, Vector2 anchorMin, Vector2 anchorMax, Vector2 sizeDelta, Vector2 anchoredPosition) + { + GameObject go = CreateEmptyRect(name, parent, anchorMin, anchorMax, sizeDelta, anchoredPosition); + Text t = go.AddComponent(); + t.font = standardFont; + t.text = text; + t.fontSize = fontSize; + t.fontStyle = style; + t.alignment = alignment; + t.color = color; + t.horizontalOverflow = HorizontalWrapMode.Wrap; + t.verticalOverflow = VerticalWrapMode.Overflow; + return go; + } + + private static Button CreateStyledButton(string name, Transform parent, string label, Color normalColor, Color highlightedColor, Color pressedColor, Color textColor, float height, int fontSize) + { + GameObject btnObj = DefaultControls.CreateButton(uiResources); + btnObj.name = name; + btnObj.transform.SetParent(parent, false); + + LayoutElement layout = btnObj.AddComponent(); + layout.minHeight = height; + layout.preferredHeight = height; + + Image img = btnObj.GetComponent(); + img.color = normalColor; + img.type = Image.Type.Sliced; + + Button btn = btnObj.GetComponent