Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AreaScope

Create a new AreaScope and begin the corresponding Area.
Read time 2 minutesLast updated 12 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule

AreaScope(Rect)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect)

Parameters

screenRect

AreaScope(Rect, string)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, string text)

Parameters

screenRect


text

Optional text to display in the area.

AreaScope(Rect, Texture)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, Texture image)

Parameters

screenRect


image

Optional texture to display in the area.

AreaScope(Rect, GUIContent)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, GUIContent content)

Parameters

screenRect


content

Optional text, image and tooltip top display for this area.

AreaScope(Rect, string, GUIStyle)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, string text, GUIStyle style)

Parameters

screenRect


text

Optional text to display in the area.

The style to use. If left out, the empty GUIStyle (GUIStyle.none) is used, giving a transparent background.

AreaScope(Rect, Texture, GUIStyle)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, Texture image, GUIStyle style)

Parameters

screenRect


image

Optional texture to display in the area.

The style to use. If left out, the empty GUIStyle (GUIStyle.none) is used, giving a transparent background.

AreaScope(Rect, GUIContent, GUIStyle)

Create a new AreaScope and begin the corresponding Area.
public AreaScope(Rect screenRect, GUIContent content, GUIStyle style)

Parameters

screenRect


content

Optional text, image and tooltip top display for this area.

The style to use. If left out, the empty GUIStyle (GUIStyle.none) is used, giving a transparent background.