Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Custom text for 3D Widget - Get all Actors of Class


I'm trying to get specific actors from my level and then display a custom text on each of them (that has already been assigned on the specific actor instances in the level through a variable).

This is my widget, where I just have a plain text, which is changed through a variable that is located on the 3D Widget actor I am to use in the level (this is where I'm not sure what I'm doing wrong); alt text

This is the 3D Widget in the level, that I try to display with a custom text (they are all the same actor, just copy pasted); alt text

And lastly the Actor that has the 3D Widget with the variable "LevelText" that is set to editable. So that I can have a custom text on each instanced actor. alt text

My problem is with the "Get All Actors of Class" node, not sure how to do it for each instanced actor. Tried searching around, I do get examples of other things, bot haven't found an example for my issue.

Product Version: UE 4.15
more ▼

asked Aug 23 '17 at 11:51 PM in Blueprint Scripting

avatar image

11 3 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I eventually found a solution for this (as seen below).

My solution for this was to have two different blueprints, one widget blueprint and one actor blueprint. The widget blueprint is just a "Canvas Panel" and a "Text Box", where the "Canvas Panel" has a width of 250 and a height of 100 (this is just up to how you want it). alt text

The actor blueprint is the blueprint that will display the widget blueprint as a 3D Widget in the game world. So this is basically the only thing I did: alt text

On "even begin play" I cast to "Widget_LevelText" (which is my widget blueprint), with a reference of that widget blueprint connected to "Get user widget object" and then connected to "Object" on the cast node. I then get the text box from the widget blueprint, set a new text for it with "SetText (Text)" node, which has an editable text variable attached to it.

alt text

So now I can basically just copy paste the actor blueprint wherever I want in the game world, and rename each one to have their own specific text attached to it. alt text alt text

And that's how I did it! :) If you know of a more cost-effective way to do it (not sure how cost-effective this is), then please do send me a message!

more ▼

answered Nov 09 '18 at 01:57 PM

avatar image

11 3 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question