Hi,
I would like to upload the gltf model from assets on android with react native & babylonjs-native:
engine.enableOfflineSupport = true;
// var baseUrl = "https://models.babylonjs.com/pirateFort/";
var baseUrl = "file://assets/models/";
SceneLoader.ImportMeshAsync(null, baseUrl, "pirateFort.glb", scene).then(result => {
result.meshes[0].position.x = 0.01;
});
Error meaasage is:
WARN Possible Unhandled Promise Rejection (id: 11):
TypeError: undefined is not an object (evaluating 'window.location.href')
Thanks