Adding Your Own Content
Once you've seen how the Product Viewer works using the built-in content, you'll want to bring in your own models and get them working in the experience.
- Import your content into your Project. You can use any method to get your content into the Project: import as FBX, import using Datasmith, add from the Marketplace or from another feature or content pack, etc.
- Add the models you want to explore into the default ProductViewer/Levels/ProductViewer level.
- Make sure all of the Static Mesh Actors that you want to be able to move around at runtime have their Mobility option set to Movable in the Details panel:
Click for full image.
- In the World Outliner panel, find and select the ProductViewer_Collector Actor.
- In the Details panel, find the Product Viewer section.
The ProductViewer_Collector Actor contains two key settings, shown above:
- The Interactive Root is a list of objects in the scene that the player can interact with.
- The Teleport Surface Root is a list of objects in the scene that the player can teleport to in VR mode.
You can add each of your own models that you want the player to be able to interact with or teleport to into these lists.
If you've used Datasmith to import your content, the Datasmith Scene Actor in your Level will already be the parent of all your imported Static Mesh Actors. Add a new entry in the Interactive Root list, set it to refer to the Datasmith Scene Actor, and all of its children will automatically become interactive.
Alternatively, you can parent the Static Mesh Actors that you want to become interactive or teleportable to another Actor that is already in the list you want. For example, by default, the ProductViewer_Collector has only one entry in its Interactive Root list: an Actor named
Interactive_Root. If you find that Actor in the World Outliner, you'll see that it is the parent of many child Actors that represent the gears, the ball, and the flashlight:
Every child of an Actor in the Interactive Root list is automatically marked as interactive as well. So, all you need to do is re-parent your own models under the existing
Interactive_Root Actor. You can do this by dragging and dropping them in the World Outliner.