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"

Asking this question since December 2014

Hello, I found myself asking the same question since December and utterly shocked that no one can answer it! I just want to know how to continuously spawn buttons and when clicked it would disappear I currently have 2 buttons but for some reason both disappear when i click one of them. Im doing this through the widget.

Product Version: Not Selected
more ▼

asked Jan 22 '15 at 06:23 PM in Using UE4

avatar image

12 7 10 12

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

1 answer: sort voted first

Hello KareemTheGod,

I have a project that I have modified to fit what I think it is you are looking for. The project spawns buttons in a grid (one at a time) and there is no limit to the number of buttons you can spawn. I have also set them up to disappear when clicked. You will need two widgets. I hope this helps.

Widget 1: This one will spawn the button and tell it where to go. (Note: I used a button to spawn my buttons in this example. You could use what ever event you would like. )

alt text

Widget 2: This widget will hold the functionality of the button.

alt text

Make it a great day

infdisbuttons1.png (223.8 kB)
infdisbuttons2.png (37.6 kB)
more ▼

answered Jan 22 '15 at 08:38 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image KareemTheGod Jan 23 '15 at 04:32 PM

OMG thanks man this is fantastic! one thing how do I get to spawn randomly instead of specific locations? It's ok but I would like to test that out seems fun

avatar image Rudy Q ♦♦ STAFF Jan 23 '15 at 05:08 PM

Hello KareemTheGod,

You could make the following changes:

alt text

avatar image KareemTheGod Jan 23 '15 at 06:11 PM

Hello Ruby, sorry to bother you again i mean you are the only person who took the time to help a guy out now my problem is that for some reason when i hit play the whole logic does not get executed at all. I believe its because of the positions but im not good at that stuff im doing this on a mobile device so the widget screen is smaller here is what it looks like alt text

Here is the logic: alt text

And here is the other widget: alt text

textlel.png (253.8 kB)
buttonarray.png (438.8 kB)
textlellele2.png (258.1 kB)
avatar image Rudy Q ♦♦ STAFF Jan 23 '15 at 06:44 PM

Hello KareemTheGod,

I am more than happy to help. However, this was only meant to be an example to get you started. Here is a more in depth explanation at how the math that I used works.

Note: I made a typo in the following picture. It says: "These must always equal..." it is supposed to say "When multiplied together these must always equal..." The 100 is derived from the button size and the 11 is how many buttons there should be before the math starts the next line in the grid. The 50 has to do with the height of the button with a little extra to provide some space between rows.

alt text

Make it a great day.

avatar image KareemTheGod Jan 23 '15 at 07:14 PM

Im sorry im not quite understanding your math here, you see my mobile device is Samsung Galaxy S4 the resolution is 1920 X 1080 how do I apply this to your math logic>?

avatar image Rudy Q ♦♦ STAFF Jan 23 '15 at 07:56 PM

Hello KareemTheGod,

After looking back over your blueprints I notice you have two wires in backwards. The subtraction node that leads into the X position is spiting out negative numbers because this.

alt text

swithit.png (72.8 kB)
(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