playMaker

Author Topic: how to get application.loadedlevelName  (Read 3116 times)

lalamax3d

  • Playmaker Newbie
  • *
  • Posts: 12
how to get application.loadedlevelName
« on: August 09, 2013, 08:58:51 AM »
a prefab can be in two scenes. at its startup, i just wanted to check if its in scene01 or scene02. i can set Bool and switchbool actions. but how to get string at first point from unity.loadedlevelname
any ideas?
thanks in advance

lalamax3d

  • Playmaker Newbie
  • *
  • Posts: 12
Re: how to get application.loadedlevelName
« Reply #1 on: August 10, 2013, 02:47:47 AM »
i think, one logical idea is to put a simple mono behaviour script in stack before playmaker FSM.
playmaker fsm on character should have a string variable (access given to inspector.
then first mono behaviour puts value at start up.
then playmaker reads that value and moves on...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how to get application.loadedlevelName
« Reply #2 on: August 16, 2013, 04:37:28 AM »
Hi,

 that's dangerous, Please find instead an action that returns the last loaded scene name

bye

Jean