Can’t Pass Prefab Components Into Prefab Public Variables

Updated on May 21, 2018 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on May 21, 2018

[Note: I don’t have a server so I can’t upload my screenshot anywhere where it would be stable, so I’ve opted for a shared Google file. I promise it’s not a virus! And the admins have disabled the Upload Image option, so…]


So, I made a prefab of my SceneManager (for scene transitions) so I can have it in multiple scenes. However, though I can pass the character (ant) and camera transforms into the public variables of the screen manager instances, I can’t pass them into the prefab–which would be very convenient so I don’t have to repeat it every time I modify something. Ideally I would like to have a prefab character (ant), a prefab camera, and pass their transforms into the prefab SceneManager, so I don’t have to repeat everything for each scene–but the search window doesn’t indicate this is a possiblity.

Any help is greatly appreciated!

  • Liked by
0 on May 21, 2018

Wait, I think I’ve answered my own question!

You can’t pass prefab transforms into anything because they don’t have them. Transforms belong to instantiated objects with concrete location.


But is there anyway to set a default, per se, transform for a prefab and then pass that in?

  • Liked by