Search Issue Tracker

Duplicate

Votes

0

Found in

2017.1.1f1

Issue ID

958739

Regression

Yes

[OSX] Instantiating GameObject from prefab with script that returns its position in OnEnable() method, returns incorrect data

Scripting

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2No workaround

To reproduce:
1. Open project
2. Play scene

Expected: 'I have Enabled and my position is: (2.0, 2.0, 2.0)' will be thrown to console
Actual: 'I have Enabled and my position is: (1.0, 1.0, 1.0)' is thrown

Note:
• After re-enabling 'Log Position On Enable' script on 'TestCube' gameObject while in play mode, position message is shown correctly
• Not reproducible on windows

Reproduced on: 5.6.3p4, 2017.1.2p1, 2017.2.0f1, 2017.3.0b4
Not reproducible: 5.6.0a1, 5.6.3p1

Regression introduced between 5.6.3p1- 5.6.3p4

All about bugs

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