Here’s a video with my issue - watch those yellow/blue numbered canvas circles wobble around trying to catch up with the AR painting.
https://drive.google.com/file/d/1QjaG5w0F_wzo8EsA17T_XF_AtcRrRcKR/view?usp=sharing
I’m reading my 3d objects positioning and coverting them like this - where pso is an AR object and the debugCanvas is the UI canvas with the UI stuff.
float sx = debugCanvas.GetComponent().rect.width * cam.WorldToViewportPoint(pso.transform.position).x;
float sy = debugCanvas.GetComponent().rect.height * cam.WorldToViewportPoint(pso.transform.position).y;
i then set my ui canvas objects like this - this canvas object is anchored bottom left so it matches the viewport points which track from bottom left, across and up.
myRt.anchoredPosition = new Vector2(sx,sy);
now this works ok - everything is in the correct position, BUT it has some lag, so if I wave the camera around, the ui objects take a second to catch up with the AR object.
Not sure if this is something fixable or not, but any pointers would be appreciated