New answers tagged

1 vote

How do I check if a GameObject is touching another GameObject in Unity?

ONLY FOR 2D: If you want to detect the mouse clicking on an object, you could use OnMouseDown and OnMouseUp. ...
CheckerT's user avatar
3 votes
Accepted

How do I check if a GameObject is touching another GameObject in Unity?

In order for an object to be detectable by the collision detection system of the engine, it needs a collider component. There are both 2d and 3d colliders that come in different shapes. So you need to ...
Philipp's user avatar
  • 119k
3 votes

I need multiple custom game objects to stick to a parent object

Say you have two GameObjects p and c. You can make c a child of ...
Kevin's user avatar
  • 5,734

Top 50 recent answers are included