Closed Sarofc closed 1 year ago
KeyRecord is an unmanaged struct, so it can usually be serialized, but in IL2CPP, you must explicitly specify MemoryPackable to give a hint of the type.
[MemoryPackable]
public partial struct KeyRecord
{
public EAction action;
public EActionStatus status;
}
MemoryPack 1.9.10 Unity 2021.3 lts
Code
Log
Expected
Use SourceGenerator to gen AOT code, instead of hand write the following code.