Skip to main content
Glama

MCP Server for Unity

by zabaglione

editor_create_script

Generate Unity Editor extension scripts, including editor windows, custom editors, property drawers, and scriptable object editors, to enhance Unity project development workflows.

Instructions

Create a Unity Editor extension script

Input Schema

NameRequiredDescriptionDefault
attributeNameNoAttribute name (optional for propertyDrawer)
customContentNoCustom script content (optional)
scriptNameYesName of the editor script (without .cs extension)
scriptTypeYesType of editor script to create
targetClassNoTarget class name (required for customEditor)

Input Schema (JSON Schema)

{ "properties": { "attributeName": { "description": "Attribute name (optional for propertyDrawer)", "type": "string" }, "customContent": { "description": "Custom script content (optional)", "type": "string" }, "scriptName": { "description": "Name of the editor script (without .cs extension)", "type": "string" }, "scriptType": { "description": "Type of editor script to create", "enum": [ "editorWindow", "customEditor", "propertyDrawer", "menuItems", "scriptableObjectEditor" ], "type": "string" }, "targetClass": { "description": "Target class name (required for customEditor)", "type": "string" } }, "required": [ "scriptName", "scriptType" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zabaglione/mcp-server-unity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server