playMaker

Author Topic: How to check if a scene is loaded or not?  (Read 1106 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
How to check if a scene is loaded or not?
« on: December 23, 2019, 10:49:06 AM »
I need to load some levels as additive but before that I need to check if scene is already loaded or not? to avoid loading that scene again. Is there any action for this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to check if a scene is loaded or not?
« Reply #1 on: December 23, 2019, 12:28:54 PM »
Hi,
 
nop...

 The most simple approach is to have each scene to register itself in a arraymaker hashtable for example. or send a global event on an fsm at start, that works too for other gameobject to pick up on an additive scene loading.

there is also a global system event "LEVEL LOADED" that is called every time a scene is loaded.

Bye,

 Jean