Hello. I am using this bit of code to scale the GUI elements in my game(I placed the GUI stuff using absolute pixel positions). I am having a problem with it. Even though some of the GUI elements appear to scaling properly(as in the button texture from the GUI skin is the right place), when I click on some of the space in buttons, they do not work(this is related to the resolution, as the buttons work fine normally). This also happens with placing textures. What is wrong?
GUI.matrix = Matrix4x4.Scale(Vector3( parseFloat(Screen.width) / 972, parseFloat(Screen.height) / 636));
Thanks