unity_script_create
Creates a new C# script file in the Unity project with specified path and content, enabling programmatic script generation from natural language commands.
Instructions
Create a new C# script file in the project with the given content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Asset path for the script (e.g. 'Assets/Scripts/PlayerController.cs') | |
| content | Yes | Full C# source code content | |
| className | No | Class name (defaults to filename without extension) | |
| 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. |