Skip to content

Commit 4d83463

Browse files
committed
Add preserve to improve Unity stability.
1 parent c7f033c commit 4d83463

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/MsgPack/Serialization/MessagePackSerializer.Factories.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ public static MessagePackSerializer<T> Get<T>( SerializationContext context, obj
204204
return context.GetSerializer<T>( providerParameter );
205205
}
206206

207+
#if UNITY
208+
[Preserve( AllMembers = true )]
209+
#endif
207210
#if UNITY && DEBUG
208211
public
209212
#else

0 commit comments

Comments
 (0)