assets-modify
Update asset file contents in the Unity Assets/ folder by providing a JSON diff of serialized members. Inspect assets first using assets-get-data to ensure correct structure.
Instructions
Modify asset file in the project. Use 'assets-get-data' tool first to inspect the asset structure before modifying. Not allowed to modify asset file in 'Packages/' folder. Please modify it in 'Assets/' folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetRef | Yes | Asset reference. SCHEMA: {"assetPath":"Assets/path/to/asset"} or {"instanceID":12345} | |
| content | Yes | JSON string of SerializedMember diff to apply. SCHEMA: {"props":[{"name":"propertyName","value":any}],"fields":[{"name":"fieldName","value":any}]} |