Unity3D How to : Detect Mouse Click on an Object

preview_player
Показать описание
This is how to check if there's a mouse click on n object attached with collider(or collider2D) and then do anything you want :)

If you think this tutorial is useful,
don't forget to like - share - subscribe.

And here is my game for Android
Рекомендации по теме
Комментарии
Автор

Don’t you just love it when you find something short, sweet, and to the point

plasma
Автор

Amazing tutorial, straight to the point, easy to understand, and no complications !!

param_jnana
Автор

I was overcomplicating and overthinking in my head...this is so simple its genius!!!!

Supernova
Автор

I literally find this video helpful every time

aynsjc
Автор

OMG thank you so much i was looking around for ages and found so much complicated code your a life saver thanks

joyousgaming
Автор

Was trying to make a Grappling gun, but raycasts weren't working!Big Pogs my guy!

Profilemango_
Автор

God bless you. I have eaten the internet to find this.

JavadRezaii
Автор

It is so easy Thanks!!!!, This is very useful, you have a new like:)

fernandosillero
Автор

wow thank you so much it was so hard for me to figur it out and then you tell me how symple it is!

imtrying
Автор

It doesn't work anymore for some reason.

borisraguza
Автор

Awesome! Super simple. Thank you for the video

gingertimelord
Автор

Wait you only need to name the void method that thing and automatically the program says that means clicking the mouse button

hugimi
Автор

Thank you, you saved me a lot of time!! <3

sauerkrautyo
Автор

Interesting to see those spheres bouncing infinitely. how did you do it?

buddyRJ
Автор

That will just destroy all the objects whenever you click, no matter where you click. That's not useful. I came here looking for a way to detect whether an object was under the cursor when clicked, and if so, do something.

TheBcoolGuy
Автор

Thank
This is very useful, I have a question
how to display notif by pointing the mouse without clicking ?
sorry if my english is a mess

ibrahimram
welcome to shbcf.ru