Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RectTransformUtility.PixelAdjustPoint

public static function PixelAdjustPoint(point: Vector2, elementTransform: Transform, canvas: Canvas): Vector2;

Returns

Vector2 Pixel adjusted point.

Description

Convert a given point in screen space into a pixel correct point.