Phaser API Documentation

  Version: 
setDropZone(hitArea, hitAreaCallback)

Description:

Allows you to define your own Geometry shape to be used as a Drop Zone.

Parameters:

name type description
hitArea object

A Geometry shape instance, such as Phaser.Geom.Ellipse, or your own custom shape.

hitAreaCallback Phaser.Types.Input.HitAreaCallback

A function that will return true if the given x/y coords it is sent are within the shape.

Returns:
Description:

This Game Object.

Since: 3.0.0