Info

A custom panel with watches, a session section and sliders

A custom panel with watches, a session section and sliders

Opening the menu

Setup

Adding your own controls

#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