Class SceneManager

#include <Geode/ui/SceneManager.hpp>
classSceneManager{ ... }
No description provided
Examples0
Public static methods1
staticgeode::SceneManager*get()
No description provided
Public member functions3
voidkeepAcrossScenes()

Adds a node to the list of persisted nodes, which are kept across scene changes.

Parameters

node

The node to keep across scenes.
voidforget()

Removes a node from the list of persisted nodes.

Parameters

node

The node to forget.
std::span<geode::Ref<cocos2d::CCNode>const>getPersistedNodes()

Gets a span of the persisted nodes. To add new nodes to the list, use keepAcrossScenes.

Fields0
Protected member functions1
voidwillSwitchToScene()
No description provided
Protected fields2
;
No description provided
;
No description provided