Skip to content

Commit 0831f1d

Browse files
committed
[修复]1. 修复Unity客户端map 协议报错导致的aot 裁剪报错
1 parent c0e69ce commit 0831f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProtoExport/ProtoBuffUnityHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
8080
{
8181
defaultValue = $" = new {operationField.Type}();";
8282
}
83-
83+
sb.AppendLine($"\t\t[ProtoMap(DisableMap = true)]");
8484
sb.AppendLine($"\t\tpublic {operationField.Type} {operationField.Name} {{ get; set; }}{defaultValue}");
8585
}
8686

0 commit comments

Comments
 (0)