Skip to main content

How to Import BIM models to Unity

By 23rd June 2020February 28th, 2021Support

Read on to learn how to import BIM models from 3D Repo into Unity. 3D Repo supports all popular file formats including IFC, RVT, DGN, BCF, FBX, and OBJ. We also support these file formats via our Navisworks Plugin: DWG, DXF, DWFX, RVT, SKP, 3DS, DGN, IFC, NWC/NWD, PRT, SLDASM, and SLDPRT.

3D Repo highly-optimises the BIM models for real-time rendering by default and without losing any geometrical accuracy.

Before starting, make sure you download our SampleUnityProjectfile from the 3D Repo website. The SampleUnityProject contains everything you need to import your BIM models into Unity via 3D Repo’s open API.

Visit 3D Repo’s API page for more info.

1. Load the project into the Unity Editor

Launch Unity Hub and click on the ADD button. Select the SampleUnityProject folder in the 3drepo4unity-master folder from GitHub. Select Unity Version 2020 or above and launch the project.

2. Add the ‘ExampleScript’ Component to the Main Camera

To do this, simply click on the Add Component button to show available files and search for Example Script. Click on the component to add it to the project.

3. Enter your 3D Repo credentials, API Key, Teamspace name and Model ID

Using 3D Repo’s open APIs, you will make a request to pull a 3D BIM model from 3D Repo into Unity.

4. Click play to load the model

Please note that the default camera position may not initially show an ideal view of the model. If this happens, simply adjust the camera positioning or click on the Pause button to navigate over to your model.

That’s it!

Find a full list of plugins and other useful tools on our downloads page https://3drepo.com/downloads/

You can also find a full list of help and support materials on our support page https://help.3drepo.com

Leave a Reply