I’m reading text from a XML file. I’d like to dynamically spawn a cube for each line of text, and display the text on the cube ‘face’.
Spawning the cubes is easy. I’m running into major problems just trying to display text on the cube face.
Am I supposed to used the 3d text object or the uGUI system? I’ve tried both:
Using the 3D text object displays awful looking text…highly pixelated…basically unusable…I’m not sure what I’m doing wrong there.
Any pointers for accomplishing what I thought would be a simple task?
Thanks for any ideas/recommendations
@karl.jones Thanks for providing an example. Unfortunately I think the package is not complete. It imports a cube with a canvas (that was insightful for me too though!). It references two non-existant scripts on the cube and there is no UI text component. I’ll play a bit with that you’ve sent me because this steering me in a new direction, but if you happen to have the time to send through a different package, it would also of course be greatly appreciated. I’ll let you know how my tinkering here works out.
UPDATE: Brilliant thanks! I got your example working. That gives me crisp text. I’d have never figured that out.
Strange that my package broke, it also doesn’t work for me. Here is another.
[52632-cube2.zip|52632]
Creating a Cube prefab with a Worldspace UI text component should give nice results. I have attached an example.
[52628-cube-with-text.zip|52628]
@karl_jones - Your sample given here is again broken I guess. Can you please share that sample again. I want to add text to cubes generated through c# scripts.