gameobject-set-parent
Installation
SKILL.md
GameObject / Set Parent
Set parent GameObject to list of GameObjects in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObjects first.
Inputs
gameObjectRefs— list of children to reparent.parentGameObjectRef— new parent. Must resolve, otherwise the call returns early with an error string.worldPositionStays(defaulttrue) — preserve world-space transform when reparenting (passed toTransform.SetParent).
Behavior
Iterates gameObjectRefs and reparents each one independently; per-item resolve errors are appended to the returned status string instead of throwing. After the loop, if at least one reparent succeeded, marks the active scene dirty and repaints editor windows.