Skip to content

Commit 253718c

Browse files
jared-marsauGitHub Enterprise
authored andcommitted
Fix an issue in which the GKMatchmakerViewController was unable to be displayed due to the default contstructor for Apple.GameKit.Multiplayer.GKMatchRequest being stripped. (Unity's code stripping functionality will occasionally miss implicit instantiations of constructors). (apple#41)
This is due to the default constructor for Apple.GameKit.Multiplayer.GKMatchRequest being stripped. (Unity's code stripping functionality will occasionally miss implicit instantiations of constructors and consider the code uncalled).
1 parent 4092b43 commit 253718c

File tree

1 file changed

+2
-0
lines changed
  • plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/Multiplayer

1 file changed

+2
-0
lines changed

plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/Multiplayer/GKMatchRequest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using AOT;
44
using Apple.Core;
55
using Apple.Core.Runtime;
6+
using UnityEngine.Scripting;
67

78
namespace Apple.GameKit.Multiplayer
89
{
@@ -65,6 +66,7 @@ public enum GKMatchType : ulong
6566

6667
private static readonly InteropWeakMap<GKMatchRequest> _instanceMap = new InteropWeakMap<GKMatchRequest>();
6768

69+
[Preserve]
6870
internal GKMatchRequest(IntPtr pointer) : base(pointer)
6971
{
7072
_instanceMap.Add(this);

0 commit comments

Comments
 (0)