Michsky – Docs Michsky – Docs
  • Home 
  • Documentation 
    • Hex UI 
    • Beam UI 
    • Reach UI 
    • Heat UI 
    • DreamOS 
    • Modern UI Pack 
    • Loading Screen Studio 
    • Dark UI 
    • Motion Titles Pack 
  • Contact 
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home 
  • Documentation 
    • Hex UI 
    • Beam UI 
    • Reach UI 
    • Heat UI 
    • DreamOS 
    • Modern UI Pack 
    • Loading Screen Studio 
    • Dark UI 
    • Motion Titles Pack 
  • Contact 

Hex UI

  • Quick Start
  • Animations
  • Controller & Input
    • Controller Manager
    • Controller Presets
    • Hotkey Event
    • UI Navigation
  • Handlers & Managers
    • Audio
    • Chapters
    • Credits
    • Effects
    • In-Game
  • Localization
    • Getting Started
    • Localization Settings
    • Localization Manager
    • Localized Object
  • UI Elements
    • Button
    • Dropdown
    • Modal Window
    • Notifications
    • Panel Manager
    • Progress Bar
    • Selectors
    • Slider
    • Switch
    • Timer
    • Widgets
    • Others
  • UI Manager
  • Others & Add-ons
  • FAQs
  1. Home
  2. Hex UI
  3. UI Elements
  4. Panel Manager
Updated on May 19, 2024

Hex UI

  • Quick Start
  • Animations
  • Controller & Input
    • Controller Manager
    • Controller Presets
    • Hotkey Event
    • UI Navigation
  • Handlers & Managers
    • Audio
    • Chapters
    • Credits
    • Effects
    • In-Game
  • Localization
    • Getting Started
    • Localization Settings
    • Localization Manager
    • Localized Object
  • UI Elements
    • Button
    • Dropdown
    • Modal Window
    • Notifications
    • Panel Manager
    • Progress Bar
    • Selectors
    • Slider
    • Switch
    • Timer
    • Widgets
    • Others
  • UI Manager
  • Others & Add-ons
  • FAQs

Panel Manager

Author: admin 66 views

This component manages multiple panels, similar to the tab system.

Adding panels

In order to add a new panel, follow these steps:

  1. Select the panel manager object (e.g. Main Content in the demo scene) and add a new list item.
  1. Set an unique panel name, duplicate one of the existing panel object and assign the new object to the ‘Panel Object’ field.
  1. (Optional) Assign a button to the ‘Panel Button’ or ‘Alt Panel Button’ field.

Deleting panels

In order to delete an existing panel, follow these steps:

  1. Select the panel manager object (e.g. Main Content in the demo scene) and remove the list item.
  1. Delete any remaining objects such as panel and/or button objects.

Scripting

				
					using UnityEngine;
using Michsky.UI.Hex; // Namespace

public class SampleClass : MonoBehaviour
{
    [SerializeField] private PanelManager myPanels;

    void Start()
    {
        // Open panel
        myPanels.OpenPanel("Panel Name");

        // Open panel by list index
        myPanels.OpenPanelByIndex(1);

        // Set the animation speed
        myPanels.animationSpeed = 1;

        // Add panel events
        myPanels.onPanelChanged.AddListener(TestFunction);
    }

    void TestFunction(int index)
    {
        Debug.Log("Selected panel: " + myPanels.panels[index].panelName);
    }
}				
			

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

© 2024 Michsky