Page cover

Prefab and Object Manager

v4.0

Overview

The Prefab And Object Manager is a component you can attach to any object in your scene, which makes it very easy to create groups of Game Objects and Prefabs -- individually or mixed together -- which you can turn on in your project with a single line of code.

For static game objects, such as furniture in a room, or props on a table, this script is all you need.

For characters or other objects using the wardrobe and/or blend shapes, you may want to also add the Wardrobe Prefab Manager (required for rigging objects added to the scene), and the Blend Shapes Manager (required for working with mesh morphing).

Setup

Select the parent of the object -- often the "place" where objects will be related to, or for wardrobe, the character. In the inspector, click "Add Component", and search for Prefab And Object Manager. Add it!

Inspector

There are three tabs in the Inspector.

This is where you create and manage your Prefab Groups. Type in the "Type", and the sort order will update. Name the "Group Name" something unique, as this is used with scripting.

At edit time, use the "Activate" and "Deactivate" buttons to see the results.

See full details on the Prefab Groups page.

Last updated

Was this helpful?