1
NGUI 3 Support / Re: Scale UIWidget based on DPI
« on: March 05, 2015, 02:01:22 PM »
Figured it out, just had to wrap my head around the math :p Some pseudo code:
physicalPixels = sizeInInches * DPI
physicalPercent = physicalPixels / screenHeight;
spriteHeight = physicalPercent / uiRootActiveHeight;
Hope this can help someone else!
physicalPixels = sizeInInches * DPI
physicalPercent = physicalPixels / screenHeight;
spriteHeight = physicalPercent / uiRootActiveHeight;
Hope this can help someone else!
