C# Class UnityEngine.GUIElement

Inheritance: Behaviour
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetScreenRect ( [ camera ) : Rect

Returns bounding rectangle of GUIElement in screen coordinates.

HitTest ( Vector3 screenPosition, [ camera ) : bool

Is a point on screen inside the element?

Private Methods

Method Description
GetScreenRect ( ) : Rect
HitTest ( Vector3 screenPosition ) : bool
INTERNAL_CALL_GetScreenRect ( GUIElement self, Camera camera, Rect &value ) : void
INTERNAL_CALL_HitTest ( GUIElement self, Vector3 &screenPosition, Camera camera ) : bool

Method Details

GetScreenRect() public method

Returns bounding rectangle of GUIElement in screen coordinates.

public GetScreenRect ( [ camera ) : Rect
camera [
return Rect

HitTest() public method

Is a point on screen inside the element?

public HitTest ( Vector3 screenPosition, [ camera ) : bool
screenPosition Vector3
camera [
return bool