Reply To: Making a singleton does not result too well. . .

Forums 💬 FlowCanvas ⚙️ Support Making a singleton does not result too well. . . Reply To: Making a singleton does not result too well. . .

#22020
Gavalakis
Keymaster

    Hey,

    I’ve downloaded your attachment, but I am not exactly sure what you want to achieve 🙂
    Are you basically trying to get a callback for whenever a Unity scene is loaded (thus the ‘SceneManager.sceneLoaded’ event is raised) ?

    If so, you can do so in an easier way:
    1) Open up Preferred Types Editor window and add the “UnityEngine.SceneManagement.SceneManager” type in the types list.
    [attachment file=”SceneManager.png”]

    2) Doing the above, you can now use the SceneManager API, like for example directly make use of the ‘sceneLoaded” event. Browse or search for the sceneLoaded event:
    [attachment file=”SceneLoaded.png”]

    3) You now have a “SceneLoaded” event node in the flowscript:
    [attachment file=”SceneLoadedEventNode.png”]

    Let me know if that is indeed what you were after.
    Thanks.