Documentation
README
Assets / Prefab / Close
Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first.
Inputs
save(defaulttrue) — whentrue, callsPrefabUtility.SaveAsPrefabAssetbefore exiting the stage; whenfalse, the save is skipped. The prefab stage's dirtiness is always cleared at the end, so any unsaved changes are discarded whensaveisfalse.
Behavior
Throws when no prefab stage is currently open. Returns an AssetObjectRef for the closed prefab asset.
How to Call
unity-mcp-cli run-tool assets-prefab-close --input '{
"save": false
}'
This is the opening of the README. Read the full README on GitHub.