Phaser API Documentation

  Version: 
<private> sortDropZoneHandler(childA, childB)

Description:

Return the child lowest down the display list (with the smallest index) Will iterate through all parent containers, if present.

Prior to version 3.52.0 this method was called sortHandlerGO.

Parameters:

name type description
childA Phaser.GameObjects.GameObject

The first Game Object to compare.

childB Phaser.GameObjects.GameObject

The second Game Object to compare.

Returns:
Description:

Returns either a negative or positive integer, or zero if they match.

Type:
  • number
Since: 3.52.0