Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: zeiteisen on July 12, 2015, 07:11:38 AM

Title: Is there a prefab scope variable
Post by: zeiteisen 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.
Title: Re: Is there a prefab scope variable
Post by: DarkSoul 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.
Title: Re: Is there a prefab scope variable
Post by: zeiteisen on July 12, 2015, 08:59:18 AM
Thank you, that does the trick!