I’m trying to Instantiate a damage-text prefab on top of my enemies. i can see it on the scene view but not on the game view. Its a prefab which pops up when an enemy has been hit.I’ve tried scaling up the font size and i can tell its not about the size, it just wont show up on the game view.any ideas what I am doing wrong
hi… since i dont know the settings of your scene or how your scripts looks like i cant really pin point the problem.
but you might want to check other factors like
-
where the text prefab instantiated on the hierarchy (maybe other gameobjects graphic are blocking the instantiated text)
-
the sort order of the text canvas (or the parent if the text gameobject have parent gameobject)
-
the camera setting of the text canvas (or the parent if the text gameobject have parent gameobject)
good luck:)