gameobject-component-get
Retrieve detailed information about a specific component on a Unity GameObject, including its type, enabled state, and serialized fields or properties, to inspect component data before making modifications.
Instructions
Get detailed information about a specific Component on a GameObject. Returns component type, enabled state, and optionally serialized fields and properties. Use this to inspect component data before modifying it. Use 'gameobject-find' tool to get the list of all components on the GameObject.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectRef | Yes | Target GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} | |
| componentRef | Yes | Component to get. SCHEMA: {"typeName":"Transform"} or {"typeName":"BoxCollider","index":0} | |
| includeFields | No | Include serialized fields of the component. | true |
| includeProperties | No | Include serialized properties of the component. | true |
| deepSerialization | No | Performs deep serialization including all nested objects. Otherwise, only serializes top-level members. | false |