Phaser API Documentation

  Version: 
getByName(name)

Description:

Searches for the first instance of a child with its name property matching the given argument. Should more than one child have the same name only the first is returned.

Parameters:

name type description
name string

The name to search for.

Returns:
Description:

The first child with a matching name, or null if none were found.

Since: 3.4.0