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.

GUIUtility.ScreenToGUIPoint

public static Vector2 ScreenToGUIPoint(Vector2 screenPoint);

Description

Convert a point from screen space to GUI position.

Used for reconverting values calculated from GUIToScreenPoint

Note: In Unity the screen space y coordinate varies from zero at the top edge of the window to a maximum at the bottom edge of the window. This is different from what you might expect.

See Also: GUIUtility.GUIToScreenPoint.

no example available in C#
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答