docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SelectionData

    Selection information data structure.

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

    Properties

    ActiveGameObject

    Gets or sets the name of active selected GameObject.

    Declaration
    [McpDescription("Name of active selected GameObject")]
    public string ActiveGameObject { get; set; }
    Property Value
    Type Description
    string

    ActiveInstanceID

    Gets or sets the instance ID of active selection.

    Declaration
    [McpDescription("Instance ID of active selection")]
    public int ActiveInstanceID { get; set; }
    Property Value
    Type Description
    int

    ActiveObject

    Gets or sets the name of active selected object.

    Declaration
    [McpDescription("Name of active selected object")]
    public string ActiveObject { get; set; }
    Property Value
    Type Description
    string

    ActiveTransform

    Gets or sets the name of active selected Transform.

    Declaration
    [McpDescription("Name of active selected Transform")]
    public string ActiveTransform { get; set; }
    Property Value
    Type Description
    string

    AssetGUIDs

    Gets or sets the asset GUIDs of selected assets in Project view.

    Declaration
    [McpDescription("Asset GUIDs of selected assets in Project view")]
    public string[] AssetGUIDs { get; set; }
    Property Value
    Type Description
    string[]

    Count

    Gets or sets the total count of selected objects.

    Declaration
    [McpDescription("Total count of selected objects")]
    public int Count { get; set; }
    Property Value
    Type Description
    int

    GameObjects

    Gets or sets the list of all selected GameObjects.

    Declaration
    [McpDescription("List of all selected GameObjects")]
    public List<GameObjectSelectionInfo> GameObjects { get; set; }
    Property Value
    Type Description
    List<GameObjectSelectionInfo>

    Objects

    Gets or sets the list of all selected objects.

    Declaration
    [McpDescription("List of all selected objects")]
    public List<SelectionObjectInfo> Objects { get; set; }
    Property Value
    Type Description
    List<SelectionObjectInfo>

    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)