x

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"

Dynamically spawn widget from dynamic spawned button

Hello everyone !

I'm trying to do the following : 1/ Spawn button in an vertical box, dynamically (depending on the number of elements in an array) || DONE

2/ From this button, when I click it, spawn a widget in an horizontal box || Half DONE

What I mean by half done is that when I click my buttons, the buttons are not working beside the last one added. I've tried with an event dispatcher, but it does not seems to work well...

Product Version: UE 4.20
Tags:
more ▼

asked Oct 16 '18 at 01:32 PM in Blueprint Scripting

avatar image

tbeaugelin
62 2 4 5

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

1 answer: sort voted first

Like this:

alt text

capture.png (193.5 kB)
more ▼

answered Oct 16 '18 at 02:35 PM

avatar image

Everynone
13.7k 74 25 57

avatar image tbeaugelin Oct 16 '18 at 02:48 PM

First of all, thank you my kind sir (or madam) for your quick response. I tried your method, and it is indeed giving me good results. The only thing is, all the buttons triggers the same actions, and i need them to be triggering different actions. I am joining a rip-oo my project with the basics functionnality needed to understand what i want. If you open the project, open the map called "LevelSelection" and press play, you see two buttons. If you press any of them, it spawn a widget, but this widget is not supposed to be the same depending of the button you press. I'm sorry if I'm a bit blury...

Link to the project:

avatar image Everynone Oct 16 '18 at 03:17 PM

If I get to choose, I'll go for sir, yay!

The only thing is, all the buttons triggers the same actions, and i need them to be triggering different actions.

What you've described makes perfect sense. I did not download your project but the following seems to be doing what you need:

alt text

capture.png (300.9 kB)
avatar image tbeaugelin Oct 16 '18 at 04:09 PM

Thanks to you again, this solved my issue ! Thank you kind sir !

(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