Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

RectTransformUtility.PixelAdjustPoint

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

Parameters

Returns

Vector2 Pixel adjusted point.

Description

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