unity_component_set_property
Set any property value on a Unity component, including floats, ints, strings, bools, vectors, colors, and object references, by specifying the target GameObject path, component type, and property name.
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. |