Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on December 23, 2019, 10:49:06 AM

Title: How to check if a scene is loaded or not?
Post by: Silicon Power 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?
Title: Re: How to check if a scene is loaded or not?
Post by: jeanfabre 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