Phaser API Documentation

  Version: 
sortDropZones(gameObjects)

Description:

Given an array of Drop Zone Game Objects, sort the array and return it, so that the objects are in depth index order with the lowest at the bottom.

Parameters:

name type description
gameObjects Array.<Phaser.GameObjects.GameObject>

An array of Game Objects to be sorted.

Returns:
Description:

The sorted array of Game Objects.

Examples:
Since: 3.52.0