GUITexture

Hi;
I’m trying to detect collision between two GUITextures in a scene. How can I do this. I tried different things like using collision box, using Testhit() function, but they could not detect each other. Is there anyway to detect collision?

Thanks in advanced fr your help :slight_smile:

I don’t know of a way you can directly handle GUITexture collisions. You could shadow the GUITextures with colliders positioned and sized using a mathematical plane and raycasting in world space. If you want this solition I can post a few more ideas.

But detecting collisions of GUITextures is just testing for rectangle intersections, or testing if circles intersect depending on your needs. If you want to use GUITextures, writing your own detection code is likely the way to go.