generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GUI Scaling issue?

Previous Thread :: Next Thread 
PhiIIz is not online. PhiIIz
Joined: 08 Mar 2015
Total Posts: 1079
28 Feb 2017 09:05 PM
Using scale on a GUI is easy.
The issue is that the GUI's ratio isn't constant. For example, scale is relative to the screen by I also want the GUI's size to be at a constant ratio.

So the GUI basically will be responsive to the screen size by changing its X and Y size values but always keep its X and Y values at a specific ratio. I hope that makes sense.

How would I achieve this?
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
28 Feb 2017 09:06 PM
use RelativeXX or RelativeYY sizing to maintain aspect ratio
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
28 Feb 2017 09:24 PM
http://wiki.roblox.com/index.php?title=API:Class/UIAspectRatioConstraint
Report Abuse
PhiIIz is not online. PhiIIz
Joined: 08 Mar 2015
Total Posts: 1079
01 Mar 2017 03:08 PM
Thanks chim. Is there an object I could use to center the GUI with the AspectRatioConstraint or would I have to code that?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
01 Mar 2017 03:38 PM
Look into the AnchorPoint property.
Report Abuse
PhiIIz is not online. PhiIIz
Joined: 08 Mar 2015
Total Posts: 1079
01 Mar 2017 05:11 PM
You're amazing. Thanks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image