Is there a way to turn a guitexture into a raycast for a camera game?

I have a guitexture centered on the screen, I wanted to know if there’s a way to use it like a how i would use a raycast on a collider. I’m thinking that it should only return true when I have the guitexture over the collider in the viewport. Am I close to an answer here?

Theres a screen position to raycast function in Unity (look is up under Physics in the Unity Script Reference). Is that what you want?