intelligide / assimp-unity

Assimp for C# / Unity
https://intelligide.github.io/assimp-unity/
MIT License
36 stars 7 forks source link

Documentation help #12

Closed jajanpreet closed 1 year ago

jajanpreet commented 1 year ago

Hi I am trying to make a unity game object out of the imported asset "Scene" from library. I have no leads on how to get a Unity game object from the imported file. Can you please point me to the right documentation

intelligide commented 1 year ago

There is nothing to import a scene into a UNity object and I don't plan to add one. It's a low level library that just allows you to read meshes from a file format, you have to transpose this data by your own means.

Unity has made a small documentation to create procedural meshes: https://docs.unity3d.com/Manual/GeneratingMeshGeometryProcedurally.html You can also use the test project as an example, there is a script I use to test that the library works well: https://github.com/intelligide/assimp-unity/blob/master/TestProjects/Assimp_URP_Tests/Assets/Scripts/LoadAssimpScene.cs

jajanpreet commented 1 year ago

Is there a documented way to convert from Assimp class instance to Unity objects, like materials and animations?

intelligide commented 1 year ago

I have not written any such tutorials. Maybe there are some on the Internet.