Forum Discussion
olakb
8 months agoHonored Guest
Game crashing on restart
Hello. I'm developing a game for Quest 2 and 3 and have encountered issues with the game crashing on Quest 2. The weird thing is that only crashes on some of our quests, some of them work fine while ...
RiverExplorer
7 months agoStart Partner
Sounds like it might be a timing issue.
One thing I misunderstood when I started writing with Unity is the Awake() and Start() methods.
Start() *CAN* start before Awake() finishes. Even within the same component. When Awake() is async and has an await (even indirectly). I called a method in Awake() that called another method that did an await. Boom, mucked up timing problem.
The docs say that Awake() is called before Start(). It does NOT say that Start() is only called after Awake() finishes. And it does NOT say that Start() is called only when all Awake() calls have finished.
Now add the complexity of one components Start() depending on another components Awake() to have set up things.
Then add OnEnable() ... same issues.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 1 month ago
- 8 months ago