Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/track/debug-menu.git

README

unity-debug-menu

What is it?

A prebuilt debug menu with some customizable options.

The DebugMenu is designed to reduce the time and effort made per project to build custom debug menus. It's customizability with summoning makes it easy for your unique project to implement a custom method to open the DebugMenu.

Built-in Features:

  • Custom buttons
  • Access and display the cloud build manifest.
  • Visible debug logs and exceptions with thier stacktrace.
  • Email the log and callstack.

How to use it.

Have the DebugMenu prefab active in the scene.

Buttons

Register a custom button with the DebugMenu by using the AddButton method. This method requires a unique identifier for the button (which it will also display as the the label for the button) and an Action to invoke when the button is clicked. The method also inclused an optional parameter (hideDebugMenuOnClick) for closing the DebugMenu when this custom button is clicked.
DebugMenu.Instance.AddButton("Button", () => { Debug.Log("My custom button was clicked."); });

Summoners

The ready-made prefab that ships with DUCK, has a DefaultDebugMenuSummoner. Use F7 on PC or 6 touches on mobile to open the DebugMenu.

If you want to use your own logic to summon the debug menu then implement your own IDebugMenuSummoner and register it.

To register a custom IDebugMenuSummoner with the DebugMenu either use DebugMenu.Instance.AddSummoner, or add it to the instance of the DebugMenu prefab in the scene, and it will find it on Start().

Email Addresses

Email addresses can be added to the dropdown via a JSON text asset. You can store this asset anywhere in you Unity project Assets directory as long as you reference it in the DebugMenu (GameObject) -> EmailPage (GameObject) -> emailAddressesJson (SerializedField).

Stacktrace

To view a stacktrace simpley click on the log and a view will open up with the visible log and stacktrace. Use the email button in the top right of the screen to generate and send the callstack to an email address.

Releasing

  • Use gitflow
  • Create a release branch for the release
  • On that branch, bump version number in package json file, any other business (docs/readme updates)
  • Merge to master via pull request and tag the merge commit on master.
  • Merge back to development.

DUCK

This repo is part of DUCK (dubit unity component kit) DUCK is a series of repos containing reusable component, utils, systems & tools.

DUCK packages can be added to a project as git submodules or by using Unity Package Manager.

Total Installs
0
Last 30 days
Unique IPs
0
Approximate users

Installs Over Time

Operating Systems

No data yet

Top Countries

No data yet

Git Versions

No data yet

Embed Install Badge

Add an install count badge to your README

Style
Preview
pkglnk installs badge
Markdown
[![pkglnk installs](https://www.pkglnk.dev/badge/debug-menu.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/debug-menu)
HTML
<a href="https://www.pkglnk.dev/pkg/debug-menu"><img src="https://www.pkglnk.dev/badge/debug-menu.svg?style=pkglnk" alt="pkglnk installs"></a>

Comments

No comments yet. Be the first!