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


  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Actions being run at OnLevelWasLoaded()
« on: August 28, 2013, 07: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()?



  • Administrator
  • Hero Member
  • *****
  • Posts: 15212
  • Official Playmaker Support
    • View Profile
Re: Actions being run at OnLevelWasLoaded()
« Reply #1 on: September 10, 2013, 12:19:25 AM »

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