assets-prefab-close

Close the currently opened Unity prefab and exit editing mode.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill assets-prefab-close-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-prefab-close
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/assets-prefab-close
Command: npx skills add https://github.com/sprillion/gem_td --skill assets-prefab-close-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Closes the currently opened Unity prefab to exit prefab editing mode in the Unity Editor, allowing you to finalize or discard edits as needed.

Core Features & Use Cases

  • Close an actively edited prefab to end the editing session.
  • Integrates with the assets-prefab-open workflow to reopen a prefab when further changes are required.
  • Returns a AssetObjectRef that identifies the closed prefab and its asset metadata for downstream tooling.

Quick Start

Close the currently opened prefab by invoking the assets-prefab-close tool with the save flag set to true to save changes or false to discard them.

Frequently Asked Questions about assets-prefab-close

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I close a prefab in the Unity Editor to end an editing session?

You can close a prefab by invoking the close tool with a save flag set to true or false. This exits prefab editing mode and returns an AssetObjectRef identifying the closed prefab and its asset metadata for downstream tooling.

Can I discard changes when closing a Unity prefab?

Yes, you can discard changes when closing a Unity prefab by setting the save input to false. This exits the prefab editing session without applying your modifications to the asset.

What does the Unity prefab close tool return after exiting edit mode?

The Unity prefab close tool returns an AssetObjectRef that identifies the closed prefab and its asset metadata. This output enables downstream tooling to reference the finalized prefab asset directly.

How do I automate the Unity prefab save workflow after making modifications?

You can automate the Unity prefab save workflow by invoking the close tool with the save flag set to true. This automatically exits prefab editing mode and applies user-specified changes to ensure consistency across scenes.

Does the Unity prefab close tool require any dependencies or components?

The Unity prefab close tool requires no dependencies or components. It functions as a standalone editor automation tool to exit prefab editing mode and finalize or discard edits directly.