docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CreateScriptParams

    Parameters for the Unity.CreateScript tool.

    Inheritance
    object
    CreateScriptParams
    Implements
    IEquatable<CreateScriptParams>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AI.MCP.Editor.Tools.Parameters
    Assembly: Unity.AI.MCP.Editor.dll
    Syntax
    public record CreateScriptParams : IEquatable<CreateScriptParams>

    Properties

    Contents

    Gets or sets the script contents (plain text).

    Declaration
    [McpDescription("Script contents (plain text)", Required = false)]
    public string Contents { get; set; }
    Property Value
    Type Description
    string

    Namespace

    Gets or sets the namespace for the script.

    Declaration
    [McpDescription("Namespace for the script", Required = false)]
    public string Namespace { get; set; }
    Property Value
    Type Description
    string

    Path

    Gets or sets the project path for the script (e.g., 'Assets/Scripts/MyScript.cs').

    Declaration
    [McpDescription("Project path for the script (e.g., 'Assets/Scripts/MyScript.cs')", Required = true)]
    public string Path { get; set; }
    Property Value
    Type Description
    string

    ScriptType

    Gets or sets the script type hint (e.g., 'MonoBehaviour', 'ScriptableObject').

    Declaration
    [McpDescription("Script type hint (e.g., 'MonoBehaviour', 'ScriptableObject')", Required = false)]
    public string ScriptType { get; set; }
    Property Value
    Type Description
    string

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)