script_create
Generate a new C# script in Unity projects with customizable file names, content, and folder locations using the MCP Server for Unity interface.
Instructions
Create a new C# script in Unity project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | No | Script content (optional, will use template if not provided) | |
fileName | Yes | Name of the script file (without .cs extension) | |
folder | No | Target folder path (default: Assets/Scripts) |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Script content (optional, will use template if not provided)",
"type": "string"
},
"fileName": {
"description": "Name of the script file (without .cs extension)",
"type": "string"
},
"folder": {
"description": "Target folder path (default: Assets/Scripts)",
"type": "string"
}
},
"required": [
"fileName"
],
"type": "object"
}