# \[Blueprint\] Get ( first ) Actor With Interface

**URL:** <https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030>\
**Category:** Blueprint\
**Tags:** interface, interfaces, unreal-engine, question, Blueprint\
**Created:** [September 9, 2024, 10:53am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030 "2024-09-09T10:53:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeganApps](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/veganapps/32/1198354_2.png) [@VeganApps](https://forums.unrealengine.com/u/VeganApps)\
**Post date:** [September 9, 2024, 10:53am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/1 "2024-09-09T10:53:25Z")

</div>

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/1/e513908cda4ad2c322797c2e885eda13c7a89398.png)

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… )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/6/c660b743c433136a9feba79cb8adeacfb01e1848.png)

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2024, 10:55am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/2 "2024-09-09T10:55:33Z")

</div>

Just drag here, and it will make the correct type

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/b/24b3b7c9a4ff84a950892924625be224ed026f7c.jpeg)

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

---

<div class="post-metadata">

**Author:** ![VeganApps](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/veganapps/32/1198354_2.png) [@VeganApps](https://forums.unrealengine.com/u/VeganApps)\
**Post date:** [September 9, 2024, 10:57am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/3 "2024-09-09T10:57:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2024, 10:58am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/4 "2024-09-09T10:58:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VeganApps](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/veganapps/32/1198354_2.png) [@VeganApps](https://forums.unrealengine.com/u/VeganApps)\
**Post date:** [September 9, 2024, 11:04am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/5 "2024-09-09T11:04:29Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 9, 2024, 11:04am UTC](https://forums.unrealengine.com/t/blueprint-get-first-actor-with-interface/2013030/6 "2024-10-09T11:04:31Z")

</div>

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