Good luck everyone and have a nice day. I have a world and I need to create 100 3d texts with same properties, different texts and locations in this world. this can be done with blueprint but I need to place it in the world and play with its positions in it. so i need to do this in editor mode. Is there a quick way to do this? or just ctrl c ctrl v?
Hey there @cangencan! Welcome to the community! My recommendation would be to make an editor utility blueprint or editor widget utility blueprint to generate something like this.
If you know what the text is going to be and where it is coordinate wise, you could use a data table with all of the locations and text.
I made an example for a user last year that’s somewhat similar to what you need:
Thank you for your answer. I will try this.
No problem! You’ll need to change my script a bit to be able to edit the text instead of the SM but it’s relatively the same thing. If you have any questions about the implementation, feel free to ask!
Hello again. I tried a lot in the links you gave, but I couldn’t even take a step. sorry my unexperince :(. then I googled it but there is almost no video about it. would I be going too far if I asked you to print 2 texts as 3d text?
Hi all,
I just wanted to mention the 3D Text plugin that’s included with the editor. (Off by default, needs to be enabled)
No worries! I can probably adjust the script for your use case. I’ll make it a step by step like the other thread so it’ll be easy to follow. I’ll let you know when it’s done!
Thanks for help. I am waiting for your reply. It gives me hope to see that helpful people like you still exist in this world.
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.
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:
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!
(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).
I was beginning to think you wouldn’t answer. Thank you very much
No problem! I was actually retooling this for a class I teach so it’s no issue at all. If you want to expand it to be able to be written to and readable from a CSV file, the original post’s steps also still work for this one. If you have any questions about this little system, please let me know! Hope it helps!