Skip to content

Commit 9691b49

Browse files
authored
fix: networkprefab upgrade with formerlyserializedas attribute (#619)
* fix: Add formerly serialized as attribute * revert: unecessary transport attribute
1 parent 1817f62 commit 9691b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

com.unity.multiplayer.mlapi/Runtime/Configuration/NetworkConfig.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using MLAPI.Hashing;
77
using MLAPI.Serialization;
88
using MLAPI.Serialization.Pooled;
9+
using UnityEngine.Serialization;
910

1011
namespace MLAPI.Configuration
1112
{
@@ -52,6 +53,7 @@ public class NetworkConfig
5253
/// A list of spawnable prefabs
5354
/// </summary>
5455
[Tooltip("The prefabs that can be spawned across the network")]
56+
[FormerlySerializedAs("NetworkedPrefabs")]
5557
public List<NetworkPrefab> NetworkPrefabs = new List<NetworkPrefab>();
5658

5759
/// <summary>

0 commit comments

Comments
 (0)