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"

How to collapse function variables in Blueprint?

Hello. To put it quite simply, I was wondering how to group/hide variables of a function, similar to the Print String function. I have been digging around, but I cannot find out how to do this.

I'm sorry if the title is misleading, I don't know how else to phrase it.

This is what I mean. I want my own functions to be able to do this.

alt text

Clicking the arrow:

alt text

I tried putting in default values for my function's parameters, but that didn't work. Any help would be appreciated.

Thanks for reading.

Product Version: UE 4.16
ps_collapsed.jpg (26.9 kB)
ps_open.jpg (45.6 kB)
more ▼

asked Jun 15 '17 at 05:24 PM in Blueprint Scripting

avatar image

Dat Reeses Cup

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

1 answer: sort voted first

By your question I do not understand if you have problems sending values ​​to the function or to collect values.

In doubt, I made an example using the 2 cases.

Create a function. Add one input parameter (Champion) and one output parameter (Champion Selected):

alt text

In the character blueprint, create two variables of type string (varText1 and varText2). When you click A, the variable (varText1) is set to a value that is entered into the function:

alt text

Within the function (see figure 1), the variable will be printed and with an append it will eventually be stored in the output parameter (Champion Selected) of the function.

The function ends by defining the value of the second variable.

Again in the character code, pressing C, variable 2 (varText2) will be called. If A or B have already been pressed, the text Champion + was selected will be written:

alt text

455.png (115.8 kB)
456.png (66.2 kB)
457.png (32.2 kB)
more ▼

answered Jun 21 '19 at 10:37 PM

avatar image

B0n3c0 S1nf0r0s0
1 1

(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