- Home /
Question by
punikol · Nov 22, 2021 at 06:43 PM ·
augmented-reality
ARRaycastManager not hitting Images on IOS,ARRaycastManager Raycast does not hit Tracked Images on IOS
Dear Unity community,
I am Currently working on an Application where ARTrackedImages have to be hit by a Raycast to prevent overlap. This works totally fine on Android but on IOS the raycast refuses to hit anything. Other AR Functionality works fine on IOS, the Images are even recognised but just not hit by the Raycast.
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";
}
Comment