Code Monkey home page Code Monkey logo

prefabpalette's Introduction

PrefabPalette

This tool provides you with a handy tool for building scenes in Unity, as an alternative to dragging prefabs into your scene one-by-one.

Creating a Palette

First, you create a PrefabPalette, which is a group of objects that you will be able to place into the scene.

Assets ➞ Create ➞ Prefab Palette

Once you have a palette, you can add objects to it from its inspector view.

You can press + Folder to add all prefabs located in a folder. After, you can press ↺ Folder will reload from that folder.

Once you've had a palette, you want to open the PrefabPalette window.

Window ➞ Prefab Palette

From here, you can select which palette you want to use, and which object you want to place in the scene.

Placing Prefabs

When placing an object, you will see a preview of where you'll place it, and you can click multiple times to stamp the object.

The mouse raycasts into the scene to find where to place the object. This makes it easy for you to place objects directly onto your level geometry.

You can select which objects are are raycasted against by modifying the Raycast Mask property.

Place on Only Floors

If you check Only Up Normals, the placement will only consider surfaces that are facing upwards, which is useful if you only want to place objects onto floors.

Rotation & Scale

The Rotation Mode and Scale Mode parameters are handy tools which let you control the rotation and size of the objects when you place them. In the screenshot above, I have chosen to have each object I place randomly rotated up to 360 degrees on the Y-axis.

Default Scene Controls

If you want to return to Unity's default scene controls, press Stop Placement or the Escape key.

prefabpalette's People

Contributors

chevyray avatar

Watchers

Edd Parris avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.