Convert pixel screen coordinates to GUIText coordinates?

I need to convert the pixel screen coordinates (for example: x =768, y=384) to the values used by GUIText for position.
I mean the 0-1 range is used by GUIText and GUITexture for the screen coordinates

Any help is welcome. :slight_smile:

Thanks.

prueba dividiendo el valor de pixel coordinate por el máximo valor posible. osea si tienes una pantalla de 800 x 600,
imagina que tienes el punto (545, 89), en guitext o guitexture lo dejas como (545/800, 89/600).

Try to divide the screen coordinate by the maximum screen value to get a value range 0 to 1.

Gracias, enseguida me di cuenta de lo fácil que era pero no pude borrar el post.

Un saludo

I believe this is what your looking for. Converts pixel coords to Screen coords.