Dear Unity Community,
I am currently developing an AR Application where the User can scan in Images from a Book and geats read lines corresponding to the images, to Identify which image the User is aiming at I am using the ARRaycastManager Raycast to prevent overlap to nearby images. This is working fine on several Android Devices but refuses to work on IOS. The other AR functionality works also fine on IOS (Images are being recognized) but I just don’t get any raycast hits whatsoever. Am I missing something obvious?
if (arRaycastManager.Raycast(screenCenter, rcHits, TrackableType.Image))
{
foreach (ARRaycastHit hit in rcHits)
{
raycastIdText.text = hit.trackableId.ToString();
foreach (ARTrackedImage image in currentTrackedImageList)
{
if (image.trackableId == hit.trackableId)
{
trackableNameText.text = image.referenceImage.name;
}
}
}
}
else
{
raycastIdText.text = "NONE";
}