Open atithilive opened 6 years ago
Are you rendering your entity to a surface? Check the client.js
file. This app root should be targeting a location:
import { Location } from "react-360-web";
// ...
r360.renderToLocation(
r360.createRoot("YourRootComponent"),
new Location([0, 0, 0]) // or your target location
);
By default, the CLI only generates a r360.renderToSurface
which does not support Entities.
TL;DR:
Entities can only render to locations. If that registered app (i.e. a React tree created w/ AppRegistry.registerComponent) requires entities, make sure it is not a surface. Otherwise, set the registered app to render to a surface.
ohh so how would i go from one 360 mono equirectangular to another 360 mono equirectangular like multiroot vr
this is my code i am getting error type is invalid -- expected a string