Check if gameobject is inside a guitexture

Hello,

I am creating a kind of parking game, but is there a way to check if the car (gameobject) is inside the parking place (guitexture)?

Regards,
Flux

Im not particularly sure that there is a way for them to collide, or why your using a GUI texture for a parking place, but Unity - Scripting API: Camera.ScreenToWorldPoint and Unity - Scripting API: Camera.WorldToScreenPoint should help you with that…

You can use the Hittest to test if a certain vector is inside the gui texture
see link