unity-prefab

Automate Unity prefab creation, instantiation, modification, and unpacking operations.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-prefab-yuan-zzzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-prefab
Source: https://github.com/Yuan-Zzzz/FrogRE/tree/main/.codex/skills/unity-skills/skills/prefab
Command: npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-prefab-yuan-zzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity prefab management is streamlined to let you create, instantiate, apply changes to, and unpack prefabs across scenes, reducing repetition and ensuring consistency in your workflows.

Core Features & Use Cases

  • Create a prefab from a scene object with prefab_create
  • Instantiate prefabs into a scene individually or in batches with prefab_instantiate and prefab_instantiate_batch
  • Apply changes back to the prefab asset with prefab_apply and manage overrides with prefab_get_overrides, prefab_apply_overrides, and prefab_revert_overrides
  • Create variants and find all prefab instances with prefab_create_variant and prefab_find_instances
  • Set properties directly on prefab assets using prefab_set_property for precise edits

Quick Start

Instantiate multiple prefab instances in a single call using prefab_instantiate_batch with an items array detailing prefabPath, name, and positions.

Frequently Asked Questions about unity-prefab

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

FAQPage Schema
How do I batch instantiate Unity prefabs into a scene?

Manage Unity prefab overrides using prefab_get_overrides to inspect changes, prefab_apply_overrides to commit them to the asset, and prefab_revert_overrides to discard modifications and restore the original prefab state.

Can I create a prefab variant programmatically for game development?

You can create a prefab variant programmatically using prefab_create_variant, which generates a variant asset that inherits from a base prefab while allowing specific overrides for game development workflows.

What is the best way to apply changes from a scene instance back to a Unity prefab asset?

The best way to apply changes from a scene instance back to a Unity prefab asset is using the prefab_apply operation, which synchronizes modifications made to in-scene instances directly to the source prefab.

How do I find all instances of a prefab in a Unity scene?

Find all instances of a prefab in a Unity scene by using prefab_find_instances, which queries the active scene hierarchy to locate and return all instantiated objects linked to the specified prefab asset.

Does this support unpacking Unity prefabs and setting properties directly on assets?

Yes, it supports unpacking Unity prefabs with prefab_unpack to break prefab connections, and allows setting properties directly on prefab assets using prefab_set_property for precise edits without manual scene modification.