Set gui scale relative to another gui

Right now, you can only scale a gui relative to its direct parent. This makes it impossible to design many interfaces without code.

Consider an element such as a coin icon. You need it to scale with resolution agnostic to its direct parent, as its direct parent may be any object from the screengui to a textlabel to a random frame.

I suggest a scale modifier UI component. It allows you to:

  • Set the scale reference on a per-axis basis
  • Define any GuiBase2d as the scale reference
  • Define the viewport as the scale reference
  • Define the screen as the scale reference

With this component you could use an elegant and codeless structure to make your coin sizes consistent: Simply put a reference coin somewhere and have all your coin images refer to it for relative sizing.

16 Likes