Implement AffectParent property for UIScale

When you put UIScale under ScreenGui it will only affect the descendants. Note: For both examples, the scale was set to 0.5.

If you plan on having inner UIScale via a wrapper instance, you won’t be able to achieve the same effect, because UIScale affects both the parent and the content which leads to undesirable layout.

When working with tools like UI labs, it is impossible to implement your own zoom and virtual viewport feature, because the story contents are not directly under ScreenGui. Therefore, I propose that UIScale gets a new property AffectParent of boolean type that when false, will cause the parent to not be affected. For backwards compatibility, the property should be true by default.

repo.rbxl (59.0 KB)

3 Likes