I am trying to make a UI and, I am trying to figure out how to make it fit the top of players screen. If anyone knows what the X and Y is please tell me.
If you want it to fill up the whole screen, you can set its size to (1, 0, 1, 0) which sets its size to 100%
I mean like this.
Yes, (1, 0, 1, 0) try it, it should fill the whole screen.
Hayo!
I believe you are looking for Anchor Point and Scale properties!
{ScaleY, OffsetY}, {ScaleX, OffsetX} is used in Size AND Position!
If you set the Anchor Point to (0.5, 1) and the position, respectively, to (0.5, 0, 0, 0) the object will be in the middle of the screen no-matter-what (if you want the object to exactly in the middle set the anchor point to {0.5, 0.5}
Then, set the size of the object to {1, 0}, {(0 to 1 in respect to the height of the screen), 0} to fit the entire length of the screen on all devices.
I’ve provided some examples of how these properties impact each other.
Scale is extremely useful to the point where it looks EXACTLY the same, even on mobile devices.
Edit: added examples
That is basically the top, since the settings and name will be above it as they play.
There’s a plugin I use, made by @C_onfident after seeing a similar question to this one.
Just click on the UI you want to scale down, then click on the red “X” to scale the UI down.
Can you link it to me please?
That’ll be very useful for me!
Thank you, much appreciated!