XR Masters app can visualize 3D content prepared in Unity with Universal Render Pipeline (URP). Current suggested version is Unity 2021.1.26f
You can use any version of unity which is greater then 2021.1.1f1
- Create new unity project
- Create root content object
- Populate your asset
- Export unitypackage from Unity
- Upload to XR Masters' Website
You can skip this step if you want to use existing Unity URP project
- Open Unity Hub
- Click New Project on top right of the screen
- Select correct Unity Version (2021.1.26f1)
- Select 3d Sample Scene URP
- Give name to your project and select location
- Click Create project button from bottom right.
Once unity opens created project
- Create empty scene
- Right click on the Hierarchy
- Select Create Empty
- Rename as obj
- Reset transform's variables to make is object is positioned correctly
- Drag created object from Hierarchy to Project window to create prefab
Root content object's name must be obj otherwise your content won't be recognized as valid!
Now you can add any kind of Unity object to your root obj prefab as child. You can import textures and fbx files to your project and use them to populate your asset. As an example we are going to add some primitive gameobjects to our asset.
- Locate your prefab within Project window
- Double click on it to open
- Right click on Hierarchy and select 3D Object/Cube
- Right click on Hierarchy and select 3D Object/Sphere
- Adjust Cube's and Sphere's parameters for your liking
- Hit Ctrl+S on your keyboard to make sure your changes are saved
Now you are created your content, it is ready to export from unity to XR Masters' system
- Locate your prefab within Project window
- Right click on your prefab which you want to export
- Click Export Package...
- Click Export... button on the bottom right of the popup window
- Select location within your device to export
Unity as default will try to include all required asset used within your prefab, but sometimes it can include other asset which aren't required for your content. You can click the deselect checkbox next to those assets to exclude them to optimize your asset's performance
Upload to XR Masters' Website
You will need to have a XR Masters account for this step. You can create one with upload.xr-masters.com or with our mobile app for Android or iOS
Keep in mind unitypackage size should be smaller than 100mb otherwise system won't accept it
- Open a web browser
- Go to upload.xr-masters.com
- Click Create Asset button on the top right of the page
- Enter account information to login
- Give name to your content
- Give tags to your asset to search it within database easly
- Click Select File button next to Unity Package line and select the .unitypackage file you generated in previous step
- Upload preview image file for asset to locate it more easly
- Click Create button on the bottom of the page to submit your content
Preview image files can be any pixel size but aspect ratio should 1 which means your image file need to have same pixel size for width and height. eg. 512x512