Udim2 Roblox
The value this represents is scaled relative to the axis that this udim is representing in a udim2.
Udim2 roblox. Udim2new is for moving gui. The x axis is a value passed to tweenservicegetvalue and the y axis is the value returned. Each easing style is described in a graph below. The constructor takes parameters in the.
Udim stands for universal dimension and uses 2 coordinates. Datatype index udim2 a udim2 is a type of coordinate used in building user interfaces. For use it you need to said wich frame youll move or sizeudim2new use fourth value one for the position of x for the scale the second is for the x too but for the offset the third is for the y scale and finally the fourth is for the y but for the offset xscale xoffset yscale yoffset. The difference between a udim and udim2 is that a udim2 represents a two dimensional plane with x and y coordinates while a udim only accounts for one coordinate.
For example if the parent object is 50 pixels wide a udim scale of 05 would be 25 pixels wide. A udim consists of a scale and an offset. These graphs use the in easingdirection. These are used to figure out where exactly the udims position is.
The out direction simply produces a reflection over the line xy. The scale component of the udim. Smoothly moves a gui to a new datatypeudim2 position in the specified time using the specified enumeasingdirectioneasingdirection and enumeasingstyleeasingstyle. It is a combination of two datatypeudim representing the x and y dimensions.
05 makes the size cover 50 of its. The easingstyle enum determines the way in which tweenservice tweening will act. This function will return whether the tween will play. A udim2 which is basically two udims universal dimensions being represented within the same object is a lua object which stores information about the size and position of gui elements.