How to Load OBJ Model at Runtime in Unity

preview_player
Показать описание
This video shows how to load .obj model using a native file browser at runtime. It also shows how to fit the loaded model to the screen and fix missing faces.

How to Open and Save File Using Native Standalone File Browser at Runtime in Unity:

Free Runtime OBJ Importer package from the Unity Asset Store by Dummiesman:

Zoom Fit All Camera in Unity Script

How to Fix invisible Faces in Unity:

SaveFile Code on GitHub:

OpenFile Code on GitHub:
Рекомендации по теме
Комментарии
Автор

@DA-LAB Great videos thank you so much. Did you find how to import and apply the texture in real time ?

H.Cherni
Автор

does it support URP? becaus i have add the standard shader and still come with pink material

Besttechnology
Автор

Hi !
Is it possible to do the same thing (Load OBJ Model) but after building with the ".exe"
Cause it doesn't work for me, none obj is appearing

maxencedornier
Автор

hey, is there any way by which we can import the textures too

damanahujaa
Автор

I'm using this code to load in my models but it takes ~9s for them to load in which isn't optimal. Is something wrong with my models?

MikaelEriksson-jb
Автор

Hi, thank you so much for sharing this tutorial! I was able to replicate your code and upload a 3D object into a VR project of mine. However, the 3D object is invisible. All I can see is it's shadow. I believe it is because there is no material or shader. Do you know how I can add a material and shader to the imported object? Thanks!

kadinkaiser
Автор

Hi. This is really helpful a lot, but when I tried to save the file on the "save file" button, it seems like not working.

bennysensei
Автор

Hello, is there any possibility that it can be imported from a phone?

uva
Автор

When the model imports, is there a way for a mesh filter and collider to be set once imported?

I ask because typically when I import an obj the mesh filter and collider need to be added and configured in the inspector. Thank you for the excellent video!

andrewdecker
Автор

Please help, I want to rotate the model using the mouse which you have opened using the button. Where will I write the script to track the mouse event and rotate the model using mouse after opening.

alex_xavi
Автор

anyone knows if this package works on metaquest 3?

dstrucdet
Автор

Greate video!
But what about the textures from MTL file?
I can't show textures, mtl ㅜ^ㅜ

이경익-wm