Polis.Core.Debugging. It exists only with the DEBUG_MENU define, wrap your code in #if DEBUG_MENU
A custom panel with watches, a session section and sliders
DebugMenu.Open(), DebugMenu.Open("Network/Players"), DebugMenu.Toggle(), DebugMenu.Close()DebugMenuSettings (Create > Polis/Debug Menu Settings), an app settings asset: addressable with the Settings label. The menu builds once the settings load
DebugMenuHost on a UIDocument with world space panel settings shows the menu in VR. The tablet prefab has one. While a world host is active it takes over from the screen overlay. XR rays hit it above canvases on the same plane, while closed only the corner takes rays"Network", "Network/Players"#if DEBUG_MENU
private void Start()
{
DebugMenu.Panel("Network").Icon("lan");
var session = DebugMenu.For(this).Section("Network", "Session");
session.Toggle("Voice chat", () => _voice, v => _voice = v);
session.Int("Max players", () => _maxPlayers, v => _maxPlayers = v).Range(1, 16);
session.Float("Latency", () => _latency, v => _latency = v).Range(0, 500).Unit("ms");
session.Button("Reconnect", Reconnect).Primary();
session.Watch("Ping", () => _ping).Format("0").Every(0.5f);
}
#endif
DebugMenu.For(owner) - controls are removed when the owner object is destroyedDebugMenu.Section(page, section) - global, lives until you dispose the section