Phaser API Documentation

  Version: 
setToTop()

Description:

Sets this Game Object to be at the top of the display list, or the top of its parent container.

Being at the top means it will render on-top of everything else.

This method does not change this Game Objects depth value, it simply alters its list position.

Returns:
Description:

This Game Object instance.

Since: 3.85.0