Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: miguelfanclub on September 11, 2017, 02:41:15 PM

Title: Loosing actions dependencies with prefab[SOLVED]
Post by: miguelfanclub on September 11, 2017, 02:41:15 PM
So I have a charctaer controlloer that holds all the information I need as a prefab.
I also have other prefabs that ask infotmation from character controller (variables) and also send events to him.

So when I create a new scene and place the character controller all is good. But when I add the other prefabs, then they loose some conections (reference objects that holds variables mostly) and then I have to reconect everything again.

Is this the expected behaviour? I never use global variables so I always use the get varibale in order to operate with them. Those are the fields where I loose the conections.

Thanks
Title: Re: Loosing actions dependencies with prefabs
Post by: djaydino on September 11, 2017, 10:26:34 PM
Hi,
Yes that normal behavior
if you want to manually place them into another same (not @runtime)  then you can make an empty object and drop the connected objects in there and then make a prefab.
Drop it in the new scene and you can drag them out of the prefab (if needed)

if @runtime you might need to reference the connections, there are different ways to do so