Skip to content

TheKing349/Simple-Unity-Dev-Menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Dev Menu - v1.0.0

A clean, modern developer menu for Unity built with the UI Toolkit, featuring runtime tools and automatic build exclusion. Styles adapt to Unity's light/dark theme and remains editor-only through Assets/Editor storage.

Screenshot

Why This Exists

Provides essential development tools without cluttering production builds:

  1. Debugging features excluded from final builds
  2. Unified UI matching Unity's native theme
  3. Extensible architecture for team-specific tools

Features

  • Framerate Control
    • Live FPS slider (1-165) with toggle override
    • Auto-applies when entering Play Mode
  • Variable Watcher
    • Type any GameObject variable name for live monitoring
    • Pseudo syntax-highlighting via Rich Text
  • Theme-Aware UI
    • Automatic light/dark mode matching
    • Collapsible, state-saving foldouts
  • Safe for Production
    • Entire system stored in Assets/Editor
    • Zero compile-time references in built games

How It Works

  1. UI Rendering - Uses UI Toolkit with custom UCSS theming
  2. Feature Execution
    • Framerate: Sets Application.targetFrameRate
    • Variable Watch: Uses FieldInfo reflection with custom formatting
    • Play Mode: Triggers EditorApplication.EnterPlaymode

Prerequisites

  • Unity 2021.3+ (UI Toolkit required)

Installation

Package Import

  1. Download the latest release
  2. Extract to YourProject/Assets/Editor
  3. Open Menu with Ctrl/Cmd+Shift+D or by going to Dev/Menu in the top toolbar

Usage

Framerate Control

  1. Ensure vSync is turned OFF
    • In the Game UI Panel before the Scale modifier
  2. Drag slider to desired FPS
  3. Toggle Limit Framerate

Variable Watcher

  1. Attach a GameObject to the Target Game Object field
  2. Type exact variable name
  3. Click Watch Variable to start monitoring
  4. Toggle again to stop

UI Structure

ScrollView
├─ [Foldout] Framerate Limiter
│  └─ Slider + Toggle
├─ [Foldout] Variable Watcher
│  ├─ ObjectField
│  ├─ TextField 
│  ├─ Watch Button
│  └─ Value
├─ [Foldout] Example Tab Buttons
│  ├─ [Tab]
│  ├─ ├─ Button 1
│  ├─ ├─ Button 2
│  ├─ ├─ Button 3
│  └─ └─ Button 4

Contributing

  1. Fork the repository
  2. Branch per feature
  3. Test changes in multiple Unity Versions
  4. Submit Pull Request with:
    • Updated documentation
    • Screenshots of visual changes

License

The project is licensed under the MIT LICENSE

About

A simple, easy-to-modify developer menu for Unity

Resources

License

Stars

Watchers

Forks

Languages