object-get-data

Retrieve serialized Unity Object fields and properties via paths or viewQuery.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieves serialized data of a specified Unity Object, including its fields and properties, enabling quick inspection and export for debugging and tooling workflows. If you need to modify the data, use the object-modify tool.

Core Features & Use Cases

  • Serialize all fields and properties of a UnityObject to a readable, structured representation.
  • Path-scoped reads to selectively serialize only targeted fields or subtrees, reducing data size and noise.
  • ViewQuery-based navigation to filter by path, depth, name patterns, or runtime type for precise data capture.
  • Use Case: Debug a scene by exporting the complete state of a GameObject, then compare against expected values in tests.

Quick Start

Use object-get-data to serialize a Unity Object by providing its objectRef and optional paths or a viewQuery.

Frequently Asked Questions about object-get-data

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

FAQPage Schema
How do I serialize Unity Object fields and properties for debugging?

To serialize Unity Object data for debugging, provide an objectRef to retrieve all fields and properties as a structured, readable representation. This allows quick state inspection and export without manually traversing the object hierarchy.

What is the best way to read specific subtrees of a Unity Object without serializing everything?

Path-scoped reads allow selective serialization of targeted fields or subtrees within a Unity Object. By providing optional paths alongside the objectRef, you reduce data size and noise by returning only the necessary data.

Can I filter Unity GameObject data by depth, name pattern, or runtime type?

Yes, ViewQuery-based navigation filters serialized Unity Object data by path, depth, name patterns, or runtime type. This captures precise data segments required for tooling workflows and detailed scene debugging.

Does object-get-data support modifying the serialized Unity Object fields?

No, object-get-data only retrieves and serializes Unity Object data for inspection and debugging. To modify the data, you must use the separate object-modify tool to apply changes to the targeted fields or properties.

How do I export a complete GameObject state to compare against expected test values?

Serialize the complete GameObject state by providing its objectRef to retrieve all fields and properties. Export the resulting structured representation to compare actual runtime values against expected test values.