unity_script_update
Replace the content of an existing C# script at a specified asset path with new source code.
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. |