Skip to content

Commit

Permalink
[修复]1. 修复Unity客户端map 协议报错导致的aot 裁剪报错
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Sep 6, 2024
1 parent c0e69ce commit 0831f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProtoExport/ProtoBuffUnityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
{
defaultValue = $" = new {operationField.Type}();";
}

sb.AppendLine($"\t\t[ProtoMap(DisableMap = true)]");
sb.AppendLine($"\t\tpublic {operationField.Type} {operationField.Name} {{ get; set; }}{defaultValue}");
}

Expand Down

0 comments on commit 0831f1d

Please sign in to comment.