[Blueprint] Get ( first ) Actor With Interface

I try to create a function to automatically get the first Actor with a specific Interface in the scene but I don’t know how to set the parameter type to “Interface” class.

The “Interface” type seems to exists but it does not show up in the context menu.
( Create with drag & drop from “Get All Actors With Interface” → Promote to variable… )

How I set the parameter type of my function to this “Interface” class type ?

1 Like

Just drag here, and it will make the correct type

( drag into a blank area, not onto the existing pin )

1 Like

Ohh! Haha! Nice, thank you!
Neat trick.

1 Like

Also useful is right clicking on a pin and choosing ‘promote to variable’ :wink:

1 Like

Yes, indeed. That is how I created the “New Local Var 1” of class type Interface. Without this I wouldn’t even know that this Interface type can be used inside Blueprints. :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.