Scripting UI visibility and scaling
Proper UI handling requires using UI Vector scaling for multiple resolutions and simple click callbacks instead of adding unnecessary UIRoot components.
- Developers can scale menus across screen resolutions using UI Vector scale rather than relying on offset
- Adding UIRoot programmatically in a script is unnecessary for surface GUIs
- Toggling UI visibility only requires binding a simple visibility assignment to the button click event


