- Home /
System.IO Error
Hi !
I was working in unity and everything worked well. But suddenly I got this exception :
System.IO.Directory does not contain a definition for Delete.
I tried to comment it, but then several exceptions of the same type appeared.
I reinstalled the .Net Framework and Unity. But nothing has changed.
Thanks a lot for your help.
Answer by Arnaud.g83 · Jun 05, 2013 at 01:37 PM
I found the solution, I used bundles in my project, and when i built an assetbundle, the project settings changed from PC Standalone to Web Player, that why unity didn't found Directory.IO, because Web Player can't access to directory Input/Output.
I hope this will help.
Thank you! This just happened to me doing the exact same thing with AssetBundles, huge wtf moment :P
Thanks. Here's the documentation on adding targetPlatform parameter to the BuildAssetBundles function: http://docs.unity3d.com/ScriptReference/BuildPipeline.BuildAssetBundles.html
Answer by leezaricci · Jun 20, 2016 at 11:55 AM
Folks, this will happen when you update to Daydream too. This solves the issue, thanks for posting the answer! (just need to install and load the Android module again)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
A node in a childnode? 1 Answer
Distribute terrain in zones 3 Answers
Why does the C# scripting libraries not conform to .NET naming convensions? 2 Answers
Serializing strings to XML C# 1 Answer