gameobject-component-get

Inspect a Unity GameObject component's type, enabled state, and serialized fields.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-component-get-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-get
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/gameobject-component-get
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-component-get-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When working with Unity scenes through the MCP CLI, you often need to know exactly what data a component holds before modifying it. This Skill retrieves detailed information about a specific component on a GameObject, including its type, enabled state, and optionally its serialized fields and properties, so you can inspect component data safely before making changes. ## Core Features & Use Cases - Component Inspection: Retrieve a component's type name, instance ID, and enabled state from any GameObject in the active scene or an opened prefab. - Deep Serialization: Optionally include serialized fields and properties, with a deep serialization mode that expands all nested objects. - Flexible Referencing: Locate GameObjects by instance ID, hierarchy path, name, or asset reference, and components by index, type name, or instance ID. - Use Case: Before adjusting a camera's field of view via automation, run this tool to read the Camera component's current serialized values and confirm you are targeting the correct component. ## Quick Start Ask the AI to get the details of the Transform component on the GameObject named Player, including its serialized fields.

Frequently Asked Questions about gameobject-component-get

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get component data from a Unity GameObject?

Run the gameobject-component-get tool through unity-mcp-cli with a gameObjectRef and componentRef. Set includeFields or includeProperties to true to also retrieve serialized member data.

How do I find which components a GameObject has before inspecting one?

Use the gameobject-find tool first to list all components attached to the GameObject. Then pass the desired component's index, type name, or instance ID as the componentRef to this tool.

What is the difference between includeFields and includeProperties?

includeFields returns the component's serialized fields, while includeProperties returns its serialized properties. Both are optional booleans and can be enabled independently or together.

What does deepSerialization do in this tool?

deepSerialization expands all nested objects within the component's serialized data instead of only serializing top-level members. Use it when you need the full internal structure of complex component data.

Why is unity-mcp-cli not found when running the command?

The CLI is either not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli instead.