Function switchToScene

#include <Geode/utils/cocos.hpp>cocos2d::CCScene*switchToScene()

Create a CCScene from a layer and switch to it with the default fade transition

Parameters

layer

Layer to create a scene from
Return value
Created scene (not the fade transition)
Examples0