I a trying to create a set of structs using TSet, however, when I compile I get the error:
The structure Fpiece
is used in a TSet
but does not have a GetValueTypeHash
defined
How do I implement a GetValueTypeHash
definition in my struct
?
USTRUCT(BlueprintType)
struct Fpiece
{
GENERATED_BODY()
// Use UPROPERTY() to decorate member variables as they allow for easier integration with network replication as well as potential garbage collection processing
UPROPERTY(BlueprintReadOnly, Category = Tutorial) int color;
UPROPERTY(BlueprintReadOnly, Category = Tutorial) int man;
UPROPERTY(BlueprintReadOnly, Category = Tutorial) int locationX;
UPROPERTY(BlueprintReadOnly, Category = Tutorial) int locationY;
UPROPERTY(BlueprintReadOnly, Category = Tutorial) int point;
};
and in the public class definitions:
UPROPERTY(BlueprintReadOnly, Category = Tutorial) TSet<Fpiece> pieces;