Hello,
I have an object of type UObject and I want to cast it to the type TMap. Here is the code:
UObject * Object = BlackboardComp->GetValueAsObject("S_AttackPositions");
TMap<FString, FVector> * AttackPositions = Cast<TMap<FString, FVector> >(Object);
Does someone know how to do the cast correctly? Because this way it doesn’t work. It gives me the following error:
engine\source\runtime\coreuobject\public\uobject\UObjectBaseUtility.h(330): error C2039: 'StaticClass': is not a member of 'TMap<FString,FVector,FDefaultSetAllocator,TDefaultMapKeyFuncs<KeyType,ValueType,false>>'
Thanks!