Search Issue Tracker

Fixed in 2018.1.X

Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X



Found in


Issue ID




Game object transform.position is incorrect after Object.Instantiate after Awake() function call

Scene Management


How to reproduce:
1. Download attached project files and open "test" Scene
2. Enter Play mode. Notice now the world-space location in Awake is printing the prefab location as opposed to the location passed to instantiate:
Parent(Clone): World-space location: (-10.0, 20.0, 0.0)
Child: World-space location: (-10.0, 20.0, 0.0)

Not reproduced:
1. Open project with Unity 5.6.3p2 and hit "play". Notice that "World-space location" printed in SpawnLog.Awake now outputs location as expected according to SpawnPrefab-script:
Parent(Clone): World-space location: (50.0, 100.0, 0.0)
Child: World-space location: (50.0, 100.0, 0.0)

Actual result: Instantiate(Prefab, new Vector3(50, 100, 0), Quaternion.identity) applies world position incorect in Debug.Log(transform.postion) after Awake() function call

Reproduced with: 5.6.3p4, 2017.1.1p3, 2017.2.0f1, 2017.3.0b2
Not reproduced with: 5.6.3p2, 2017.1f1, 2017.2.0b8, 2017.3.0a5
Regression since: 5.6.3p3
Fixed in 2017.1.2p3, 2017.2.0p1, 2017.3.0b5

  1. karl_jones

    Jan 12, 2018

    The fix for this will be available in the following patches:

Comments (49)

  1. mitchelsamuel61

    Jul 13, 2022 08:56

  2. mitchelsamuel61

    Jul 13, 2022 08:45


  3. joniwalkerkiy

    Apr 15, 2021 08:05

  4. samehfr

    Sep 07, 2020 15:07

    Reproduced on Windows 10

    Unity 5.5.1f1 Personal

    Android Studio 2.3

    Android SDK Tools 25.2.5

  5. samehfr

    Aug 26, 2020 15:31

    thanks good job

  6. samehfr

    Aug 21, 2020 05:25

  7. samehfr

    Aug 21, 2020 05:22

  8. mgcg12

    May 30, 2019 01:22

    Sorry for reviving this, I just wanna admit this bug had me quitting a cool rpg project last year. Couldn't get a scene change to work correctly like entering and leaving a cave, the player would just spawn at a random weird position.

  9. atierno

    Sep 11, 2018 15:44

    I encountered the same issue on v2017.3.1f1

  10. Altera

    Mar 21, 2018 03:57

    not fixed Unity 2017.3.1p2

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.