A component responsible for managing app windows. It is mostly used with ‘Window Panel Manager’ component and attached to all app window objects.
using UnityEngine;
using Michsky.DreamOS; // DreamOS namespace
public class SampleClass : MonoBehaviour
{
[SerializeField] private WindowManager windowManager; // Manager variable
void YourFunction()
{
// Open or close the window
windowManager.OpenWindow();
windowManager.CloseWindow();
// Minimize the window
windowManager.MinimizeWindow();
// Fullscreen the window
windowManager.FullscreenWindow();
// Focus to window
windowManager.FocusToWindow();
// Expands or minimizes navbar
windowManager.AnimateNavbar();
}
}
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.