Exporting a Scene From Unity for Nu - bryanedds/Nu GitHub Wiki
Unity has a means of exporting scenes (or portions of scenes) as .FBX files that Nu can import. Here's the method for exporting them:
- Have Unity's
FBX Exporter
package installed. - Be in a PBR Unity Project.
- Put all desired objects in empty root game object.
- Export said root game object, unchecking
Export Unrendered
- - Delete all .fbx files except the one you exported.
- Copy over relevant Unity asset folder hierarchy to Nu Assets/{PackageName} folder.
- Create a
StaticModelHierarchyDispatcher
entity (orRigidModelHierarchyDispatcher
if you want physics responses) and set theStaticModel
property to the FBX asset.
If done properly, you'll end up with something like this -
Unfortunately, not everything will come in to Nu exactly as exported, particularly certain light and light probe properties, but this is a rough way to get scenes created in Unity into Nu.