easyar_write_csharp_file
Creates or replaces a C# script file in a Unity project. The file must be inside the project and end with .cs.
Instructions
Create or replace a C# script inside a Unity project. The file must stay inside the project and end with .cs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Unity project path. | |
| relativePath | Yes | Relative file path inside the Unity project, for example Assets/Scripts/Foo.cs. | |
| contents | Yes | Complete C# file contents. |