3d object as button?

Hi I thought I could just drag a button component onto a 3D object and it would work like a button (automatically add the required collider) and trigger events?

Shouldn’t the button component work with 3D objects?

Does it have a RectTransform attached?

Tried replacing the transform with a RectTransform and it still doesn’t work!

Place 3d psychical raycasyter onto camera. Try ui cam if exist then main cam
As i think you dont need rect transform raycaster should be enough

1 Like

:smile: That’s the trick, thank you.

Checked no need for a rectTransform, but you do need a collider.

Maybe Unity could automagically add the needed components once a button is dropped on a 3D object!?