一键导入
unity-scriptableobject
Use when users want to create, read, or modify ScriptableObject assets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when users want to create, read, or modify ScriptableObject assets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working with a Unity project via MCP — creating or editing scenes, GameObjects, components, prefabs, materials, UI, lighting, navmesh, animations, terrain, C# scripts, or any other Unity Editor task.
Use when users want to run Unity tests or read test results.
Use when users want to enter play mode, select objects, undo/redo, or execute menu commands.
Use when creating, reading, editing, searching, validating, or deleting C# scripts in a Unity project.
Use when about to write or install a custom Editor script, add a [MenuItem], build a custom Editor window, or create a one-off Editor helper — to check whether a ready-to-paste template already exists in tooling/<domain>/ before reaching for Unity_CreateScript.
Use when users want to create Canvas, Button, Text, Image, or other UI elements.
| name | unity-scriptableobject |
| description | Use when users want to create, read, or modify ScriptableObject assets. |
Create and manage ScriptableObject assets.
DO NOT (common hallucinations):
scriptableobject_create_type does not exist → create SO scripts via script_create with template "ScriptableObject"scriptableobject_get_properties / scriptableobject_read do not exist → use scriptableobject_getscriptableobject_set_property / scriptableobject_set_field do not exist → use scriptableobject_set (single field) or scriptableobject_set_batch (multiple fields)scriptableobject_save does not exist → changes are auto-saved to the assetRouting:
script module with template "ScriptableObject"scriptableobject_import_json / scriptableobject_export_json (this module)scriptableobject_createCreate a new ScriptableObject asset. Parameters:
typeName (string): ScriptableObject type name.savePath (string): Asset save path.scriptableobject_getGet properties of a ScriptableObject. Parameters:
assetPath (string): Asset path.scriptableobject_setSet a field/property on a ScriptableObject. Parameters:
assetPath (string): Asset path.fieldName (string): Field or property name.value (string): Value to set.scriptableobject_list_typesList available ScriptableObject types in the project. Parameters:
filter (string, optional): Filter by name.scriptableobject_duplicateDuplicate a ScriptableObject asset. Parameters:
assetPath (string): Source asset path to duplicate.scriptableobject_set_batchSet multiple fields on a ScriptableObject at once. fields: JSON object {fieldName: value, ...}
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| assetPath | string | Yes | - | Asset path of the ScriptableObject |
| fields | string | Yes | - | JSON object with field-value pairs, e.g. {"fieldName": "value", ...} |
Returns: { success, fieldsSet }
scriptableobject_deleteDelete a ScriptableObject asset.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| assetPath | string | Yes | - | Asset path of the ScriptableObject to delete |
Returns: { success, deleted }
scriptableobject_findFind ScriptableObject assets by type name.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| typeName | string | Yes | - | ScriptableObject type name to search for |
| searchPath | string | No | "Assets" | Folder path to search within |
| limit | int | No | 50 | Maximum number of results to return |
Returns: { success, count, assets }
scriptableobject_export_jsonExport a ScriptableObject to JSON.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| assetPath | string | Yes | - | Asset path of the ScriptableObject to export |
| savePath | string | No | null | File path to save the JSON output; if omitted, JSON is returned inline |
Returns: { success, path } or { success, json }
scriptableobject_import_jsonImport JSON data into a ScriptableObject.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| assetPath | string | Yes | - | Asset path of the target ScriptableObject |
| json | string | No | null | JSON string to import |
| jsonFilePath | string | No | null | Path to a JSON file to read and import |
Returns: { success, assetPath }
See ../../recipes/scriptableobject/<command>.md for C# templates.
Recipe path rule: ../../recipes/scriptableobject/<command>.md