From 0ec3753c09f5dd9857194e14e8b337b0d7dcc744 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Mon, 15 Apr 2024 18:50:03 +0100 Subject: [PATCH] feat: making NetworkIdentity.PrefabHash public It is useful to set PrefabHash before spawning the object. for example when loading it via addressables then setting the PrefabHash once it is loaded. --- Assets/Mirage/Runtime/NetworkIdentity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirage/Runtime/NetworkIdentity.cs b/Assets/Mirage/Runtime/NetworkIdentity.cs index b14ff07112..41e8dab154 100644 --- a/Assets/Mirage/Runtime/NetworkIdentity.cs +++ b/Assets/Mirage/Runtime/NetworkIdentity.cs @@ -372,7 +372,7 @@ public int PrefabHash #endif return _prefabHash; } - internal set + set { if (value == 0) {