IPointerEnterHandler works in the Editor but not in the build (Unity 2022.3)

Good morning

Having seen numerous issues about IPointerEnterHandler in the forums, I am posting this as none of them seem to be helping.

We are designing a VR App on the Quest 2/3 using Unity 2022.3.25f1 and an OVRCameraRig.

It uses an Event System, VRInput and a Physics Raycaster. The object I am hovering over is a Quad (Mesh) and uses a Box Collider.

In Unity 2019, everything worked correctly, both in the Editor and in the build (apk): as soon as I floated the laser pointer over the object, it expanded.

public class Blob: MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerDownHandler, IPointerUpHandler , IPointerClickHandler
{


public void OnPointerEnter(PointerEventData eventData)
{
transform.DOScale(…);
}
}

However, in Unity 2022.3, it only works correctly in the Editor. In the Build the laser pointer is able to detect the object (the laser shortens so the collider must be working), but OnPointerEnter is not called and so the object does not expand.

A workaround is to pause the game by clicking on the Oculus button, then selecting “Resume”. It works after that.

Is there a way I can get the desired behavior without having to right click and resume first?

Thank you

Luke