anthonyec / godot_little_camera_preview

🎥 Picture-in-picture style preview for both 2D and 3D cameras
MIT License
605 stars 8 forks source link

Fix UI scaling to use editor scale #10

Closed anthonyec closed 7 months ago

anthonyec commented 7 months ago

Problem

The UI was never meant to be this chunky holy moly. But for people with 1x displays it was. This is because I work on a 2x display (retina) and assumed Godot automatically scaled the UI. Turns out it doesn't, at least for editor plugin UIs.

image

Changes

Screenshot 2024-02-03 at 00 51 13

1x display

Screenshot 2024-02-03 at 00 52 35

2x display