How to do right click OnMouseDown (Unity Tutorial)

preview_player
Показать описание
Do you like the onMouseDown function unity has but wish they had it for a right mouse click? Here's how to get it.

Anyway here are my social please like and sub and all the rest of that social media nonsense and thank you for watching the video. Every view helps.
—---------------------------------------Socials—---------------------------------------------
Instagram
Twitter
Email
Facebook
YouTube

–----------------------------------------Games I Made—---------------------------------
Some early games I made. Not my best work though lol

Evolve Die Repeat
Mistborn Fan Made Game
Рекомендации по теме
Комментарии
Автор

having the input.getmousedown in the Update triggered it for all gameobjects with the same script instead of the one i was actually clicking, this works flawlessly for 1 specific object, Thanks so much!

StuffedGamer
Автор

Hey! As a heads up, I think you only need the collider. Rigidbody isn't needed in my case. I'm in 2020.3.25 and it doesn't appear to be necessary.

mrtroy
join shbcf.ru