Phaser API Documentation

  Version: 
hasUniform(name)

Description:

Checks to see if the given uniform name exists and is active in this shader.

Parameters:

name type description
name string

The name of the uniform to check for.

Returns:
Description:

true if the uniform exists, otherwise false.

Type:
  • boolean
Since: 3.50.0