Quantcast
Channel: Questions in topic: "exception"
Viewing all articles
Browse latest Browse all 470

InvalidOperationException: Operation is not valid due to the current state of the object

$
0
0
Hello everyone, I encounter this issue, and have found threads talking about it as a bug in the editor, but it's not my case. I am building a custom GUI Editor for some scriptable objects, and I use the string absPath = EditorUtility.SaveFilePanel("Select Name and Path for Level", Application.dataPath + "/_Project/Levels/Data/Levels/", "New Level", "asset"); And after I select a folder, enter a name, and press Save, the error pops into Unity. I am guessing this has to do with the current unity Window index not being reset to anything so it goes to -1 and pops the error, but I have litteraly no clue how to fix this... Any help would be appreciated. Thanks a bunch

Viewing all articles
Browse latest Browse all 470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>