Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.2

2018.3

2018.4

2019.2

2019.2.8f1

2019.3

2020.1

Issue ID

1203536

Regression

No

Destroying a Game Object inside "IPostprocessBuildWithReport.OnPostprocess" doesn't work until scene reload

Build Pipeline

-

Reproduction steps:
1. Open "1203536" project
2. Notice that there are no GameObjects in the Scene
3. Build a Standalone Player

Expected Result: A Cube is created and then immediately destroyed
Actual Result: A Cube is created and is not destroyed until a change of scenes is made

Reproduced with: 2020.1.0a16, 2019.3.0f3, 2019.2.16f1, 2018.4.14f1, 2018.3.0a1, 2018.2.21f1
Did not reproduce on(Scripting Errors): 2018.2.0a1, 2018.1.0a1, 2017.4.335f1

  1. Response avatar

    Resolution Note:

    Saving assets during a build callback is undefined behavior and not supported.

Comments (1)

  1. 57dae6731990503d26253f82f166d94e?d=mm

    Olulekan01

    Dec 24, 2019 09:43

    I cannot believe I'm reading a wonderful presentation like this. You have really done a great job gathering this great and interesting experience. Thanks for sharing. For further experience:

    https://www.happybirthdaysisters.com

    https://serc.carleton.edu/person/129726.html

    https://www.sbnation.com/users/Olufajo%20Olulekan%20Victor.

    http://flgclassifieds.cce.cornell.edu/author/goodboys/

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.