Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

RectTransformUtility.PixelAdjustPoint

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

Returns

Vector2 Pixel adjusted point.

Description

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

Did you find this page useful? Please give it a rating: