In this documentation Introduction to C++ Programming in UE4 | Unreal Engine Documentation
TMap part example, there is such a function, I am wondering, will this NewPiece will be garbage collected? Should we add UPROPERTY to protect it or not?
void AddNewPiece(int32 PlayerId, EPieceType Type, FIntPoint Position)
{
FPiece NewPiece(PlayerId, Type, Position);
Data.Add(Position, NewPiece);
}