What is the easiest way of printing a text as game objects?

Hi,

I want to type a text, for example: “Hello world!”

Then I want this script to turn “Hello world!” into about hundred white cube GameObjects that spell the exact text.

So if I could get a texture version of the text, I could read every pixel and instantiate a white cube for every white pixel.

How can I do this within Unity? Is there an easier way to do this? Did someone do this already?

Thanks,
Tunc

Have an array of textures, where each texture corresponds to a character. For each character in the string, look up the corresponding texture, then loop through the texture and instantiate a cube based on pixel positions.

–Eric

Thanks Eric, I’ll check it out.