The question is answered, right answer was accepted
Script on prefab not accessing object in scene
Gameobject in scene should be accessed by script on prefab in assets. But when i drag the script on the slot that it should go to it dont work. Even when i click the little circle and look it dosnt have the tab that says "scene" ... why? This keeps making me mad.
Prefabs can't access scene objects, because they can't possibly know in which scene they will be instantiated or what objects it will contain....
Answer by YasinJavaid_ · Jul 18, 2016 at 04:55 AM
prefabs losses references of objects in scenes. you have to find gaemobject or find with tag or use static gameobject.
Follow this Question
Related Questions
How to instantiate prefabs at certain times? 1 Answer
Why the prefabs loose their preview in the Project windows ? 2 Answers
Instantiating without the use of Resource Folder in Unity? 0 Answers
Trying to package a prefab for sale in asset store 0 Answers
Is there a solution for the waypoint prefab issue? 2 Answers