(4.6) Animated UI with screen resolution?

I animated panels for cool transitions, but when the resolution changes, it’s still the original transform position, so what is the proper way to do this?

So you can figure out the screen height and width using the following:

Screen.width*0.5f//center to the screen(width)
Screen.height*0.5f//center of screen(height)

This will adjust with different screen sizes. So if I want to place a GUI element on the top right of the screen I would do:

GUI.Button(Rect(Screen.width-150, 40, 100, 50),"Button");

Or at the bottom left:

GUI.Button(Rect(10, Screen.height-60, 200, 50),"Button");

Finally I want it in the center of the screen:

GUI.Button(Rect(Screen.width*0.5f-100, Screen.height*0.5f-25, 200, 50),"Button");

This will automatically adjust for different screen sizes and place them in the same place for every single screen size. Hopefully this is what you are looking for.