[SOLVED] Preloading of resources

Hello! Is it possible to make preloading of all resources of all scenes at the beginning of the game, not at the beginning of the scene? The feature of my game is that i need to restart a scene very often and every time i have short lags at the beginning.
My scenes have the same resources, why is it always needed to load them again?

Well the resources are already preloaded, that’s what the loading screen is for :wink:
A scene change is just something that isn’t instant, it is basically deleting all objects, and creating a lot of them. That’s why games usually put loading screens between scenes. If you need to switch places fast without a lag spike, the best is to have both “scenes” actually inside one with a big position offset, and just move the camera from one position to the other.