Documentation

Unity Engine

Unity Engine

ScreenToGUIRect(Rect)

Convert a rect from screen space to GUI position.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public static Rect ScreenToGUIRect(Rect screenRect)

Parameters

screenRect

Returns

Type

Description

Rect