This repository is a Unity Editor tool for auditing all the lights in your Unity scene(s).
The tool has been verified on the following versions of Unity:
- 2022.2
- 2021.3 (LTS)
- 2020.3 (LTS)
- 2019.4 (LTS)
For more version support, please see the currently open issues here.
The tool is a utility for Unity game developers that helps analyze, sort and display data about all the lights in the scene(s).
- Collect and display all lights in a scene
- Sort (toggle ascending/descending by clicking on the collumn title) lights based on different properties (type, range, intensity, etc.)
- Easily identify lights causing issues or impacting performance (due to size, shadow quality, etc)
To use the Unity Lights Auditor Tool in your Unity project, simply:
- Clone or download the repository
- Import the
UnityLightsAuditorTool
folder into your Unity project'sAssets
folder.
Option B) Add the repository to the package manifest (go in YourProject/Packages/ and open the "manifest.json" file and add "com..." line in the depenencies section). If you don't have Git installed, Unity will require you to install it.
{
"dependencies": {
...
"com.razluta.unitylightsaudittool": "https://github.com/razluta/UnityLightsAuditTool.git"
...
}
}
The repository is at: https://github.com/razluta/UnityLightsAuditTool.git
To start using the tool, go to: (Menu bar) Raz's Tools > Lights Audit Tool. The functionality is as follows:
- the "Reset parameters" button will revert the tool to only filter for Realtime lights
- the "Audit scene" button will search the scene for lights and by default arrange them in descending order of range magnitude (bigger lights at the top)
- the "Clear audit results" will scrap the current search and clear the UI
- each of the column headers (Name, Type, etc) will toggle ascending/descending sorting of the lights based on that parameter (by name from A-Z or flipped, by Intensity from 0 going up to the highest intensity or backwards).
- clicking on any light in the list will ping and select the light in the scene
If you would like to contribute to the Unity Lights Auditor Tool, please:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
The Unity Lights Auditor Tool is licensed under the MIT License. See the LICENSE
file for details.