1
Universal Dimensions
josh edited this page 2025-02-03 02:01:34 -05:00

JUI employs a set of special data types we have coined Universal DIMensions (UDims). The objective is that we have a singular type defining both a pixel-size, and percentage scale, on a single axis. X and Y UDims are combined into a UDim2, which is the standard type representing Size and Position across JUI. Several helper functions, literals, and shortcuts are implemented to make manipulations with this easy and intuitive. What this gives us is a combination of enabling automatically-resizable widgets, and explicit sizes for offsets, padding, etc.