Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

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.

Type:
  • *
Examples:
Since: 3.0.0
Source: src/structs/List.js (Line 219)