Failed import for HotBarEntry /Game/Gameplay/Character/CompanionCharacter.Default__CompanionCharacter_C:HotBar_0
As far as I can tell, everything seems to function perfectly fine, despite the error message. (Then again, this could be the prelude to yet another DOESN’T F***ING WORK situation. The past few days have been filled with them.)
I want to silence the error, of course.
Relevant code:
UPROPERTY(EditAnywhere, BlueprintReadWrite, EditFixedSize, Instanced, NoClear, Category = "Actions")
TArray<class UHotBarEntry*> HotBarEntries;
AMyCharacter::AMyCharacter()
{
...
for (int i = 0; i < 10; i++)
{
FString str = FString::Printf(TEXT("HotBar_%d"), i);
UHotBarEntry* temp = CreateDefaultSubobject<UHotBarEntry>(FName(*str));
HotBarEntries.Add(temp);
}
}