Web player: The absolute url to the player data file folder (without the actual data file name)
Ok that is what the reference says, however, this is not the case per say, you see, I have virtual paths setup and sub sites setup, when I use the Application.dataPath it returns to me the parent URL, not the subsite URL or sub folder… now I though this was odd, so I said fine, let me use System.IO and pull the Path.GetFullPath(“.”) well that returned to me on my Windows box “C:\Program Files\Unity\Web….…ocx”… I was like hmmm.
The player data file is located
http://www.gamedevonline.com/unity/arena.html
Now, on a MAC that System.IO returns just plain //Data/, what I need is the physical path on the web server not of the root folder but of the folder that contains the Arena.unity3d file, now I know what it is because i put it there, but I have not found a command in Unity that returns to me the true path to the file. On my hosted servers I create a folder and give this folder special permissions for the program and code it as such so that the program has rights to read and write to that folder as if it was a user on the machine.
Since Unity doesn’t have a way to pull this path (and it shifts depending on which server I am using, thus hard coding the path is not an option), how can I use the internal dataPath since it is not coded as the docs say it is coded? Is there another undocumented option in Unity that I am not aware of?
I can do this in ASPX easily enough, I can probably jury rig up some php to also do it, but I don’t want to have to pass that info back and forth to Unity, I want Unity to simply obtain this also and I though the Application.dataPath would be the solution, but it is not unfortunately. hmmm