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"

[Feature Request] Access parameters from anywhere in the function

I want to be able to access function parameters from anywhere in the function, without having to assign them to local variables. When the function gets quite long, we end up having to drag these wires from way at the beginning, and it just makes the whole thing look messy. Of course we can set them to local variables, but this should be by default, just to make everything easier and cleaner.

Product Version: UE 4.14
Tags:
more ▼

asked Nov 20 '16 at 03:30 AM in Blueprint Scripting

avatar image

Willard720
318 17 25 56

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

2 answers: sort voted first

Hello Willard720,

I apologize for the delay, I've been quite busy with bug reports from 4.14 and 4.14.1. I've placed the feature request in for this and you can find that report here: UE-39767 You can track its progress there but please keep in mind that feature requests are often low priority so it may not be added soon.

more ▼

answered Dec 14 '16 at 04:13 PM

avatar image Willard720 Dec 16 '16 at 05:17 PM

Awesome, thank you!

avatar image Willard720 May 30 '17 at 03:05 AM

I appreciate you guys finally adding this in, but may I ask why this does not exist in Macros? In Functions I could get away with creating local versions of all the variables, setting all the parameters to them, then collapsing the whole thing into a node called Initialize, but, since Macros cant have Function-like local variables, I can't do that either, so I'm forced to deal with the wires all over the place again, without even the old workaround.

avatar image Willard720 May 30 '17 at 03:10 AM

Also, what about a way to, in the Entry Node, show that a given parameter has been used as a local, to prevent us from thinking its not in use?

avatar image Matthew J Jun 02 '17 at 07:03 PM

Can you please make a detailed list of each one of the features you want to be added? The reason this wasn't added to macros is because they are different than functions and it was expressly asked for. It would be best to enter all of your requests at once instead of adding things on one by one.

avatar image Willard720 Jun 02 '17 at 07:52 PM

I figured that was the reason behind it. And do you mean all of my requests in general? Like compiling all of my requests so far into one post, as opposed to having all of them separate, or do you mean just for this post? I do know I ask a lot of feature requests, so I apologize if it is annoying or hard to keep track of.

avatar image Matthew J Jun 05 '17 at 07:10 PM

Either method is fine. If you have features that you would like to have added related to variables in functions or macros, you can feel free to leave them here. Generally it's best to make a new post because having to come back to the post and get acquainted with it again can cause confusion.

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

There is no such functionality. You have to make them local variables. Might be implemented later.

more ▼

answered Nov 20 '16 at 03:36 AM

avatar image

NoobsDeSroobs
2.7k 107 35 180

avatar image Willard720 Nov 21 '16 at 10:51 PM

I know there is no such functionality. Did you not notice the feature request tag?

avatar image NoobsDeSroobs Nov 22 '16 at 12:40 PM

alt text Except the tag was not there when the question was posted. Nice try editing the title and then acting like a [redacted].

avatar image Matthew J Nov 22 '16 at 12:44 PM

Hello Willard720 & NoobsDeSroobs,

Please be civil when discussing issues on the Answerhub. Thank you for adding the feature request tab so that we know that you're looking to have this feature added. I'll look into putting one in.

@NoobsDeSroobs, users do not have the option to delete your comments. Both of your comments were automatically put in moderation due to the expletives used in them.

avatar image NoobsDeSroobs Nov 22 '16 at 02:02 PM

@Matthewclark, thank you for clarifying that.

@willard720, I owe you an apology. I am sorry for accusing you of deleting my comment.

avatar image Willard720 Dec 13 '16 at 04:07 PM

@Mathew Great, thanks @NoobsDeScroobs, yeah its fine, no problem!

(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