Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.4.2p4
Issue ID
851113
Regression
No
[iOS] UnityEngine.iOS.Device.SetNoBackupFlag can't be called from background threads
Reproduction steps:
1. Open the attached project.
2. Build and run it for iOS.
3. Click the "Set Flag" button.
4. Check the console:
UnityException: SetNoBackupFlag can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
Reproduced with: 5.3.7p1, 5.6.0b1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- A "Could not generate preview image" error is shown in the Console window when viewing a ".androidlib" asset
- Call stack hyperlinks become unclickable when scrolled down in the Console window
- Package files do not get checked out in Perforce when the project includes a provider callback
- VFX throw errors upon importing it
- "NullReferenceException" error is thrown when swapping between built-in and URP depending on assets loaded out of asset bundles
Add comment