2.3 KiB
2.3 KiB
Phaser 3.60.0 Change Log
Return to the Change Log index.
Utils New Features
Utils.Array.Flattenis a new function that will return a flattened version of an array, regardless of how deeply-nested it is.ProcessQueue.isActiveis a new method that tests if the given object is in the active list, or not.ProcessQueue.isPendingis a new method that tests if the given object is in the pending insertion list, or not.ProcessQueue.isDestroyingis a new method that tests if the given object is pending destruction, or not.ProcessQueue.addwill no longer place the item into the pending list if it's already active or pending.ProcessQueue.removewill check if the item is in the pending list, and simply remove it, rather than destroying it.
Math New Features
Math.LinearXYis a new function that will interpolate between 2 given Vector2s and return a new Vector2 as a result (thanks @GregDevProjects)Vector2.projectis a new method that will project the vector onto the given vector (thanks @samme)
Utils Updates
- Previously, an Array Matrix would enforce it had more than 2 rows. This restriction has been removed, allowing you to define and rotate single-row array matrices (thanks @andriibarvynko)
- The
GetValuefunction has a new optional parameteraltSourcewhich allows you to provide an alternative object to source the value from.
Utils Bug Fixes
- The
Utils.Array.SafeRangefunction would exclude valid certain ranges. Fix #5979 (thanks @ksritharan) - Fixed issue in
Utils.Objects.GetValuewhere it would return an incorrect result if asourceandaltSourcewere provided that didn't match in structure. Fix #5952 (thanks @rexrainbow)
Actions Bug Fixes
- The
tempZoneused byGridAlignhas now hadsetOrigin(0, 0)applied to it. This leads to more accurate / expected zone placement when aligning grid items. - The
Actions.Spreadmethod will now place the final item correctly and abort early if the array only contains 1 or 0 items (thanks @EmilSV)
Return to the Change Log index.
📖 Read the Phaser 3 API Docs 💻 Browse 2000+ Code Examples 🤝 Join the awesome Phaser Discord