Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2019.1.0a1
2019.1.8f1
2019.2.0a1
Issue ID
1170943
Regression
No
Calling AssetDatabase.CreateAsset() inside OnValidate() freezes Unity
Steps to reproduce:
1. Open original project "Bug Recreation.zip"
2. Create an empty GameObject by Right Click inside Hierarchy -> Create Empty
3. Attach the "Assets/BuggyScript.cs" to the empty game object
4. If you want the AssetDatabase.CreateAsset to be called from the script, tick the bool "Freeze Unity".
-observe the freeze-
Reproduced in: 2017.4.30f1, 2018.4.5f1, 2019.1.12f1, 2019.2.0b10
Not reproduced in: 2019.3.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warnings when warming up shaders with GraphicsStateCollection
- Color and Location fields disappear when removing gradient marker in the HDR gradient Editor (linear) window
- Create Node window appears on the top left corner of the Editor when opening window with space keyboard shortcut after selecting a Context
- HasCharacters() returns false when checking Emojis using surrogate pairs, despite characters being present in the Font Asset
- An error is thrown when building AssetBundles with DisableWriteTypeTree and StripUnityVersion flags
Add comment