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
Login
Register
By registering on this website you agree to our Privacy Policy.