I’m trying to remove a key/value pair from a map.
The following code gives me an error about the InKey.
UPROPERTY(BlueprintReadWrite, Category ="System State Store")
TMap<TObjectPtr<AActor>,FRegistry> SSS_EntityRegistry;
UFUNCTION(BlueprintCallable)
void DeregisterEntityFromAllStateComponents()
{
SSS_EntityRegistry.Remove(TObjectPtr<AActor>);
}
Error:
I’ve tried to find an example but I can only find examples using Fstring or Int. It seems that involving an actor point is causing some sort of problem here.
Any help is appreciated, thanks