docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RunCommandParams

    Parameters for the Unity.RunCommand tool.

    Inheritance
    object
    RunCommandParams
    Implements
    IEquatable<RunCommandParams>
    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 RunCommandParams : IEquatable<RunCommandParams>

    Properties

    Code

    Gets or sets the C# script code to compile and execute.

    Declaration
    [McpDescription("The C# script code to compile and execute. Should implement IRunCommand interface or be a valid C# script.", Required = true)]
    public string Code { get; set; }
    Property Value
    Type Description
    string

    Title

    Gets or sets an optional title for the execution command.

    Declaration
    [McpDescription("Optional title for the execution command", Required = false)]
    public string Title { 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)