- Home /
Question by
Yogesh_MV · Jan 12, 2018 at 01:55 PM ·
iosxcodeaugmented-realityscene-switching
Terminating with uncaught exception of type Il2CppExceptionWrapper when using Arkit
This is my scenario : I have imported Unity Arkit plugin from asset store. Now I am trying to load a new empty scene from FaceBlendshapeSloth scene. And getting the error below :
libc++abi.dylib: terminating with uncaught exception of type Il2CppExceptionWrapper
I have tried both these methods
SceneManager.LoadScene(1);
//AsyncOperation ao;
//ao=SceneManager.LoadSceneAsync(1);
I have added all required scenes in build setting.
Comment
Answer by deepesh · Oct 22, 2019 at 02:24 AM
you have anchorPrefab in your FaceAnchormanager, add null checks like below in FaceAdded, FaceUpdated, FaceRemoved :
void FaceAdded (ARFaceAnchor anchorData) { if (anchorPrefab == null) return;
......code
}
do like this for other function mentioned above, also unregister these delegates registered in OnDestroy.
See if that helps!