playMaker

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

miguelfanclub

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Loosing actions dependencies with prefab[SOLVED]
« on: September 11, 2017, 11:41:15 AM »
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, 12:56:50 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2247
    • View Profile
    • jinxtergames
Re: Loosing actions dependencies with prefabs
« Reply #1 on: September 11, 2017, 07: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