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"

Is there a way to spawn new buttons in a widget during the game

So Im working on an RTS game, and im trying to set up a widget blueprint that will create a new tab for each npc that gets added to the game. For the time being, im just trying to set this up with buttons, but it has proved to be way more difficult than i thought. Im trying to just make an array that will find all actors of class NPC, then create a button for each one, as children of a vertical box. Ive got the first part down, but, that only seems to help me if i were actually getting or setting data from them, which i am not. I have been able to create one button , but i cant get it to work after the first one. The only way i can think of going about this is making a variable for each character, and since there does not seem to be any way to create variables during the game, does anybody have any ideas on how i can go about making this work?

Product Version: Not Selected
more ▼

asked Mar 31 '16 at 08:34 PM in Using UE4

avatar image

1k 64 48 98

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

1 answer: sort voted first

Any update? I'm working on a similar function right now. My solution is to create another widget class, which has an only button, in a vertical box as a child.

It worked with mouse. But new widget cannot work with gamepad because it's not just a button but a widget.

more ▼

answered Nov 02 '16 at 06:27 AM

avatar image

1 1

avatar image ViceVersa Mar 14 '17 at 05:07 PM

I stopped working on this project almost a year ago, I never got it resolved, but made a workaround similar to what you did

(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