Logo
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.

Preview

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

NameTypeDescription
CurrentIndexintCurrent selected item index.

Fields

NameTypeDescription
itemsList<Item>ShowcasePanel.Item entries.
setWithTimerboolEnables automatic item changes.
timerfloatDelay between automatic changes.

Methods

NameParametersDescription
Refresh()NoneRefreshes generated buttons and content.
SetItem()int indexDisplays an item by index.

Example

ShowcasePanelExample.cs
using UnityEngine;
using Evo.UI;

public class ShowcasePanelExample : MonoBehaviour
{
    [SerializeField] private ShowcasePanel target;

    private void Start()
    {
        target.setWithTimer = false;
        target.Refresh();
        target.SetItem(0);
    }
}

On this page