Слияние кода завершено, страница обновится автоматически
Return to the Change Log index.
onStart
, which is passed the parameters fromScene
, toScene
and duration
allowing you to consolidate transition logic into a single callback, rather than split across the start and end events (thanks @rexrainbow)Phaser.Scenes.Systems.getStatus
is a new method that will return the current status of the Scene.Phaser.Scenes.ScenePlugin.getStatus
is a new method that will return the current status of the given Scene.SceneManager.processQueue
method will no longer return
if a new Scene was added, after starting it. This allows any other queued operations to still be run in the same frame, rather than being delayed until the next game frame. Fix #5359 (thanks @telinc1)SceneManager.systemScene
is a new property that is set during the game boot and is a system Scene reference that plugins and managers can use, that lives outside of the Scene list.SceneManager.stop
and sleep
will now ignore the call if the Scene has already been shut down, avoiding potential problems with duplicate event handles. Fix #5826 (thanks @samme)Scene.pause
will now check to see if the Scene is in either a RUNNING or CREATING state and throw a warning if not. You cannot pause non-running Scenes.LoaderPlugin
would throw an error when removing event handlers. It now checks first, before removing (thanks @samme)POST_UPDATE
event from firing after the transition is over. Fix #5550 (thanks @mijinc0 @samme)SceneManager.bootScene
method will now always call LoaderPlugin.start
, even if there are no files in the queue. This means that the Loader will always dispatch its START
and COMPLETE
events, even if the queue is empty because the files are already cached. You can now rely on the START
and COMPLETE
events to be fired, regardless, using them safely in your preload scene. Fix #5877 (thanks @sipals)SceneManager.moveAbove
and moveBelow
now take into account the modified indexes after the move (thanks @EmilSV)SceneManager.moveAbove
and moveBelow
methods didn't check the order of the Scenes being moved, so moved them even if one was already above / below the other. Both methods now check the indexes first. Fix #6040 (thanks @yuupsup)Return to the Change Log index.
📖 Read the Phaser 3 API Docs 💻 Browse 2000+ Code Examples 🤝 Join the awesome Phaser Discord
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )