Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baba-s/uni-debug-panel
You can display customizable buttons for debugging in the game.
https://github.com/baba-s/uni-debug-panel
kogane-unity-lib unity unity3d
Last synced: 2 months ago
JSON representation
You can display customizable buttons for debugging in the game.
- Host: GitHub
- URL: https://github.com/baba-s/uni-debug-panel
- Owner: baba-s
- License: mit
- Created: 2018-08-05T01:40:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T06:48:17.000Z (almost 6 years ago)
- Last Synced: 2024-08-03T19:09:51.134Z (6 months ago)
- Topics: kogane-unity-lib, unity, unity3d
- Language: C#
- Homepage:
- Size: 56.6 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - UniDebugPanel - You can display customizable buttons for debugging in the game (Script Debug)
README
[日本語の Readme はこちら](https://github.com/baba-s/uni-debug-panel/blob/master/README_JP.md)
# UniDebugPanel
You can display customizable buttons for debugging in the game.
[![](https://img.shields.io/github/release/baba-s/uni-debug-panel.svg?label=latest%20version)](https://github.com/baba-s/uni-debug-panel/releases)
[![](https://img.shields.io/github/release-date/baba-s/uni-debug-panel.svg)](https://github.com/baba-s/uni-debug-panel/releases)
![](https://img.shields.io/badge/Unity-2018.3%2B-red.svg)
![](https://img.shields.io/badge/.NET-4.x-orange.svg)
[![](https://img.shields.io/github/license/baba-s/uni-debug-panel.svg)](https://github.com/baba-s/uni-debug-panel/blob/master/LICENSE)# Version
- Unity 2018.3.9f1
# Usage
## Symbol
Select "Player Settings ..." from "File> Build Settings ..." on the Unity menu,
Enter "ENABLE_DEBUG_PANEL" in "Scripting Define Symbols".## Basic Usage
Place the "UniDebugPanelUI" prefab in the scene.
```cs
using KoganeLib.UniDebugPanel;
using UnityEngine;
using UnityEngine.UI;public class Example : MonoBehaviour
{
public UniDebugPanelUI m_debugPanelUI = null;
public Button m_buttonUI = null;private void Start()
{
m_debugPanelUI.DoSetDisp
(
new UDPData( "ロック" , () => m_buttonUI.interactable = false ),
new UDPData( "アンロック", () => m_buttonUI.interactable = true )
);
}
}
```And you create a script like the one above.
You can now call the debugging functions from that scene.
## Release Build
Select "Player Settings ..." from "File> Build Settings ..." on the Unity menu,
Deleting "ENABLE_DEBUG_PANEL" from "Scripting Define Symbols"
All functions of UniDebugPanelUI are disabled.