Skip to main content

create_script

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: core  ·  Module: services.tools.manage_script

Description

Create a new C# script at the given project path.

Parameters

NameTypeRequiredDescription
pathstryesPath under Assets/ to create the script at, e.g., 'Assets/Scripts/My.cs'
contentsstryesContents of the script to create (plain text C# code). The server handles Base64 encoding.
script_typestr | NoneScript type (e.g., 'C#')
namespacestr | NoneNamespace for the script

Returns

A dict containing the Unity response. The exact shape depends on the action.

Examples

No examples yet. Add usage examples here — they will be preserved across regenerations.