Set Property
set_propertySet a Unity component property on a specific GameObject or bulk-set on all scene objects with a matching component, with optional dry-run preview.
Instructions
Set component property (Edit Mode, SerializedObject — for Play Mode use invoke_method or execute_code).
find_type: component type — bulk-sets prop on all matching objects without specifying paths.
For GO rename use rename_object(). ObjectReference: scene path (/Player), asset path (Assets/X.mat), sub-asset (Assets/X.fbx::ClipName), $hexId (e.g. $3E8) or #instanceID (legacy), or 'null'. dry_run=True shows what would change without applying.
ref_component_type: when value is a plain scene path and the field expects a specific Component type (e.g. 'BoxCollider'), appends '::TypeName' to the value so C# resolves the correct component. Ignored when value already contains '::'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Scene path to the GameObject (e.g. /Player/Body) | |
| prop | No | Property name as shown in Inspector (e.g. 'mass', 'localPosition.x') | |
| value | No | New value. ObjectReference: scene path (/Player), asset path (Assets/X.mat), sub-asset (Assets/X.fbx::ClipName), $hexId (e.g. $3E8) or #instanceID (legacy decimal), or 'null' | |
| dry_run | No | Show what would change without applying (safe preview) | |
| component | No | Component type (empty string = Transform) | |
| find_type | No | Component type — bulk-sets prop on ALL scene objects with this component (no path needed) | |
| ref_component_type | No |