Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: kLy on August 28, 2013, 10:54:33 AM

Title: Actions being run at OnLevelWasLoaded()
Post by: kLy on August 28, 2013, 10:54:33 AM
Seems like when running a level for the first time, starting states and their corresponding actions are run from Start().

However, it seems like across level loads, those states and actions are called from OnLevelWasLoaded().

Since OnLevelWasLoaded is always called before the Start() of anything in the scene, a lot of things aren't properly initialised at this stage and aren't ready to have FSM actions run on them.

Is there a reason why this is not run from Start()?

Thx!
Title: Re: Actions being run at OnLevelWasLoaded()
Post by: jeanfabre on September 10, 2013, 03:19:25 AM
Hi,

 Do you have an example? I would usually have a "next frame event" when cathing "On LEVEL LOADED" event.

bye,

 Jean