Phaser/phaser: Release v3.52.0
Name: phaser
Owner: Phaser
Release: Phaser v3.52.0
Released: 2021-01-14
License: MIT
Release Assets:
Version 3.52.0 - Crusch - 14th January 2021
New Features
- The
getPostPipelinemethod available on most Game Objects will now return an array of piplines if an instance is given and the Game Object has more than one of those pipelines set on it. If only one pipeline is set, it will be returned directly.
Updates
BaseCamera.renderListis a new array that is populated with all Game Objects that the camera has rendered in the current frame. It is automatically cleared duringCamera.preUpdateand is an accurate representation of the Game Objects the Camera rendered. It's used internally by the Input Plugin, but exposed should you wish to read the contents or use it for profiling.BaseCamera.addToRenderListis a new method that will add the given Game Object to the Cameras current render list.- The
InputPlugin.sortGameObjectsmethod now uses the new Camera render list to work out the display index depths. - The
InputPlugin.sortDropZonesmethod is a new method, based on the oldsortGameObjectsmethod that is used for sorting input enabled drop zones. - The background color behind the game url in the banner is now transparent, so it looks correct with dark dev tools themes (thanks @kainage)
Bug Fixes
WebAudioSound.destroynow checks to see ifpannerNodeexists before disabling it, preventing an error in Safari (thanks @jdcook)- Fixed the cause of
Uncaught TypeError: Cannot read property 'getIndex' of nullby checking the display list property securely. Fix #5489 (thanks @actionmoon) - Fixed an issue where adding input-enabled Game Objects to a Layer would have the input system ignore their depth settings. Fix #5483 (thanks @pr4xx)
- The method
TilemapLayer.weightedRandomizehas changed so that the parameterweightedIndexesis now first in the method and is non-optional. Previously, it was the 5th parameter and incorrectly flagged as optional. This change was made to the docs but not the parameters, but now works according to the docs (thanks Fantasix) - The Mesh
GenerateVertsfunction was returning an object with the propertyvertsinstead ofverticesas expected by theMesh.addVerticesmethod. It now returns the correct name (thanks @lackhand) AtlasJSONFilewill now callFile.pendingDestroy, clearing up the resources it used during load and emitting a missingFILE_COMPLETEevent. Fix #5495 (thanks @mikuso)AtlasJSONFile,AtlasXMLFile,BitmapFontFileandUnityAtlasFilewill now callFile.pendingDestroy, clearing up the resources it used during load and emiting a missingFILE_COMPLETEevent. Fix #5495 (thanks @mikuso)- Some Bitmap Text fonts were not rendering under Canvas due to the way in which the texture offset was calculated. It now uses the
__BASEframe to get the texture offset, rather than the first frame in the set. Fix #5462 #5501 (thanks @monteiz @DPMakerQB)
Examples, Documentation and TypeScript
My thanks to the following for helping with the Phaser 3 Examples, Docs, and TypeScript definitions, either by reporting errors, fixing them, or helping author the docs:
@ygongdev Tucker @lackhand