Does OnMouseEnter,OnMouseExit works on VR ?

Im tryng to create a tag that appears when you raycast it with the vr controller, without pressing any button, but is not working, someone know why or how to do it ??

Thank you very much

No, you have to use input from the controllers themselves. There are many ways to do it currently, and it all depends on what version of Unity and which type of input system, and which VR plugin you are using.

You could use this with the new Input system to get the pointing direction of a controller (the transformation to world coords may not be necessary):

using UnityEngine.XR;
UnityEngine.XR.InputDevice handRDevice = InputDevices.GetDeviceAtXRNode(XRNode.RightHand);
handRDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.devicePosition, out Vector3 posR);
Vector3 vPosition = transform.TransformPoint(posR); //to world coords
handRDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.deviceRotation, out Quaternion rotR);
Vector3 vGazeDirection = rotR * Vector3.forward;
vGazeDirection = transform.TransformDirection(vGazeDirection);

Then you can do a raycast into your world, and find out what object is hit. You can specify a layer mask or check for all objects.

RaycastHit oHitInfo;
if (Physics.Raycast(vPosition, vGazeDirection, out oHitInfo, 100.0f, LayerMask.GetMask("MapPlane")))
{
    //use oHitInfo.point
}