How to do right click OnMouseDown (Unity Tutorial)

  Рет қаралды 3,816

ItsJustOneGuy

ItsJustOneGuy

2 жыл бұрын

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
/ itjustoneguy
Twitter
/ itsjustoneguy
Email
Itjustoneguy@gmail.com
Facebook
/ itjustoneguy-103618309...
KZfaq
/ itsjustoneguy
-----------------------------------------Games I Made----------------------------------
Some early games I made. Not my best work though lol
Evolve Die Repeat
itsjustoneguy.itch.io/evolved...
Mistborn Fan Made Game
itsjustoneguy.itch.io/unoffic...

Пікірлер: 9
@frankerzed973
@frankerzed973 Жыл бұрын
Life saver, thank you!
@ItsJustOneGuy
@ItsJustOneGuy Жыл бұрын
Your welcome
@StuffedGamer
@StuffedGamer Жыл бұрын
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!
@ItsJustOneGuy
@ItsJustOneGuy Жыл бұрын
True but I design the script to be as simple as possible. It was made for beginners. I wanted it to be as easy as possible to understand. Thank for the view.
@StuffedGamer
@StuffedGamer Жыл бұрын
@@ItsJustOneGuy not sure if you misread my reply, or I misread your reply on my reply , but just to be clear, your solution solved the problem i was having... my thanks are sincere! it helped me...
@mrtroy
@mrtroy 2 жыл бұрын
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.
@ItsJustOneGuy
@ItsJustOneGuy 2 жыл бұрын
Older versions of unity required a rigidbody for any collision detection.
@no.7992
@no.7992 Жыл бұрын
Thnks man
@ItsJustOneGuy
@ItsJustOneGuy Жыл бұрын
Your welcome
Right Click on Unity UI Tutorial the easy way (includes middle click!)
4:43
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 113 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 21 МЛН
4 Ways to Find Your Mouse Click in World Space
22:30
Board To Bits Games
Рет қаралды 60 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2 МЛН
How to get Mouse Position in 3D and 2D! (Unity Tutorial)
10:20
Code Monkey
Рет қаралды 136 М.
Unity tip: How to make a 3D Game Object clickable/touchable - for Beginners
4:48
XSGames 🌀 Frank Eno
Рет қаралды 12 М.
Unity Tutorial: Open Panel on Button Click
3:39
Jayanam
Рет қаралды 170 М.
My Favorite way to Click on GameObjects
4:51
Andrew
Рет қаралды 40 М.
Переходишь с Unity на Godot? Посмотри это видео!
25:19
Тот Самый Келин
Рет қаралды 106 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 113 МЛН