unity-scriptableobject

Create, edit, find, and export ScriptableObject assets in Unity projects.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-scriptableobject-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-scriptableobject
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/scriptableobject
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-scriptableobject-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Unity ScriptableObject data assets by hand through the editor is slow and error-prone, especially when creating config tables, batch-editing fields, or locating SO instances across a large project. ## Core Features & Use Cases - Full CRUD on SO assets: Create, read, modify single or batched fields, duplicate, and delete ScriptableObject assets via dedicated commands. - Discovery and search: List available ScriptableObject types and find SO instances by type name within any folder, with result limits. - JSON round-trip: Export a ScriptableObject to JSON or import JSON data back into an asset for data-driven workflows. - Use Case: A designer asks to build a game config table — create a new ItemConfig ScriptableObject asset, batch-set its fields from JSON, then find all existing instances to verify values. ## Quick Start Create a new ScriptableObject asset of type ItemConfig at Assets/Data/ItemConfig.asset and set its fields from my JSON data.

Frequently Asked Questions about unity-scriptableobject

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a ScriptableObject asset in Unity programmatically?

Use scriptableobject_create with a typeName and savePath to instantiate the asset. The ScriptableObject class itself must already exist; create the script first via the script module with the ScriptableObject template.

How to find all ScriptableObject instances of a type in Unity?

Use scriptableobject_find with the type name, optionally narrowing the search folder and result limit. It returns matching asset paths so you can inspect or edit each instance.

Can I edit multiple ScriptableObject fields at once?

Yes, scriptableobject_set_batch accepts a JSON object of field-value pairs and applies them in one call. For a single field, use scriptableobject_set with assetPath, fieldName, and value.

Does ScriptableObject editing support JSON import and export?

Yes, scriptableobject_export_json serializes an asset to JSON inline or to a file, and scriptableobject_import_json loads JSON from a string or file into an existing asset.

Why does scriptableobject_delete return MODE_FORBIDDEN?

Deletion is classified as a high-risk operation and is blocked in Approval and Auto modes. It only executes in Bypass mode or when the command matches an explicit allowlist entry.