gui resizing problem

I know using Screen.width and height helps keeping gui resolution perfect for different devices but using many gui and alz calculating them my device makes the game much slower… In android there is dp to make it simple… I wanna know if there is any alternative way to resize gui for every devices…

There are some solutions on the Asset Store to help with the various aspect ratios and resolutions of Android/iOS devices, but I’m not sure any of them work with Unity’s GUI because it was known to be unoptimized, maybe it’s worth a look. The math should not slow your product down at all. You should calculate the values for each UI component on startup using width, height, and aspect ratio, and apply the variables for position and size to your UI in much the same way you would a constant.

use 2dtoolkit plugin for unity u don’t have to think about gui.