Phaser API Documentation

  Version: 
setPointer([pointer])

Description:

Binds a Phaser Pointer object to this Shader.

The screen position of the pointer will be set in to the shaders mouse uniform automatically every frame. Call this method with no arguments to unbind the pointer.

Parameters:

name type arguments description
pointer Phaser.Input.Pointer <optional>

The Pointer to bind to this shader.

Returns:
Description:

This Shader instance.

Since: 3.17.0