vasyab / UnityPickers

Value selection controls for Unity game engine editor.
MIT License
33 stars 3 forks source link
editor-extension unity unity3d workflow

Unity Pickers

Custom pickers for Unity game engine editor.

Asset Picker

Replacement for default object selection window that shows folders structure and enables filtering by asset path.

Enum Picker

Replacement for default enum selection popup. Allows filtering by value names.

Type Picker

Type selection button for your custom editors.

Features

Getting Started

Installing

  1. Copy Assets/UnityPickers and Assets/Editor/UnityPickers to your Unity project.
  2. Asset Picker will be instantly enabled for ScriptableObject fields in user-defined types.
  3. You can mark specific field with [AssetPicker] attribute to enable Asset Picker for it.
  4. Enum Picker will be instantly enabled for all user-definded enum fields.

Preview

  1. Open bundled project in Unity (I was using 2017.1.1p4).
  2. Open START_HERE asset in inspector and hit object selection buttons near fields to open Asset Picker.
  3. Click on enum value of Monster Type field to show Enum Picker.
  4. STAR_HERE type is defined in StartHereAsset.cs. Threre are some field attributes.
  5. Select Tools/Asset Picker menu or hit Ctrl+Alt+Shift+O to open Asset Picker in browsing mode.

Motivation

Unity Pickers are part of our toolset for Pathfinder: Kingmaker production. They are addressing following issues:

Authors

Licence

This code is distributed under the terms and conditions of the MIT license.