gameobject-component-get

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

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-component-get-ivanmurzak
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-component-get
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/gameobject-component-get
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-component-get-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly inspect a specific Component on a GameObject to understand its type, enabled state, and serialized data before making changes.

Core Features & Use Cases

  • Inspect a GameObject's Component data, including type, enabled state, and optional serialized fields and properties.
  • Use path-scoped reads (paths) or viewQuery to selectively read fields and navigate nested objects for precise debugging.
  • Use Case: Imagine you need to verify which component on a prefab has the Transform component disabled and inspect its serialized fields before applying a fix.

Quick Start

Select a GameObject and a Component, then run the command to fetch its type, enabled state, and serialized data.

Frequently Asked Questions about gameobject-component-get

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

FAQPage Schema
How do I inspect a Unity GameObject component to view its serialized fields?▼

Inspect a Unity GameObject component to view its serialized fields by selecting the GameObject and component, then fetching its type, enabled state, and serialized data. This allows you to verify component data before applying fixes.

What is deep serialization in Unity component debugging?▼

Deep serialization in Unity component debugging is an optional mechanism to return detailed information about nested serialized fields and properties. It enables precise inspection of complex component data structures across GameObjects, prefabs, or scenes.

How can I read specific fields from a Unity component using path-scoped queries?▼

Read specific fields from a Unity component by applying path-scoped reads or viewQuery parameters. This selectively navigates nested objects and fetches precise serialized data, returning a structured response for targeted debugging workflows.

Can I check if a component is disabled on a Unity prefab without entering play mode?▼

Yes, you can check if a component is disabled on a Unity prefab without entering play mode. The inspection validates the component reference and returns its enabled state alongside its serialized field data for immediate review.

Does Unity component inspection work across individual scenes and prefabs?▼

Unity component inspection works across individual GameObjects, prefabs, and scenes. It validates input references and returns a structured response containing the component type, enabled state, and optional serialized properties regardless of the source.