Attempting to pass an array of interfaces into a UFUNCTION will fail at compile stating "cannot convert argument 1 from 'TArray<ElementType,FDefaultAllocator>' to 'const TArray<TScriptInterface<IInterface>,FDefaultAllocator> &'"
UFUNCTION(BlueprintCallable, Category = Debug)
void MyFunction(const TArray<TScriptInterface<IInterface>>& ArrayFunc);
void MyActor::MyFunction(const TArray<TScriptInterface<IInterface>>& ArrayFunc)
{
}
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.9.2 |
Target Fix | 5.0 |
Created | Oct 9, 2015 |
---|---|
Resolved | Jul 26, 2021 |
Updated | Jul 27, 2021 |
2468 - UnrealEverything |