Reply To: Bug report: Reference to a GameObject placed in a prefab becomes NULL

FlowCanvas Forums Support Bug report: Reference to a GameObject placed in a prefab becomes NULL Reply To: Bug report: Reference to a GameObject placed in a prefab becomes NULL

#304
Gavalakis
Keymaster

Hey,

This is natural and is completely a Unity limitation.
In Unity, assets (which includes prefabs not placed in the scene), simply can’t have references to scene objects. There is really nothing I can do about this Unity limitation unfortunately. I know it can get frustrating when you start out with Unity.

The typical workarounds to this, is that you use some of the Find unity static methods, like GameObject.Find, GameObject.FindWithTag or Object.FindObjectOfType for example.

Let me know if I can help you further with this.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh