Guest User

Untitled

a guest
Nov 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. public class FBXOBJLoader : MonoBehaviour {
  2.  
  3. string src;
  4. // Use this for initialization
  5. void Start () {
  6. src = EditorUtility.OpenFilePanel("Select Model", "", "fbx");
  7. //Output the Game data path to the console
  8. Debug.Log("Path : " + src);
  9. StartCoroutine("CopySomething");
  10. }
  11.  
  12. IEnumerator CopySomething()
  13. {
  14. print("Start");
  15. string path;
  16. path = Application.temporaryCachePath;
  17. FileUtil.CopyFileOrDirectory(src,path);
  18. yield return null;
  19. }
  20. }
  21.  
  22. path = Application.temporaryCachePath;
  23.  
  24. path = string.Concat(Application.temporaryCachePath, "/", Path.GetFileName(src));
Add Comment
Please, Sign In to add comment