Prefab UI Element not showing in game
Hey all,
I'm pretty new to Unity. I've been working on creating UI elements for a basic player inventory. It was working at first, and I could add slots and items to slots at runtime via script. The slots would display empty or an item icon.
However, today when I run the game, all slot prefabs DON'T display. If I manually drag a slot prefab onto my scene, it shows up X'd out with red lines. This is a screenshot of what it looks like when I add this prefab to the scene:
It's SUPPOSED to look like that small button/square to the left. I've never seen these lines before -- does anyone know what I might have missed or what's happening with my prefab?
Thanks for your time!
prefabnotdisplaying.png
(330.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612065343im_/https://answers.unity.com/themes/thub/images/avi.jpg)