Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2018.4.X, 2019.3.X

Votes

4

Found in

2018.4.15f1

2019.2

Issue ID

1215975

Regression

Yes

AssetDatabase.SaveAssets() throws an Exception "The specified path is not of a legal form (empty)" while in Play mode

Scripting

-

How to reproduce:
1. Open the attached SaveAssetsCrash.zip
2. Enter the Play mode
3. Open "SaveAssetsCrash" window under Test/SaveAssetsCrash
4. From the Projects window/Assets drag "TestPrefab" to the object field int the SaveAssetsCrash window
5. Press "Call AssetDatabase.SaveAssets()" button

Actual: ArgumentException: The specified path is not of a legal form (empty). (see the full exception in the Edit section)

Reproducible with: 2018.4.15f1, 2018.4.17f1, 2019.2.19f1

Not reproducible with: 2017.4.36f1, 2018.4.14f1

Regressed in: 2018.4.15f1

Notes: on 2019.3 and 2020.1 versions the exception is not thrown, but the SaveAssetsCrash window is reset (see the Reset.mov attached in the Edit section)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.