Prefab Browser - simeonradivoev/Unity-Open-Source-Tools GitHub Wiki

Contents

Introduction

The prefab browser is a simple one file tool, that helps with the organisation and placing of prefabs in scenes. This tool is especially useful to level designer. It adds some simple handy tools for placing prefabs. Some of the features include:

Features

  • Smart prefab placing: A smarter drag and drop placing tool, that calculates the rendering boundaries and puts the object flush with the ground no matter it's rotation. You can see it in action below.
  • Prefab Painting: A simple object placing tool, that allows you to select a prefab and activly place it down in scene as shown in the animation below.
  • Rotation Shortcuts: Rotation shortcuts, when placing prefabs, so you don't have to place them and then rotate them. To see how to use the shortcuts refer to the Usage section below.
  • Prefab replace wizard: A simple wizard that allows you to replace instances of objects in your scene with prefabs. You can either choose to copy the position, rotation and scale to the newly placed prefab or not. This wizard works with combination with the prefab browser and automatically assigns the selected prefabs.

Usage

The tool simply searches for a given prefab label, that needs to defined in all prefabs that want to be shown in the Prefab Browser itself. The default label is "Prefab". This however can be changed in the settings menu, by editing the "Prefab Label" option. As for installation, just place the script anywhere in the the Editor folder in project.

Shortcuts

  • Rotation when dragging: To use the rotation shortcut while dragging, just hold either 'Shift','Control' or 'Alt' for each rotation axis, then just move the mouse either left or right to rotate the prefab while dragging it.
  • Rotation when painting: Using the rotation shortcuts while painting is much the same as while dragging. Hold either 'Shift', 'Control' or 'Alt' for each rotation angle, then instead of dragging the mouse, drag the mouse scroll wheel to rotate the object.

Screenshots

Smarter Prefab Placing

drag and drop placing

Prefab Painting

prefab painting

Contributions and donations

Feel free to make changes and improve the tool. Feature requests are welcome in the Issues page. Major changes will be pushed to the Asset store so that everybody can use the tool and reap its benefits.

If you want to donate just follow Donate