I’ve made an Enemy Prefab with some public values. It needs a Player and a Text to show the Infos of it (like Health, Name etc…). Whenever I put the Prefab into the game scene or I instantiate it using a C# code, it has no references and I can’t change them in the Inspector. How should I reference things in it? (Sorry for my bad English)
References to other objects will not be saved with the prefab. You need to use things like
GameObject.FindGameObjectsWithTag to find references to the other objects in the scene.