Question about composer scene:hide

Hi guys, I just want to ask how much time we have in the composer’s scene:hide “did” phase. Ex. I need to manually remove some display objects and native text fields, the issue is if I delete it in the “will” phase and use, for example, a 800 time in the composer transition, the user sees the object reset/delete, but if I delete them in the “did” phase the user does not see it, but, some objects stop and do not reset.

I would also like to ask if the time in the composer’s transition affects the time remaining in the scene:show “will” phase and scene:hide “will” phase.

Thanks
DoDi

The time between “will” and “did” is the duration of your transition + 1 frame, unless you’re doing more work than can be completed in one frame.

I recommend removing native objects in the “will” phase because they will stay in place while the transition happens underneath. It just looks better to remove them.

Your other display objects should be added to the scene so they will transition with the scene. If they are UI items that you’re going to bring back in another scene, you can simply hide them rather than remove them. Today’s slowest devices can still execute millions of instructions per second which means you can do a lot in 1/60th of second.

Rob

Thanks @rob

The time between “will” and “did” is the duration of your transition + 1 frame, unless you’re doing more work than can be completed in one frame.

I recommend removing native objects in the “will” phase because they will stay in place while the transition happens underneath. It just looks better to remove them.

Your other display objects should be added to the scene so they will transition with the scene. If they are UI items that you’re going to bring back in another scene, you can simply hide them rather than remove them. Today’s slowest devices can still execute millions of instructions per second which means you can do a lot in 1/60th of second.

Rob

Thanks @rob