GuiRatioFixer2

Author: Alejandro Gonzalez (zerofractal)

Description
This is an alternate script to adjust the aspect ratio of a GUIText or GUITexture object by scaling it horizontally to fit the proportions.

It works with textures of equal or unequal width and height, such as 1024x512 maps. This script takes the aspect from the actual screen making it useful for 4:3 16:9 etc etc.

It does not know how to align groups of GUI objects after it adjusts their aspect ratio.

Usage
Place this script on a GameObject with a GUIText and/or GUITexture component. Sacle the object to the correct height in Game View. The width does not matter. Place the object where you want it to appear. Please take into accout that the center will be preserved but not the alignment, so depending on the aspect it will vary.