Gist a073910bd2f3b7e0956d989ccc0dd1d5
✓ Published0🌍 Public
Aandybak
Last edited Feb 11, 2021
Created on Feb 5, 2021
This example generates a tab-separated inventory of Tilt Brush brush descriptors by loading all brush resources via `Resources.LoadAll` from both the default and experimental “X/Brushes” folders. It filters out deprecated brushes (those with a `m_SupersededBy` reference) and extracts each brush’s description, audio-reactive flag, prefab name, material name, and MonoBehaviour script components (using Unity’s `GetComponents`), then writes the rows to a `StringBuilder` and logs them with `Debug.Log`. The code relies on UnityEditor’s `MenuItem` attribute to expose the tool in the editor menu, and it handles missing experimental prefabs by catching `UnassignedReferenceException`.
AI-generated description