Search Issue Tracker
Won't Fix
Votes
10
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.2f1
2019.2.0a1
2019.3.0a1
Issue ID
1170321
Regression
No
Methods with a PostProcessSceneAttribute get called after Awake when entering Play mode in the Editor
How to reproduce:
1. Open the attached "PostProcessSceneExecutionOrder.zip" project
2. Open "SampleScene"
3. Enter Play mode and inspect the console
Expected results: PostProcessScene is called before Awake
Actual results: PostProcessScene is called after Awake
Reproducible with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11
Note: The order is technically different in a player since PostProcessScene gets called while building and Awake gets called when launching the scene
-
RobinBirdStudios
Apr 02, 2021 22:38
I don't see how the "Resolution Note" can help with this issue?
There seems to be still in 2020.3 a problem that the PostProcessSceneAttribute behaves differently when hitting the play button in Editor and building a build. This is very annoying since some things work in the build but break in the Editor and vice versa.
Please reconsider this resolution. It seems wrong to me.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note:
Lettings this run long enough will actually cause a stack overflow. The reason is the recursive implementation of GenerateChunk in World.cs. Implementing this without recursion would be a better soltution