I made a simple UStruct:
USTRUCT(BlueprintType)
struct FResolution
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Resolution")
int32 Width;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Resolution")
int32 Height;
FORCEINLINE bool operator==(const FResolution& Other) const
{
return (Width == Other.Width) && (Height == Other.Height);
}
};
But i can’t seem to be able to use the “==” operator in BP, did i miss something ?
I just started working with c++, so everything is new to me.