|
| 18 Apr 2016 11:33 AM |
| what numbers do I use to make it the same for PCs. |
|
|
| Report Abuse |
|
|
| |
|
MrZelo
|
  |
| Joined: 07 Jul 2008 |
| Total Posts: 47891 |
|
|
| 18 Apr 2016 11:37 AM |
Ok so when you see this:
(0,0) (0,0)
Use these:
([0],0) ([0],)
So ex: (0.25,0) (0.35,0) |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2016 11:43 AM |
In UDIM2, the variables are (XScale, XOffset, YScale, YOffset)
The Scales are ratio'd to the screen's resolution, so regardless of what resolution you're using, it should be in the same position on every monitor
Offset is by Phyiscal pixles, so having an offset of 25 on either X or Y would move the GUI by 25 pixels. This could mean 2cm on a 4k resolution, or 8cm on an 1920x1080. It moves in physical pixels with no relativity to the screen's resolution.
in short: use scale unless you know what you're doing |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2016 12:10 PM |
| off set for position scale for size? or other way around? |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2016 12:21 PM |
| please go read up on what a udim2 userdata is |
|
|
| Report Abuse |
|
|
Theta0
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 40750 |
|
|
| 18 Apr 2016 12:22 PM |
one is scale and one is offset
scale is by percentage
offset is the pixel size
yay
ribbit |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2016 03:32 PM |
there's a udim2 for position, then a udim2 for size
so, size = ([xscale,xoff],[yscale,yoff])
position = ([xscale,xoff],[yscale,yoff])
they're seperate things |
|
|
| Report Abuse |
|
|