menu-navigation-flow

Manage Unity UI navigation with stack-based push, pop, and modal operations.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Criezzz/Gametopia2026 --skill menu-navigation-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: menu-navigation-flow
Source: https://github.com/Criezzz/Gametopia2026/tree/main/.agent/skills/menu-navigation-flow
Command: npx skills add https://github.com/Criezzz/Gametopia2026 --skill menu-navigation-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manages multi-screen UI navigation and screen lifecycle to simplify implementing back-button behavior, modal overlays, animated transitions, and history in game or application menus.

Core Features & Use Cases

  • Stack-based navigation: push, pop, replace, and pop-to-root operations to control screen flow.
  • Animated transitions & history: fade, slide, and scale transitions plus predictable back-stack management.
  • Screen lifecycle & caching: initialize, show/hide, focus/unfocus hooks, async transitions, and in-memory screen caching to avoid destruction on pop.
  • Use Cases: building main menus, nested settings, pause screens, modal dialogs, and handling Android back button in Unity UI Toolkit projects.

Quick Start

Push the Settings screen with a fade transition using the NavigationManager to navigate forward and record history.

Frequently Asked Questions about menu-navigation-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle back button navigation and screen history in Unity UI?

Back button navigation and screen history in Unity UI are handled using a stack-based flow that records pushed screens, allowing predictable pop operations to return users to previous menus.

What is the best way to manage modal dialogs and nested menu transitions in Unity?

Modal dialogs and nested menu transitions in Unity are managed via stack operations that support push, pop, replace, and popToRoot, ensuring correct overlay and history behavior.

Can I cache Unity UI screens in memory to avoid destroying them on pop?

Yes, Unity UI screens can be cached in memory to avoid destruction on pop. The navigation flow provides lifecycle hooks for show, hide, focus, and unfocus to manage cached states.

How do I add animated transitions like fade and slide to Unity menu screens?

Animated transitions like fade and slide are added to Unity menu screens by configuring the navigation manager to apply transition effects during push and pop operations.

Does this stack-based UI navigation support asynchronous screen transitions?

Yes, stack-based UI navigation supports asynchronous screen transitions, allowing animated UI changes to complete without blocking the main thread during screen switching.

How do I replace the current screen instead of pushing a new one onto the stack?

To replace the current screen instead of pushing a new one, use the replace operation provided by the navigation manager, which swaps the active screen without adding to the back history.