24class UrSceneManager:
public ToyMaker::SimObjectAspect<UrSceneManager> {
26 UrSceneManager(): ToyMaker::SimObjectAspect<UrSceneManager>{0} {}
27 inline static std::string getSimObjectAspectTypeName() {
return "UrSceneManager"; }
28 static std::shared_ptr<BaseSimObjectAspect> create(
const nlohmann::json& jsonAspectProperties);
29 std::shared_ptr<BaseSimObjectAspect> clone()
const override;
31 void loadScene(
const std::string& sceneResourceName);
34 void onActivated()
override;
35 void variableUpdate(uint32_t timeStepMillis)
override;
41 std::string mNextScene {};
42 std::vector<std::string> mAutoloads {};
43 bool mSwitchScenesThisFrame {
false };
44 bool mAutoloadsActivated {
false };
46 std::vector<std::shared_ptr<ToyMaker::SceneNodeCore>> mRemovedScene {};