unity_component_set_property
Set a property value on a Unity component by specifying the GameObject path, component type, property name, and value. Supports floats, ints, strings, bools, vectors, colors, and object references via asset paths, scene object names, or null.
Instructions
Set a property value on a component. Supports floats, ints, strings, bools, vectors, colors, and object references. For ObjectReference properties, pass value as: an asset path string, a scene object name string, null to clear, or an object with {assetPath}, {instanceId}, or {gameObject, componentType}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectPath | Yes | Path or name of target GameObject | |
| componentType | Yes | Component type name | |
| propertyName | Yes | Name of the property to set | |
| value | Yes | Value to set (type depends on property). For ObjectReference: string asset path, string scene object name, null, or {assetPath?, instanceId?, gameObject?, componentType?} | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |