Reads an external CAD file and translates its contents into Unity objects at runtime.
![]() |
After opening the example scene in the Unity Editor, you see simple scene with camera, canvas, etc.
![]() |
"Main Camera" object has two attached components:
![]() |
The ModelLoader script reads a CAD file into a ModelData_Model object in memory.
Then it uses the Unity_ObjectFactory to convert this object to Unity's GameObject:
Before running the example follow the steps described here.
Once you start the example application, you will see a window with a single button "Load model". By clicking on it, you get access to the file system and can choose the model to load.
To work with the file system, we used the "Runtime File Browser" plugin.
This example uses the open source plugin "Runtime File Browser" available under the MIT license.