This is my first ever public PR using Github so go easy on me Deren! Spent a while investigating this today and realised that the Anchor Creator wasn't raycasting to feature points which was causing problems if there wasn't a plane in the area near the object.
-AnchorCreator.cs now raycasts to feature points and planes, in the case the user is holding the detected object or if it is nowhere near any planes
-Added some optional debug lines in the AnchoCreator.cs script for identifying when and when the script didn't raycast
-Added optional Debug Point Cloud Prefab, can be turned on in the AR Session gameobject in Detect scene
This is my first ever public PR using Github so go easy on me Deren! Spent a while investigating this today and realised that the Anchor Creator wasn't raycasting to feature points which was causing problems if there wasn't a plane in the area near the object.
This push didn't fix the android issue with the location of the Anchor labels but this push does! https://github.com/derenlei/Unity_Detection2AR/commit/59547cdafb1a7ab3c3985f5db11f0c08d27b963e
-AnchorCreator.cs now raycasts to feature points and planes, in the case the user is holding the detected object or if it is nowhere near any planes -Added some optional debug lines in the AnchoCreator.cs script for identifying when and when the script didn't raycast -Added optional Debug Point Cloud Prefab, can be turned on in the AR Session gameobject in Detect scene