Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: thatnzguy on April 08, 2015, 01:37:10 AM
-
I want to load a scene that just has one gameObject in it, and then parent that gameObject to one in the main scene.
I'm using Load Level and then Find Game Object, however it appears the level actually appears in the scene one frame after the Level Loaded event is fired. Which means that I cannot find the game object because it exists one frame after I look for it.
Any tips on what I could do would be greatly appreciated.
Cheers!
-
You can just have the Load level on its own state with a wait action with a short time like 0.5 seconds- then the find object on the next state linked to the wait action
-
Using a wait action isn't ideal, I ended up using Async to resolve the problem. It fires the finished event correctly after the level is loaded in.
Cheers!