In-Game
HUD Manager
Controls the visibility of the HUD and allows dynamic transition at runtime.
Pause Menu Manager
Controls the visibility of the pause menu. It is triggered by hotkeys. It allows you to set the cursor state and manages the timescale based on the ‘Set Timescale’ option. If you want to block the hotkey input for specific amount of time, you can change the ‘Input Block Duration’ parameter.
Scripting
using UnityEngine;
using Michsky.UI.Heat; // Heat UI namespace
public class SampleClass : MonoBehaviour
{
[SerializeField] private HUDManager hudManager;
[SerializeField] private PauseMenuManager pauseManager;
void Start()
{
// Manually set hud visibility
hudManager.SetVisible(true);
// Automatically set hud visibility
hudManager.SetVisible();
// Automatically animate pause menu
pauseManager.AnimatePauseMenu();
// Open or close pause menu
pauseManager.OpenPauseMenu();
pauseManager.ClosePauseMenu();
// Allow or disallow closing the menu
pauseManager.AllowClosing(true);
}
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.