Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

System.IO.File does not contain a definition for 'Move'

Discussion in 'Scripting' started by Edccccch, Jul 8, 2015.

  1. Edccccch

    Edccccch

    Joined:
    Jul 8, 2015
    Posts:
    4
    Could anyone help me with this?
    So I am using the File.Move but the error pops up when I try to upload it to web player. However, before I did so, everything works just fine. There was no error when it plays before I built it to web player. What is going on? Is there anyway that I can fix it because the ultimate goal is to upload it to the web verision so I am considering about using another method to make the same result or anything anybody could suggest?

    Thanks so much for help!
     
  2. MagicZelda

    MagicZelda

    Joined:
    May 1, 2013
    Posts:
    90
    have you checked that you have the correct access on web server. Why not try the Copy and then Delete, if this works then it is probably something more complex.
     
  3. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
  4. Edccccch

    Edccccch

    Joined:
    Jul 8, 2015
    Posts:
    4
    It is said that system.IO and system.DATA cannot be used in the web player. Is that true? If so, the whole data structure needs to be changed?
     
  5. Edccccch

    Edccccch

    Joined:
    Jul 8, 2015
    Posts:
    4
  6. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    Rewrite the Webplayer code (ie. No)

    For webplayers, you should not need disk access. If you want to save a game, use PlayerPrefs
    If you need disk access, for non-game utilities, go standalone
     
    MagicZelda likes this.