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 

Modern UI Pack

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Others & Add-ons
  1. Home
  2. Modern UI Pack
  3. UI Elements
  4. Window Manager
Updated on August 3, 2022

Modern UI Pack

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Others & Add-ons

Window Manager

Author: admin 224 views

In order to add your own content to an existing panel, just drag your stuff under [Window Name] > Content object. As long as your stuff is a child of Content, it’ll be automatically animated.

Adding a new window

Duplicate an existing panel to create a new one. If you want, you can also create or duplicate a button. After duplicating the objects, assign them into Window Manager. As long as ‘Initialize Buttons’ is enabled, you don’t have to call WindowManager.OpenWindow().

Properties

Property Type Function
currentWindowIndex
int

Returns the selected window item index.

cullTransparentWindows
boolean

Disable inactive windows.

initializeButtons
boolean

Automatically initialize window buttons.

onWindowChange
UnityEvent

Process dynamic events on window change.

Scripting

				
					using Michsky.MUIP; // MUIP namespace
using UnityEngine;

public class SampleClass : MonoBehaviour
{
    [SerializeField] private WindowManager myWindowManager;

    void YourFunction()
    {
        myWindowManager.OpenWindow("Your Window Name"); // open a specific window
        myWindowManager.OpenWindowByIndex(1); // open a specific window by index
        myWindowManager.NextWindow(); // open next page
        myWindowManager.PrevWindow(); // open previous page
        myWindowManager.ShowCurrentWindow(); // show current window
        myWindowManager.HideCurrentWindow(); // hide current window
        myWindowManager.ShowCurrentButton(); // show current window button
        myWindowManager.HideCurrentButton(); // hide current window button
    }
}				
			

How can we help?

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

© 2024 Michsky