Search Unity

Script - move file

Discussion in 'Scripting' started by liso2014, Sep 20, 2019.

  1. liso2014

    liso2014

    Joined:
    Sep 20, 2019
    Posts:
    5
    Hi, I'm developing an app for Android and I can't move files from one folder to another. Does anyone know how to do? Thanks in advance
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    To move files in Unity, you click on the file and drag it to the destination. If you mean something else, please be more specific.
     
  3. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Nanior likes this.
  4. liso2014

    liso2014

    Joined:
    Sep 20, 2019
    Posts:
    5
    Yes Starmanta, it was what I was looking for, but I have problems identifying the absolute path of the destination of my device.. As an initial path I use Application.dataPath + filename. As destination of the file I don't know how to write it
     
  5. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Where is it supposed to go?
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I might suggest Debug.Log("The path is " + Application.dataPath);
     
  8. liso2014

    liso2014

    Joined:
    Sep 20, 2019
    Posts:
    5
    Yes I need the initial part of the path that I will try to see like this, I hadn't thought of using that command in that way, thanks. I'll try and let you know