|
| 21 Jun 2017 09:59 AM |
I have one billboard gui which is simple an image label that always stays the same size relative to the player when I zoom in or out.
However, I also have a textlabel which increases as I zoom out.
Is there a way I can make the textlabel stay the same size relative to the player when I zoom in and out?
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 10:03 AM |
turn off text scaling for the textlabel
|
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jun 2017 10:15 AM |
sorry i made a mistake
if you want a TextLabel inside a BillboardGUI to not change size with distance, you have to make sure that both the BillboardGUI and TextLabel are using Scale and not Offset for their sizes
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 10:22 AM |
I think ROBLOX made it more confusing than it needed to be, but this is how it works;
For a GUI to not scale inside a BillboardGUI, both Offset X and Offset Y values have to be set to 0. You will need to use Scale to size the GUIs.
This is what the ROBLOX wiki says;
"A BillboardGui is drawn at the position of a Part but will always face the player. If the part moves the BillboardGui will move with it. If the size of the BillboardGui is set using only the Scale components of it's API:Class/BillboardGui/Size UDim2 then it will scale based on distance to the player (i.e. it will get bigger as the player gets closer, will get smaller as the player goes farther). If the Offset of the Size is set then the BillboardGui will maintain the same size regardless of distance to the player."
wiki.roblox.com/index.php?title=The_Fundamentals_of_Scripting_with_GUIs#BillboardGui
|
|
|
| Report Abuse |
|
|