SnapObjLoader icon indicating copy to clipboard operation
SnapObjLoader copied to clipboard

question about call method AsyncLoadOBJFile

Open alexArayaM opened this issue 3 years ago • 0 comments

Hi. First of all thanks for the project. I am triying to test your loader because i want an obj loader that not freeze the UI. I have a simple question: How must be called the AsyncLoadOBJFile method in order to wait until it ends, and to get a reference to the gameobject ?

for example the next line loads the model, but it dont wait until the process ends and i cant get the gameobject returned.

var model2 = SnapObj.SnapLoader.AsyncLoadOBJFile(pathToFile, new Vector3(0, 0, 0),false);

Any help will be appreciated.

alexArayaM avatar Mar 02 '22 19:03 alexArayaM