UI Elements
Showcase Panel
Feature selected content with a coordinated background and description
Overview
Showcase Panel switches a featured background and description using a generated set of item buttons. It supports timed selection and live item generation in the editor.
Usage
Create a Showcase Panel prefab.
Add items and assign the button preset and parent.
Choose whether the panel advances on a timer.
Public API
Use ShowcasePanel in the Evo.UI namespace.
Call Refresh() after editing items directly.
Properties
| Name | Type | Description |
|---|---|---|
CurrentIndex | int | Current selected item index. |
Fields
| Name | Type | Description |
|---|---|---|
items | List<Item> | ShowcasePanel.Item entries. |
setWithTimer | bool | Enables automatic item changes. |
timer | float | Delay between automatic changes. |
Methods
| Name | Parameters | Description |
|---|---|---|
Refresh() | None | Refreshes generated buttons and content. |
SetItem() | int index | Displays an item by index. |
Example
using UnityEngine;
using Evo.UI;
public class ShowcasePanelExample : MonoBehaviour
{
[SerializeField] private ShowcasePanel target;
private void Start()
{
target.setWithTimer = false;
target.Refresh();
target.SetItem(0);
}
}