unity-prefab

Manage Unity prefab assets and instances with batch operations and overrides.

8|1|Updated Oct 7, 2025
One-click install
npx skills add https://github.com/Zzulin/unity-project01 --skill unity-prefab-zzulin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-prefab
Source: https://github.com/Zzulin/unity-project01/tree/main/URP1/Plugins/Unity-Skills-main/SkillsForUnity/unity-skills~/skills/prefab
Command: npx skills add https://github.com/Zzulin/unity-project01 --skill unity-prefab-zzulin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and synchronizing prefab assets and their instances across scenes can be repetitive, error-prone, and time-consuming; this Skill centralizes creation, instantiation, modification, and inspection of prefabs to reduce manual work and mismatches.

Core Features & Use Cases

  • Batch Instantiation: Spawn many prefab instances in a single call to improve performance and reduce API overhead.
  • Prefab Asset Management: Create prefabs from scene objects, set properties directly on prefab assets, and create variants without instantiating.
  • Instance Operations & Overrides: Apply instance changes back to the source prefab, unpack prefab instances, list and revert overrides, and find all instances of a prefab in a scene.
  • Use Case: Quickly generate level objects by batch-instantiating enemy prefabs, set material or audio references on a prefab asset, then apply changes so all instances update.

Quick Start

Instantiate a batch of Enemy prefabs spaced 2 units apart using prefab_instantiate_batch with prefabPath Assets/Prefabs/Enemy.prefab.

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 in a scene?

Batch instantiate Unity prefabs by calling prefab_instantiate_batch with a prefab asset path to spawn multiple instances in a single call, reducing API overhead and improving performance during level design.

Can I modify Unity prefab asset properties without instantiating them?

You can set properties directly on Unity prefab assets without instantiation, allowing you to update material or audio references on the source asset so all existing instances reflect the changes immediately.

How do I apply instance overrides back to a source Unity prefab?

Apply instance overrides back to a source Unity prefab by using the apply changes feature, which synchronizes modified instance properties with the original prefab asset to prevent mismatches across scenes.

What is the best way to create a Unity prefab variant from an existing asset?

Create a Unity prefab variant directly from an existing asset using variant creation features, which allows you to derive modified versions without instantiating the base prefab into the scene first.

Do I need editor-level access to find all instances of a prefab in a Unity scene?

Yes, finding all instances of a prefab in a Unity scene requires editor-level access to project Assets paths and instance identifiers to correctly query and manage the scene hierarchy.

How do I unpack a Unity prefab instance and revert its overrides?

Unpack a Unity prefab instance and revert its overrides using the unpack and revert override features, which disconnect the instance from the source asset and restore original prefab property values.