why does blueprint function has duplicate outer/ target?
I have a function I made in code that requires an UObject* outer. When I call this method through blueprints I end up with a "target" and an "outer" input. Is this a problem? Clearly I only need one, but I don't want to remove it from the c++ method because it would be needed there, but in blueprints it already has a target so I could just use that.
asked Oct 17 '16 at 03:25 PM in C++ Programming
The "Target" in Blueprints is the calling object the method you are invoking resides within.
If, for example, you were in your Pawn blueprint, and were invoking a method found within one of the Pawn's component objects, you would attach the component object holding the method you are invoking to the "Target" input.
When "Target" is "self", that means the method is a member of the blueprint you are currently editing.
Pins below the "Target" are the actual arguments being passed to the method.
If you look underneath the method name within the node, you'll see the italicized text saying "Target is My Actor"; this is telling you what class your target has to be. Methods of the same name that exist in multiple classes distinguish themselves with this marking. Say you have a Pawn class and a Vehicle class, both with the method "GetHitPoints", you can visually distinguish between which node you have in your graph by the "Target is..." text.
answered Oct 17 '16 at 06:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here