my app.
https://www.dropbox.com/s/a6evzf2hw0jzjy1/Backup%20RunTime%20OBJcomplete.rar?dl=0
is a simple runtime obj importer that could also edit it at runtime the problem is it takes. a period of time to load and has a momentary unresponsiveness when loading. the reason of this momentary unresponsive is because of the import script. it gathers data, set it, change it, loops it again and many more in just a short amount of time. the script is from
https://www.assetstore.unity3d.com/en/#!/content/49547
this is how I emplemented corountine:
public IEnumerator ForLoadOBJ()
{
LoadOBJFile(PlayerPrefs.GetString("PathString"));
//the use of PlayerPrefs is just temporary until I could make this unresponsiveness and slow loading go away
yield return null;
}
and the code I use for when I click the import button:
StartCoroutine(obj.ForLoadOBJ());
using the codes above doesn't help.. its just feels like I'm not using Coroutine. unresponsive is still there.
any help regarding to using corountine or multithreading would very much apreciated. any questions ask would be answered as well.
please and thank u.
↧