Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FBXOBJLoader : MonoBehaviour {
- string src;
- // Use this for initialization
- void Start () {
- src = EditorUtility.OpenFilePanel("Select Model", "", "fbx");
- //Output the Game data path to the console
- Debug.Log("Path : " + src);
- StartCoroutine("CopySomething");
- }
- IEnumerator CopySomething()
- {
- print("Start");
- string path;
- path = Application.temporaryCachePath;
- FileUtil.CopyFileOrDirectory(src,path);
- yield return null;
- }
- }
- path = Application.temporaryCachePath;
- path = string.Concat(Application.temporaryCachePath, "/", Path.GetFileName(src));
Add Comment
Please, Sign In to add comment