Hi,
I am trying load to local GLTF in my react native project. It’s working in Android debug build, but GLTF model is not loading in “Release Build”.
I am converting my local model file path into uri using resolveAssetSource.
Anyone, know why model is not loading in release build.
Is there any way to load GLTF model in android release build?
I shared my code below
import resolveAssetSource from ‘react-native/Libraries/Image/resolveAssetSource’;
const sceneGLBUri = resolveAssetSource(“…/…/Assets/3DModels/basic_sci-fi_crate/scene1.gltf”).uri;
const { meshes, animationGroups } = await SceneLoader.ImportMeshAsync(
“”,
sceneGLBUri,
“”,
scene
);
I’m getting unable load model error