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

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

#1679
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.
SceneManager

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:
SceneLoaded

3) You now have a “SceneLoaded” event node in the flowscript:
SceneLoadedEventNode

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

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. SceneManager.png

  2. SceneLoaded.png

  3. SceneLoadedEventNode.png