From 6d5787d8da9ad1685864668dd4c3d6aa73a563db Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 5 Nov 2021 12:14:59 +0800 Subject: TextMeshGenerator --- Runtime/GUI/Font.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Runtime/GUI/Font.h') diff --git a/Runtime/GUI/Font.h b/Runtime/GUI/Font.h index cd546af..565fafc 100644 --- a/Runtime/GUI/Font.h +++ b/Runtime/GUI/Font.h @@ -31,10 +31,13 @@ namespace character union Hash { unsigned int hashCode; +#pragma pack(1) struct { Unicode codepoint; unsigned short size;//×ÖÌå´óС }; +#pragma pack() + bool operator==(const Hash &other) const { return codepoint == other.codepoint && size == other.size; -- cgit v1.1-26-g67d0