playMaker

Author Topic: Is there a prefab scope variable  (Read 2174 times)

zeiteisen

  • Playmaker Newbie
  • *
  • Posts: 2
Is there a prefab scope variable
« on: July 12, 2015, 07:11:38 AM »
Hello everyone,

As for my understanding are there 2 variable scopes. One variable is visible inside the FSM and another visible global. Is there support for a variable that is accessible within the same prefab or component hierarchy?
Its because I need to store a gameobject when enter a trigger and use this gameobject in another FSM but it can't be global, because than every copy uses this stored gameobject.

DarkSoul

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Is there a prefab scope variable
« Reply #1 on: July 12, 2015, 07:53:26 AM »
Hello ,

You can use get fsm variable action to get a variable on another game object or fsm.

I hope this helps.

zeiteisen

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Is there a prefab scope variable
« Reply #2 on: July 12, 2015, 08:59:18 AM »
Thank you, that does the trick!