Is there an easy way to create 100 pieces of 3d text in editor mode

Alright, so we’re going to step through the process using the built in text render, but you will be able to adapt this to whatever at the end.

First an overview of the 3 pieces we’re going to need to make:

Editor Utility Widget: This is basically a tool to make blueprint scripts affect the editor instead of running at runtime. This will hold our button and the logic to spawning the text

The Struct: Will hold the text data such as the text, transform, and color.

Data Table: Will hold the structs to be read.

UnrealEditor_2023-07-27_00-37-49

Go ahead and make a folder for this and make one of each by right clicking in the content browser in the folder and then making an Editor Utility Widget, a Struct, and a Data table that uses the struct you made when it prompts you.

Let’s start with the struct, add 3 different variables to start and you can add more depending on your use case once you understand it better. I chose Text (string), Transform (transform), and Color (color).

Then save and compile. After that, head over to the Data table, and we’re going to make some basic entries to test it. Feel free to just make one or two entries and change their locations a bit so you can see how it works. I did 3 entries, 3 different colors, in 3 different locations so test it out. Here my texts are “Bang” “Boom” and “Pow”.

Then on to the Editor Utility Widget. This part you’ll have to follow piece by piece. Starting from creation:

Next grab a button and drop it in the top left of the canvas:

Feel free to rename the button for clarity and also drag in a text object under it (optional):

Then switch over to the graph and we’re going to make the logic:
image

I’ve used this site to help display (with comments) the entire BP. It’s also copyable, but I recommend putting it together yourself for MANY reasons.

After that, compile and save. Make sure you have entries in that data table, then you can test it! Start by right clicking your newly completed editor utility widget, the run it.

Then press the button and voila!
image

(I didn’t adjust their size so their Gizmos are huge next to them but you can change their sizes in the transform in the data table).

1 Like