gameobject-component-add
Installation
SKILL.md
GameObject / Component / Add
Add Component to GameObject in opened Prefab or in a Scene. Use 'gameobject-find' tool to find the target GameObject first. Use 'gameobject-component-list-all' tool to find the component type names to add.
Inputs
componentNames— list of component type names. Each entry may be a fully-qualified type name (preferred) or a bare class name (resolved via fallback toAllComponentTypes).gameObjectRef— the target GameObject. Required.
Behavior
Per-name errors (unknown type, type not assignable to UnityEngine.Component, add-failed/duplicate) are accumulated in response.Errors / response.Warnings instead of throwing, so a single bad name does not abort the whole batch. Successful additions populate response.AddedComponents with ComponentDataShallow snapshots.