Version: 2017.1

Descripción

Convert from point space to pixel space.

Use this for determining the resolution and positioning of custom GUI content, such as render textures.

See Also: PixelsToPoints, pixelsPerPoint.


public static Vector2 PointsToPixels (Vector2 position);

Parámetros

position A GUI rect measured in points.

Valor de retorno

Vector2 A rect representing the same area in pixels.

Descripción

Convert a Rect from point space to pixel space.


public static Rect PointsToPixels (Rect rect);

Parámetros

rect A GUI position in point space.

Valor de retorno

Rect The same position in pixel space.

Descripción

Converts a position from point to pixel space.