Increase area of a hit test?

How can I increase the area of a hit test? I am currently hit testing a gui texture and looking to see if it contains my mouse position. How can I increase the boundaries in script without changing the gui textures size? Is this even possible?

Syclamoth has explained how to do it.

It is completely normal in video games that you have a “real” object and another “shadow” object (perhaps bigger, a different shape, or whatever) which is used for a different purpose - such as collisions or hit testing.

(This is so common I wish the paradigm was built in to game engines!)

In the example at hand exactly as Syclamoth explains, your texture-thing should have an additional invisible friend which is for hit testing.

Just for the record another common thing is that when you do a hit test like that, as a general principle, you might actually do say 3 or 4 of them – i.e., each one a little apart from the other. i.e., instead of a single hit test, do say four hit tests a little around the point in question. In this particular situation do what Sycla says, but I’m just mentioning a general technique.