Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2018.4.25f1
2019.4
2020.1
2020.2
Issue ID
1268423
Regression
No
[Anima2D] Prefab saving never ends after saving a prefab with SpriteMeshInstance component
How to reproduce:
1. Open user attached project "Aria.zip"
2. Open 'Apparitor' prefab (in '03.Prefabs' > 'Heroes' folder)
3. Select Sprite_Head in Hierarchy (Expand 'Apparitor' then 'Sprite')
4. In 'Sprite Mesh Instance' component change 'Order in layer' value to 2
5. Press Enter on the keyboard
Expected result: Prefab is saved after a short time
Actual result: Prefab saving never ends
Reproducible with - 2018.4.25f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0b3
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Resolution Note (2018.4.X):
User needs to add:
if(needsReimport)
{
#if UNITY_2018_3_OR_NEWER
PrefabUtility.SavePrefabAsset(prefab); // <--- ADDED, needed in order to save the change from from the artefact file to the .prefab source file before reimporting
#endif
EditorApplication.delayCall += () => { AssetDatabase.ImportAsset(importedAssetPath); };
}
}
}
}
}