You can display customizable buttons for debugging in the game.
- Unity 2018.3.9f1
Select "Player Settings ..." from "File> Build Settings ..." on the Unity menu,
Enter "ENABLE_DEBUG_PANEL" in "Scripting Define Symbols".
Place the "UniDebugPanelUI" prefab in the scene.
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.
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.



