playMaker

Author Topic: Loosing actions dependencies with prefab[SOLVED]  (Read 1061 times)

miguelfanclub

  • Full Member
  • ***
  • Posts: 165
Loosing actions dependencies with prefab[SOLVED]
« 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
« Last Edit: September 12, 2017, 03:56:50 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Loosing actions dependencies with prefabs
« Reply #1 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