Search Unity

5.3.2f1 IO changes?

Discussion in 'Editor & General Support' started by deab, Jan 28, 2016.

  1. deab

    deab

    Joined:
    Aug 11, 2013
    Posts:
    93
    Just updated to 5.3.2, and these two functions are no longer available:

    System.IO.File.CreateText()
    System.IO.DirectoryInfo.GetFiles()

    Couldn't see anything in the release notes to explain this. Something I'm doing wrong? Code examples:

    File.CreateText(_filename);

    --------

    DirectoryInfo dir = new DirectoryInfo(Map.Filepath);
    FileInfo[] files = dir.GetFiles("*.map", SearchOption.TopDirectoryOnly);
     
  2. Fijit

    Fijit

    Joined:
    Sep 1, 2011
    Posts:
    7
    Check that the target platform is correct, I've seen it change between updates without warning. If it's set to web player instead of desktop, as was my case, it will cause the issue you're seeing.
     
    deab likes this.
  3. deab

    deab

    Joined:
    Aug 11, 2013
    Posts:
    93
    Thats it! Build target was changed to webplayer by the update. Switched back and everything is fine - thank you!
     
  4. joostbos

    joostbos

    Joined:
    Feb 4, 2015
    Posts:
    64
    Pfff, Unity is really freaking me out sometimes! Now that I got this one solved I need to figure out why the standard 3rd person controller does not respond to horizontal and vertical axis input anymore :-(

    Thanks for the answer.