playMaker

Author Topic: Actions being run at OnLevelWasLoaded()  (Read 2911 times)

kLy

  • Playmaker Newbie
  • *
  • Posts: 9
Actions being run at OnLevelWasLoaded()
« 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Actions being run at OnLevelWasLoaded()
« Reply #1 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