Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2019.4
2019.4.30f1
2020.3
2021.2
2022.1
Issue ID
1377795
Regression
No
OnParticleTrigger() is called before Awake()
How to reproduce:
1. Open the attached project "ParticlesBug.zip"
2. Open "Test Particles" Scene
3. Enter Play mode
4. Pause Play mode
5. Open Console window
Expected result: Awake() function is called first
Actual result: OnParticleTrigger() function is called before Awake() function as seen in the Console window
Reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.2.2f1, 2022.1.0a10
Not reproducible with: 2022.1.0a11, 2022.1.0a12
Notes:
- If you build the project and run the project you will see an error - "Assets\Scripts\TestParticles.cs(6,32): warning CS0109: The member
'TestParticles.particleSystem' does not hide an accessible member. The new keyword is not required."
- If you remove the new keyword from line 6 of 'TestParticles.cs' script, then you will see the warning: "Assets\Scripts\TestParticles.cs(6,28): warning CS0108: 'TestParticles.particleSystem' hides inherited member 'Component.particleSystem'. Use the new keyword if hiding was intended."
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a11