GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gilzoide/unity-back-button-stack: Easily manage a stack of objects that respond to the ESC button / Android Back button in Unity, so that only the top object handles the event.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Editor
Editor
 
 
Runtime
Runtime
 
 
Samples~
Samples~
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
Editor.meta
Editor.meta
 
 
README.md
README.md
 
 
README.md.meta
README.md.meta
 
 
Runtime.meta
Runtime.meta
 
 
UNLICENSE
UNLICENSE
 
 
UNLICENSE.meta
UNLICENSE.meta
 
 
package.json
package.json
 
 
package.json.meta
package.json.meta
 
 

Repository files navigation

Back Button Stack

openupm

Easily manage a stack of objects that respond to the ESC button / Android Back button in Unity, so that only the top object handles the event.

Check out the Popup Stack sample scene for some usage example.

Features

  • Only the last object in the stack will be called when the ESC/Back button is pressed.
  • Inherit ABackButtonHandler to have scripts that handle the ESC/Back button be inserted/removed from the singleton stack automatically in their OnEnable / OnDisable methods.
  • Supports pure C# classes as well, just implement the IBackButtonHandler interface and call AddToBackButtonStack and RemoveFromBackButtonStack to add / remove it from the singleton stack.
  • Custom inspector for debugging which objects are currently in the stack, just select the BackButtonStack object in the DontDestroyOnLoad scene while in Play Mode.

How to install

Either:

  • Use the openupm registry and install this package using the openupm-cli:
    openupm add com.gilzoide.back-button-stack
    
  • Install using the Unity Package Manager with the following URL:
    https://github.com/gilzoide/unity-back-button-stack.git#1.0.0
    
  • Clone this repository or download a snapshot of it directly inside your project's Assets or Packages folder.

About

Easily manage a stack of objects that respond to the ESC button / Android Back button in Unity, so that only the top object handles the event.

Topics

back-buttonbackbuttonmanagerstackunityunity3dupmupm-package

Resources

Readme
Unlicense
Activity

Stars

13 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.