Phaser API Documentation

  Version: 
setTexture([texture])

Description:

Sets the Texture to be used for the displacement effect.

You can only use a whole texture, not a frame from a texture atlas or sprite sheet.

Parameters:

name type arguments Default description
texture string <optional> '__WHITE'

The unique string-based key of the texture to use for displacement, which must exist in the Texture Manager.

Returns:
Description:

This FX Controller.

Since: 3.60.0
Source: src/fx/Displacement.js (Line 87)