How to set default value to "self"?
How can I get my function on the left to have the same "Target [self]" pin as the one on the right?
asked Feb 18 '17 at 12:43 PM in Blueprint Scripting
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.
answered Oct 23 '17 at 07:43 PM
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?
answered Oct 23 '17 at 07:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here