Tyring to use steamvr laser pointer to interact with ui

I am trying to use the steam vr laser pointer to interact with UI in my vr space, however I am unsure what scripts I need to attach to my objects, I switched over from using a Meta Quest 2 to a Vive Focus. All of my UI worked with my oculus raycast (not sure if I have to change all of those buttons as I am using Tracked Device Graphic Raycaster)