Skip to content

Commit eb21383

Browse files
authored
fix: Fixed compile error using IL2CPP builds with new [Rpc] attribute (#2824)
1 parent 53b735c commit eb21383

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).
88

9+
## [1.8.1] - 2024-02-05
10+
11+
### Fixed
12+
13+
- Fixed a compile error when compiling for IL2CPP targets when using the new `[Rpc]` attribute. (#2824)
14+
915
## [1.8.0] - 2023-12-12
1016

1117
### Added

com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ private bool ImportReferences(ModuleDefinition moduleDefinition, string[] assemb
822822
break;
823823
}
824824
}
825-
m_UniversalRpcParams_TypeRef = moduleDefinition.ImportReference(rpcParamsTypeDef);
825+
m_UniversalRpcParams_TypeRef = moduleDefinition.ImportReference(universalRpcParamsTypeDef);
826826
foreach (var fieldDef in rpcParamsTypeDef.Fields)
827827
{
828828
switch (fieldDef.Name)

com.unity.netcode.gameobjects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.unity.netcode.gameobjects",
33
"displayName": "Netcode for GameObjects",
44
"description": "Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.",
5-
"version": "1.8.0",
5+
"version": "1.8.1",
66
"unity": "2021.3",
77
"dependencies": {
88
"com.unity.nuget.mono-cecil": "1.10.1",

0 commit comments

Comments
 (0)