/texture-usage

Unity Editor tool for analyzing and listing texture memory usage in scenes.

Primary LanguageC#MIT LicenseMIT

Texture Usage Window for Unity

A Unity editor extension that provides insights into the memory usage of textures in your project and allows users to identify game objects in the scene that use a specific texture.

Features

  • Display memory usage of textures in your Unity project.
  • Order textures by their memory consumption.
  • Ping/Select game objects in the scene using a chosen texture.

Installation

  1. Copy the TextureUsageWindow.cs script to your Unity project inside an Editor folder.
  2. In Unity, you'll see a new menu item: Window/Texture Usage. Click it to open the Texture Usage Window.

Usage

  1. Open the Texture Usage Window from Window/Texture Usage.
  2. Click on Get Texture Usage to see a list of textures and their memory usage.
  3. To find game objects in the scene using a specific texture, click the Ping in Scene button next to the texture's name.

Contribution

Feel free to fork this repository, make any changes, and submit pull requests. For major changes or feature requests, please open an issue first to discuss what you'd like to improve.

License

This project is open-source, under the MIT license.