An embarrassingly simple question, given the scope of what I want to do, but how do I quite simply have a gameobject have text on it, that’s not related to the UI at all?
I want to create a number of “placeholder” objects to serve as prototypes whilst I develop a 2D game before later onboarding an artist to replace them with proper sprites. So in essence, I want a “square” which contains its own text but behaves as a simple object, not part of the UI.
All the research I can find talks about associating text with UI, whereas I just want a simple gameobject with text on it.
I create a gameobject via Right Click → 2D Object → Sprites → Square. Now how do I add text to it?
I can’t seem to use a text mesh since this conflicts with the square mesh renderer (I do want a square, not just text by itself, so I can easily resize the shape of the object and make its outline apparent as a square).
I tried using TextMeshPro → Text. I can create text which appears exactly how I want it within the Scene view:

But the game view? It disappears:

How do I accomplish this embarrassingly simple task? Thanks.