How to get XRFrame in Update?

I’m trying to port WebXR Hit Test example from here to Needle, I got pretty far but in update() I can’t grab the XRFrame like update(frame: XRFrame), how do I get it in update? Script attached for reference, just trying to do a simple AR Hit test and show something there

Original Post on Discord

by user 103054507105067008

onBeforeRender has the frame

Sorted it now!

by user 103054507105067008