diff --git a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Spawner.cs b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Spawner.cs index bfb2626aab..4c92c3417b 100644 --- a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Spawner.cs +++ b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/Spawner.cs @@ -55,8 +55,7 @@ public static GameObject Get(Vector3 position, Quaternion rotation) GameObject next = pool.Get(); // set position/rotation and set active - next.transform.position = position; - next.transform.rotation = rotation; + next.transform.SetPositionAndRotation(position, rotation); next.SetActive(true); return next; } diff --git a/Assets/Mirror/Examples/Room/Scripts/Spawner.cs b/Assets/Mirror/Examples/Room/Scripts/Spawner.cs index 22f8ec8689..45af708a7d 100644 --- a/Assets/Mirror/Examples/Room/Scripts/Spawner.cs +++ b/Assets/Mirror/Examples/Room/Scripts/Spawner.cs @@ -54,8 +54,7 @@ public static GameObject Get(Vector3 position, Quaternion rotation) GameObject next = pool.Get(); // set position/rotation and set active - next.transform.position = position; - next.transform.rotation = rotation; + next.transform.SetPositionAndRotation(position, rotation); next.SetActive(true); return next; }