playMaker

Author Topic: Can't target object value from a prefab object to a non prefab, or other prefab  (Read 1343 times)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
I'm guessing this is probably just a unity thing that im not understanding, but none the less.

I'm trying to create an object variable, specifying the Unityengine.RecTransform
and i'm attempting to drag the Rec Transform component from the slider object in my scene into that field.  It works, but only when the main object that has the variable in it is not a prefab object.

i've tried making the slider object a prefab as well, but that doenst seem to work either.

Whenever I save and reload the project this link disappears and i cant figure out how to specify a unique game object component at runtime.

So how do you target a specific component, or popular the variable default value properly?

thanks