Skip to content

Commit 5e705a7

Browse files
committed
Return true from RaycastToPlane only if pose and plane are valid.
1 parent d6067e3 commit 5e705a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/ARFoundationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static bool RaycastToPlane(Vector2 position, ARRaycastManager raycastMana
5353

5454
}
5555

56-
return true;
56+
return !pose.Equals(Pose.identity) && plane != null;
5757

5858
}
5959

0 commit comments

Comments
 (0)