Gist 84610558b586c9100d7b8362842eda4d
✓ Published0🌍 Public
Aandybak
Last edited Dec 23, 2021
Created on Dec 23, 2021
This example shows a Unity Editor tool that lists every brush texture used by Tilt Brush, displaying the brush name, texture property, whether the texture is readable, and its asset path in the console. It iterates through default and experimental brushes loaded via `Resources.LoadAll`, skips deprecated brushes based on `m_Supersedes` references, and uses `AssetDatabase.GetAssetPath` to resolve texture paths. The code relies on Unity’s `BrushDescriptor`, `Material.GetTexturePropertyNames`, and `StringBuilder` to compile and log the report.
AI-generated description