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"

input from one controller on multiple UI widgets

I am trying to create a menu system for my unreal game. I am using a player controller to send input to the UI Widgets. This is an image of what I want to do:

alt text

I have managed to do this using a string of 'Cast' nodes. Can be seen here:

alt text

I was wondering if there is a way I could do this without the need to create a large string of cast nodes. It is fine at the moment however when I start adding additional menus this will not be a viable solution. I have also considered using an enum and switch, however, would prefer to do it in just 1 cast node

Product Version: UE 4.17
uiinput.png (28.1 kB)
cast.png (142.9 kB)
more ▼

asked Oct 04 '17 at 11:28 PM in Blueprint Scripting

avatar image

Sam Carey
49 2 5 7

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

1 answer: sort voted first

to call functions on a variety of unknown objects, you can use a blueprint interface. each widget can implement the interface in its class settings, then your menu controller can call those interface functions on its CurrentMenu object reference.

more ▼

answered Oct 05 '17 at 08:22 AM

avatar image

9.6k 320 205 450

(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