You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call engine.goToScene(scene) and have code inspecting oldScene and newScene in onActivate or onDeactivate methods of Scene.
Expected Result
oldScene and newScene should be single Scene objects
Actual Result
Engine invokes _activate and _deactivate using .call(scene, [oldScene, newScene]) which passes the array as the first argument instead of as 1st and 2nd args.
Either it should be .call(scene, oldScene, newScene) or .apply(scene, [oldScene, newScene])
Steps to Reproduce
Call
engine.goToScene(scene)
and have code inspectingoldScene
andnewScene
inonActivate
oronDeactivate
methods ofScene
.Expected Result
oldScene
andnewScene
should be singleScene
objectsActual Result
Engine invokes
_activate
and_deactivate
using.call(scene, [oldScene, newScene])
which passes the array as the first argument instead of as 1st and 2nd args.Either it should be
.call(scene, oldScene, newScene)
or.apply(scene, [oldScene, newScene])
Current code:
Environment
Current Workaround
Code has to manually force type to be array of scene and handle it in a hacky way.
The text was updated successfully, but these errors were encountered: