Unity-UI-Extensions.GitHub.io

Accordion

An Accordion style control with animated segments.


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

A menu style control with pop-out sub elements like a hover bar.


Usage

Add the accordion control to your scene using:

GameObject -> UI -> Extensions -> Accordion Group

Additional child elements can be added using:

GameObject -> UI -> Extensions -> Accordion Element

To get started with your first accordion, simply follow these steps:

Accordion Element setup

Accordion Element Header

Accordion Header Content

Feel free to duplicate and update your Accordion Elements to fill up your group.

The Group can be set to Expand Instantly or use a Tween function to animate the entrance of each Accordion Element child text by setting the Transition on the group as shown below.

Accordion Group Transition

Currently the control is only designed for Vertical Transition of vertically stacked items. For additional layouts, please log an issue on the site with your requirements.


Video Demo

demo video


See also

Some tips are here: Accordion Type Layout including how to collapse nested child elements so they no longer appear.


Credits and Donation

ChoMPHi


Sourced from