May 2018
Intermediate to advanced
470 pages
13h 54m
English
The default code in client.js attaches the mount point declared in index.js to the Default Surface in the React 360 app, where the Surface is a cylindrical layer for placing 2D UI. In order to use the 3D meter-based coordinate system for a layout in 3D space, we need to mount to a Location instead of a Surface. So update client.js to replace the renderToSurface with a renderToLocation.
/MERNVR/client.js:
r360.renderToLocation( r360.createRoot('MERNVR', { /* initial props */ }), r360.getDefaultLocation() )
Read now
Unlock full access