I'm using the plane detection samples and trying to bend them to my will...
when I call PositionContentAtPlaneAnchor(result) immediately on getting HandleInteractiveHitTest(HitTestResult result) from the planeFinder object, the GroundPlanePrefab instantiates fine as expected.
But when I hold that result as a variable (HitTestResult resultStashed) and then use that to call my second HandleInteractiveHitTestOnButtonClick(HitTestResult result) method ( from the Update loop after a set time period ) it crashes the app on Android and iOS.
Why might this be happening - the held variable is exactly the same. What is happening in PositionContentAtPlaneAnchor that might cause this ?
It runs fine in the editor though. Just flatlines on the handset build.
any help much appreciated - the alternative is going back to ARFoundation, which is annoying as I prefer the Vuf.