Skip to content

Commit 420768a

Browse files
test fix
Possible fix for what seems to be a timing related issue where not destroying the source prefab NetworkObject/GameObject it could cause an exception to occur.
1 parent 215b124 commit 420768a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ protected override IEnumerator OnTearDown()
945945
{
946946
m_EnableVerboseDebug = false;
947947
Object.DestroyImmediate(m_PlayerPrefab);
948+
Object.DestroyImmediate(m_ChildObjectToBeParented);
948949
yield return base.OnTearDown();
949950
}
950951
}

0 commit comments

Comments
 (0)