- Home /
Tex Prefab not showing on GameView
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
Answer by VadDivine · May 05, 2020 at 02:47 PM
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:)
Thanks for the ideas. No idea what was wrong the 1st time. i deleted the prefab, created a new GameObject ,Reset its Transform and put my text $$anonymous$$esh and its now working perfectly. maybe it was because the first time i didn't reset the transform before creating the prefab.
Your answer
![](https://koobas.hobune.stream/wayback/20220612233336im_/https://answers.unity.com/themes/thub/images/avi.jpg)