# Array of Interfaces cannot be returned

**URL:** <https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297>\
**Category:** UI\
**Tags:** interface, not-working, unreal-engine, bug-report, editor, Blueprint, question\
**Created:** [August 29, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297 "2015-08-29T13:52:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [August 29, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297/1 "2015-08-29T13:52:20Z")

</div>

I have an interface that requires an array of its own interfaces as output.

I have that array of interface as a local variable in the implementation method.

UE4 won’t let me connect them, and gives a bogus CAST node.

The implementation (forced and automated in UE4.9) is giving me a return that says “array of interface” but shows blue, as array of objects, instead of yellow as “array of interfaces”.

workaround: none, forced to output array of actors and cast later.

![56288-bug1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/2/5228eb0c472ec914528b402d229746b1a5f52d8e.png)

![56289-bug2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/1/af1b2563bd390ca5f3c6b3fae50288936b168f6c.png)

![56290-bug3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/b/6cb6b97d23a48567eb4351bf78a4df24a82ebcbc.png)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [August 31, 2015, 3:12pm UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297/2 "2015-08-31T15:12:32Z")

</div>

Hi ,

The official 4.9 release just came out. Could you verify that this is still an issue for you in that build?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [September 1, 2015, 12:22am UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297/3 "2015-09-01T00:22:09Z")

</div>

Hi TJ

just tested with 4.9 exact same problem.

An interface with a function returning a list of itself will not be implementable.

It’s silly and needs to be fixed.

![56549-b1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/9/36995be6a341777add9f5b0e38ba545c357f1320.png)

![56550-b2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/e/c3e6ea8b4a858900a6a692a975922f9d73d5d04c.png)

![56561-b3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/4/794fbce58853785416b20c7f595f93e557cbf689.png)

![56562-b4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/4/234b937741b8cf6d93fe3ec997a5f7f4ce95d26b.png)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [September 1, 2015, 4:17pm UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297/4 "2015-09-01T16:17:23Z")

</div>

Thanks for the additional info. I was able to reproduce this and I’ve logged it as JIRA UE-20606 in our tracking software. Our developers will be investigating it further and we will post back here with updates as we have them.

As for a workaround, I noticed in 4.9 that if everything is saved and the editor is restarted, the pin will then show the correct type.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [September 1, 2015, 11:46pm UTC](https://forums.unrealengine.com/t/array-of-interfaces-cannot-be-returned/330297/5 "2015-09-01T23:46:34Z")

</div>

Ok thanks for the workaround, I hadn’t figured out that one.
