Efficient UI is a tool that helps you visualize and optimize your Unity UI for better performance. It allows you to identify and eliminate unnecessary overdraw and excessive Raycast Target usage, which can slow down your game. With this tool, you can:
- Visualize all UI elements and their overdraw
- Find and disable unnecessary Raycast Targets
- Customize visualization settings to suit your needs
- Easily select and inspect overlapping UI elements
- Optimize Raycast Targets with a single click
By using Efficient UI, you can reduce UI overdraw, disable unnecessary Raycast Targets, and improve your game's performance. This tool is perfect for developers who want to optimize their Unity UI for better performance and a smoother gaming experience.
How to Use
- Open the Efficient UI window via `Window > Efficient UI > Open Window`
- Choose between Overdraw mode or Raycast mode
- Customize visualization options to suit your needs
- Enable picking mode to select and inspect overlapping UI elements
Tips
- Reduce UI overdraw to save on GPU performance
- Disable Raycast Target for non-interactive UI elements like Text
- Use picking mode to easily select elements in complex UI hierarchies
Technical Details
- Tested and supported on Windows and Mac with Unity versions from 2021.3 to Unity 6
- Documentation included in the package as a Readme and explained in the Demo scene
Features:
- Visualize all UI elements and their overdraw
- Visualize raycastable elements to find unnecessary raycast targets to turn off
- See overlap count with customizable colors
- Pick UI elements directly in the Scene view to analyze the overlapping elements
- One-click optimize raycast targets if they are all contained within the parent
- Customizable visualization settings
- Source code included
Supported platforms: Windows, Mac
Supported Unity versions: 2021.3 to Unity 6





