Skip to main content
100%

Gist 1f68df120144a1363690cc4cfe88d426

✓ Published0🌍 Public
Aandybak
Last edited Feb 16, 2021
Created on Feb 16, 2021

This example uses Unity Editor scripting to extract and log configuration data from Tilt Brush’s PanelManager and BasePanel classes. Two menu commands, “Tools/Panel Lister” and “Tools/Popup Lister,” access private fields via reflection to enumerate panel and popup mappings. The first command outputs a tab-separated list of panel attributes like m_Advanced, m_ModeVr, and m_PanelPrefab, while the second lists popup commands and their associated prefabs. The code relies on Unity’s StringBuilder, Debug.Log, and reflection APIs (GetField, GetValue) to inspect runtime objects.

AI-generated description

Similar vizzes