unity_script_update
Update the full source code of an existing C# script in Unity. Provide the asset path and new content to overwrite the script file.
Instructions
Update the contents of an existing C# script file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Asset path of the script | |
| content | Yes | New full C# source code content | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |