Some help with my application development!

Hi,

I want to make an app for ipad where the user can browse through some f.eks images on a ftp server or something simular.
And select one of them into the scene.
But i dont know how to go from here…

Should i use an ftp server and make unity list all the images in a folder or should i make an assetbundle or dropbox?

Dont know if unity can list all the images from a ftp-server or a dropbox account folder? is it possible ?
And how?

Thanks for your time!
Much Appreciated!

what are f.eks?

Hi, Right now i am using some 3D-models in .obj format that are located on my ftp-server. The script is hardcoded so its not a dynamic way to do it.
I want the user to brows through the 3D-models and select one of them and use in the scene. And the application will be on an Ipad.

Thanks

There are two ways you can do it. You dont require FTP server. You can just upload your images or .obj file on http server and whenever user want to show that image or .obj file with the help of www class.

You make it sound so easy :slight_smile: Do you have any examples for that?

Thanks

I currently have this code:

using UnityEngine;
using System.Collections;
using System.IO;

public class FindFileNames : MonoBehaviour {

    private const string something = "/obj/";
	
	public string url = "http://www.mywebsite.com/unity/obj";
	public WWW www;

	// Use this for initialization
	IEnumerator Start () {
		
		WWW www = new WWW(url);
		yield return www;
		
        DirectoryInfo info = new DirectoryInfo(www + something);
		Debug.Log(url);
        FileInfo[] fileInfos = info.GetFiles();

        foreach (FileInfo fileInfo in fileInfos)
        {
            string fileName = fileInfo.Name;
            if(fileName.EndsWith(".obj")) 
                Debug.Log(fileInfo.Name);
        }
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}

But i get this error message: DirectoryNotFoundException: Directory ‘/Users/neliuz/Downloads/BrowserGame/UnityEngine.WWW/obj’ not found.

That’s a nice try, but I don’t think the DirectoryInfo method is going to work like that, just pointing it to a remote webserver; it needs a local path, or at least an authenticated one. Put a script on your webserver (maybe like this?) that does something similar to sniff the files in the folder, and return a delimited list of the files you can parse into a useable array with the string Split method. Good luck, and welcome to the Forums!

Thanks!

Is this the easy way to do it? Or do i have some other options of doing this?

Thanks