Skip to main content

ShapeHitTest

Namespace:FairyGUI
Source:Assets/Scripts/Core/HitTest/ShapeHitTest.cs (line 8)

public class ShapeHitTest : IHitTest

Interfaces:IHitTest

Constructors​

ShapeHitTest(DisplayObject)​

public ShapeHitTest(DisplayObject obj);
ParameterTypeDescription
objDisplayObject

Source:Core/HitTest/ShapeHitTest.cs (line 15)

Fields​

shape​

public DisplayObject shape;

Source:Core/HitTest/ShapeHitTest.cs (line 13)

Methods​

HitTest(Rect, Vector2)​

public bool HitTest(Rect contentRect, Vector2 localPoint);
ParameterTypeDescription
contentRectRect
localPointVector2

Source:Core/HitTest/ShapeHitTest.cs (line 26)