64067d97b4
* Radial layout * Tile Size Fitter * UI Circle Primative * Switch to RectTransform * Input Field Enter Submit (alt to ReturnKeyTrigger) |
||
---|---|---|
Scripts | ||
.hgignore | ||
.hgtags | ||
LICENSE | ||
LICENSE.meta | ||
README.md | ||
README.md.meta | ||
Scripts.meta | ||
UnityUIExtensions-4.x.unitypackage | ||
UnityUIExtensions-4.x.unitypackage.meta | ||
UnityUIExtensions-5.1.unitypackage | ||
UnityUIExtensions-5.1.unitypackage.meta | ||
package.json | ||
package.json.meta |
README.md
README
This is an extension project for the new Unity UI system which can be found at: Unity UI Source
#Updated for 5.2 - new asset package#
##Intro## For more info, here's a little introduction video for the project:
What is this repository for?
In this repository is a collection of extension scripts to enhance your Unity UI experience. These scripts have been gathered from many sources and combined and improved over time. (The majority of the scripts came from the Scripts thread on the Unity UI forum here) You can either download / fork the project to access the scripts, or you can download this precompiled Unity Asset, chock full of goodness
Unity UI Extensions Unity 4.x Asset###
Unity UI Extensions Unity 5.1 Asset###
Unity UI Extensions Unity 5.2 Asset###
##Getting Started## To get started with the project, here's a little guide:
Controls and extensions listed in this project are:
Controls
================
Control | Description | Menu Command | Component Command | Notes | Credits |
---|---|---|---|---|---|
Accordion | An Acordian style control with animated segments. Sourced from [here]. | N/A | Component / UI / Extensions / AccordionGroup | demo video | ChoMPHi |
Component / UI / Extensions / AccordionItem | demo video | ChoMPHi | |||
HSVPicker | A colour picker UI | N/A | UI / Extensions / HSVPicker | Project folder includes prefab and sample scene | judah4 |
SelectionBox | An RTS style selection box control | UI / Extensions / Selection Box | UI / Extensions / Selection Box | tutorial video | Korindian, BenZed |
HorizontalScrollSnap | A pages scroll rect that can work in steps / pages, includes button support | UI / Extensions / Horizontal Scroll Snap | UI / Extensions / Horizontal Scroll Snap | tutorial video | BinaryX |
VerticalScrollSnap | A pages scroll rect that can work in steps / pages, includes button support | UI / Extensions / Vertical Scroll Snap | UI / Extensions / Vertical Scroll Snap | tutorial video | BinaryX, Simon Darkside Jackson |
UIButton | Improved Button control with additional events (PointerDown, PointerUp, PointerClick and PointerHeld) | UI / Extensions / UI Button | UI / Extensions / UI Button | Will update video, this has now been updated to a more reusable Selectable extension | AriathTheWise |
UIFlippable | Improved Image control with image flipping options | UI / Extensions / UI Flippable | UI / Extensions / Flippable | tutorial video | ChoMPHi |
UIWindowBase | A draggable Window implementation | UI / Extensions / UI Window Base | UI / Extensions / UI Window Base | tutorial video | GXMark, alexzzzz, CaoMengde777, TroyDavis |
ComboBox | A fixed combobox implementation for text | UI / Extensions / ComboBox | UI / Extensions / ComboBox | tutorial video | Perchik |
AutoCompleteComboBox | A text combobox with autocomplete selection | UI / Extensions / AutoComplete ComboBox | UI / Extensions / AutoComplete ComboBox | tutorial video | Perchik |
DropDownList | A basic drop down list with text and image support | UI / Extensions / Dropdown List | UI / Extensions / Dropdown List | tutorial video | Perchik |
BoundToolTip | An alternate Tooltip implementation with central listener | UI / Extensions / Bound Tooltip / Tooltip | UI / Extensions / Bound Tooltip / Tooltip Item | Offset and tooltip placement needs work | Martin Sharkbomb |
UI / Extensions / Bound Tooltip / Tooltip Trigger | Martin Sharkbomb | ||||
LineRenderer | Graphic control for drawing lines in the UI System | UI / Extensions / UI Line Renderer | UI / Extensions / UI Line Renderer | tutorial video | jack.sydorenko |
UILineTextureRenderer | Graphic control for drawing lines in the UI System | UI / Extensions / UI Line Texture Renderer | UI / Extensions / UI Line Texture Renderer | tutorial video | jack.sydorenko, jonbro5556 |
Effect components
=====================
Effect | Description | Component Command | Notes | Credits |
---|---|---|---|---|
BestFitOutline | An improved outline effect | UI / Effects / Extensions / Best Fit Outline | Melang | |
CurvedText | A Text vertex manipulator for those users NOT using TextMeshPro (why ever not?) | UI / Effects / Extensons / Curved Text | Breyer | |
Gradient | Apply vertex colours in a gradient on any UI object | UI / Effects / Extensions / Gradient | Breyer | |
LetterSpacing | Allows finers control of text spacing | UI / Effects / Extensions / Letter Spacing | Deeperbeige | |
NicerOutline | Another outline control | UI / Effects / Extensions / Nicer Outline | Melang | |
RaycastMask | An example of an enhanced mask component able to work with the image data. Enables picking on image parts and not just the Rect Transform | UI / Effects / Extensions / Raycast Mask | senritsu | |
UIFlippable | Image component effect to flip the graphic | UI / Effects / Extensions / UI Flippable | ChoMPHi |
Additional Components##
=======================
Component | Description | Component Command | Notes | Credits |
---|---|---|---|---|
ReturnKeyTrigger | Does something?? | UI / Extensions / ReturnKey Trigger | Melang, ddreaper | |
TabNavigation | An example Tab navigation script, updated to add manual navigation | UI / Extensions / Tab Navigation | Melang, omatase | |
uGUITools | Menu / uGUI | Senshi | ||
FlowLayoutGroup | A more rugged grid style layout group | Layout / Extensions / Flow Layout Group | Example Video | Simie |
ScrollRectTweener | Tweening solution for ScrollRects, add smoothing automatically | UI / Extensions / ScrollRectTweener | Martin Sharkbomb | |
ScrollRectLinker | ScrollRect Linker script, enable multiple ScrollRects to move together | UI / Extensions / ScrollRectLinker | Martin Sharkbomb | |
ScrollRectEx | Improved ScrollRect control, enables support for Nested ScrollRects | UI / Extensions / ScrollRectEx | CaptainSchnittchen, GamesRUs | |
InputFocus | Enhanced InputField control for forms, enables Enter to submit and other features | UI / Extensions / InputFocus | Zelek | |
ImageExtended | Improved Image control with rotation support and use of filled type without an Image (useful for masks) | UI / Extensions / Image Extended | Ges | |
UIScrollToSelection | Enables a ScrollRect to scroll based on the selected child automatically | UI / Extensions / UIScrollToSelection | zero3growlithe | |
AimerInputModule | Replacement Input module to allow for a reciclue to interace with WorldSpace canvas UI | UI / Extensions / Aimer Input Module | Chris Trueman | |
UISeclectableExtension | Refactor of original UI Button control, can now add Press/Release and Hold events to any Selectable control | UI / Extensions / UI Selectable Extension | AriathTheWise / Simon Jackson |
More to come
How do I get set up?
Either clone / download this repository to your machine and then copy the scripts in, or use the pre-packaged .UnityPackage for your version of Unity and import it as a custom package in to your project.
Contribution guidelines
Got a script you want added, then just fork and submit a PR. All contributions accepted (including fixes) Just ensure
- The header of the script matches the standard used in all scripts
- The script uses the Unity.UI.Extensions namespace so they do not affect any other developments
- (optional) Add Component and Editor options where possible (editor options are in the Editor\UIExtensionsMenuOptions.cs file)
License
All scripts conform to the BSD license and are free to use / distribute. See the LICENSE file for more information
Like what you see?
All these scripts were put together for my latest book Unity3D UI Essentials Check out the page on my blog for more details and learn all about the inner workings of the new Unity UI System.
The downloads
As this repo was created to support my new Unity UI Title "Unity 3D UI Essentials", in the downloads section you will find two custom assets (SpaceShip-DemoScene-Start.unitypackage and RollABallSample-Start.unitypackage). These are just here as starter scenes for doing UI tasks in the book.
I will add more sample scenes for the UI examples in this repository and detail them above over time.