Cannot drag text object into inspector
I was just making code in a prefab using ui text but when i tried to drag it to inspector it does not work it is showng me black circle like something is wrong.
its occur becouse its a prefab the way to do it it`s dinamic find it on runtime when the prefab its on the hierachy… using
GameObject.Find("Hand");
or
GameObject.FindGameObjectsWithTag("Respawn");
or
respawn = GameObject.FindWithTag("Respawn");
only if u have your prefab on the hierachy (the instance of it) u will able to drag it to it.
Either scoreText
isn’t a UnityEngine.UI.Text component, or the ‘Text’ object doesn’t have that component on it.