GUITex Position To GUI Rect

Description
A helper function to convert a GUITexture position to the equivalent Rect.

Usage
PosToRect (position : Vector2, bounds : Rect, pixelInset : Rect) : Rect;

position - the guiTexture's transform.position x and y components as a Vector2.

bounds - the equivalent of a custom pixelRect for rendering the guiTexture into. Uses GUI coordinates.

pixelInset - the pixelInset (Rect) of the guiTexture.

--DannyL 09:03, 22 September 2008 (PDT)