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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to set default value to "self"?

Example

How can I get my function on the left to have the same "Target [self]" pin as the one on the right?

Product Version: UE 4.15
Tags:
play.png (44.9 kB)
more ▼

asked Feb 18 '17 at 12:43 PM in Blueprint Scripting

avatar image

Willard720
313 16 25 55

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

2 answers: sort voted first

looking for this, myself.

From what I can tell:

for C++ defined functions: use UFUNCTION metadata 'DefaultToSelf = <paramname>' and it looks like you can set only one parameter per function to use this feature.

Sadly, I don't see any path to using this in a blueprint-only implementation that doesn't require engine changes. That being said, I don't think it would be difficult. Something like, in UEdGraphSchema_K2::TrySetDefaultValue - compare with the meta keyword before doing the package lookup.

Alternately, exposing various other of the meta functionality to functions in the advanced interface would be nice.

more ▼

answered Oct 23 '17 at 07:43 PM

avatar image

VictorSoulbound
11 1 1

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

I am guessing here, but can't you just put the right one into a variable and read it from there to the left one?

more ▼

answered Oct 23 '17 at 07:58 PM

avatar image

BugSwat
210 9 14 20

(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