Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about call method AsyncLoadOBJFile #3

Open
alexArayaM opened this issue Mar 2, 2022 · 0 comments
Open

question about call method AsyncLoadOBJFile #3

alexArayaM opened this issue Mar 2, 2022 · 0 comments

Comments

@alexArayaM
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant