Phaser API Documentation

  Version: 

Member of: Phaser.Input

<static> CreatePixelPerfectHandler(textureManager, alphaTolerance)

Description:

Creates a new Pixel Perfect Handler function.

Access via InputPlugin.makePixelPerfect rather than calling it directly.

Parameters:

name type description
textureManager Phaser.Textures.TextureManager

A reference to the Texture Manager.

alphaTolerance number

The alpha level that the pixel should be above to be included as a successful interaction.

Returns:
Description:

The new Pixel Perfect Handler function.

Type:
  • function
Since: 3.10.0