Selecting Objects in the 3D World with the Mouse Using Raycast (Unity Tutorial)

  Рет қаралды 37,592

Ketra Games

Ketra Games

Күн бұрын

Пікірлер: 43
@ahmedelgamal5785
@ahmedelgamal5785 3 жыл бұрын
A unity tutorial that is easy to understand! Great work!
@KetraGames
@KetraGames 3 жыл бұрын
Thanks, glad you liked it! 😊
@mumr1ken
@mumr1ken 2 жыл бұрын
Thank you!! This tutorial really helped me out. You are so good at explaining stuff in a methodic and easy-to-follow way! :D
@KetraGames
@KetraGames 2 жыл бұрын
Glad it was helpful, thank you 😊
@catalinaahmed8560
@catalinaahmed8560 2 жыл бұрын
You have no idea how much this helped me, this is really usefull!
@KetraGames
@KetraGames 2 жыл бұрын
Great to hear 😊
@snailythefan2223
@snailythefan2223 3 жыл бұрын
super helpful for my project right now, thank you for this video!
@KetraGames
@KetraGames 3 жыл бұрын
Really glad to hear this 😊
@immortalsun
@immortalsun 2 ай бұрын
Absolutely incredible! Thank you for this tutorial! Nice and simple.
@KetraGames
@KetraGames Ай бұрын
Great to hear, thanks 😊
@Allbitable
@Allbitable 2 жыл бұрын
Even if subject is simple, i really appreciate this video for wasting absolutely no time and being as clear and concise as possible. Thank you very much.
@KetraGames
@KetraGames 2 жыл бұрын
Thanks for this comment 😊
@ganzolinocvc96
@ganzolinocvc96 Жыл бұрын
hi, i have a car with different part (door, hood, etc,etc), when the car have rigidbody i cant change the color when the mouse is over one of the part. when i remove the rigidbody it works normally. how i can resolve whithout remove the rigidbody?
@gamedevSkuf
@gamedevSkuf 2 жыл бұрын
Thank you for great tutorial!
@KetraGames
@KetraGames 2 жыл бұрын
Glad you found it useful 😊
@dbweb.creative
@dbweb.creative Жыл бұрын
How to highlight object? I mean to dynamically make it brighter, similar how in WoW use object appears brighter on hover
@DannyBoy443
@DannyBoy443 Жыл бұрын
This is amazing. But can you share demo you have (the boxes and the ball) zipped up so we can download it and follow along? That'd be great thanks!
@BestHakase
@BestHakase Жыл бұрын
You can use standard box and sphere objects)
@fredqq2003
@fredqq2003 Жыл бұрын
What if We add a UI indicator?
@ДосталиЕвский
@ДосталиЕвский Жыл бұрын
Thank you for such a helpful tutorial! Can you please clarify how to select an object using a gamepad controller? I'm currently in the process of setting up my input systems for the gamepad, but I'm unsure of how to accomplish this task. Thank you for your assistance!
@BestHakase
@BestHakase Жыл бұрын
Make a list of selectable objects, make variable that mark the selected one. Next the right button will add 1 to this variable, and the left button will subtract 1.
@janpaweii3115
@janpaweii3115 2 жыл бұрын
wow you explain everythinng so great and you go step by step showing the outcome. It is a great way for me to learn and i appricieate your effort to educate us! Sending lots of love! Subscribed and i will check other videos too! Byw im working on a isometric 3d game.
@KetraGames
@KetraGames 2 жыл бұрын
Great, thanks for your support 😊
@meganle7954
@meganle7954 Жыл бұрын
when i remove the mouse, it turns to white color instead of removing the color red, how can i fix this?
@lora6938
@lora6938 3 жыл бұрын
Hello! Tell me Please, how to make sure that only the outline of the box is highlighted in red, and not the whole box?
@KetraGames
@KetraGames 3 жыл бұрын
Hi, you would need to create a material for this. Try searching for ShaderGraph tutorials using the Fresnel Effect Node and that should hopefully get you started
@lora6938
@lora6938 3 жыл бұрын
@@KetraGames thanks for the answer I don't think shader graph is for me, I need this kzbin.info/www/bejne/o5TOnWVqqaqqj80
@alexandrebandola6312
@alexandrebandola6312 2 жыл бұрын
Thank you so much for the wonderful tutorial! When the mouse exits the prefab i lose the original color and it just goes to white. How could i fix this and bring it back to the original color?
@KetraGames
@KetraGames 2 жыл бұрын
Hi, you could store the original colour to a field in the Start method. Then when the mouse exits you could set it to this colour rather than white. Hope that helps 😊
@selinathorn3625
@selinathorn3625 Жыл бұрын
@@KetraGames how can I store the colors? my object has many different colors
@kaloshabuthapa3284
@kaloshabuthapa3284 2 жыл бұрын
Instead of the box, if I want the player to click on game objects like cube etc that I created, what properties like rigid body, box collider etc should I add to then game object? How can I make player score when clicking the game object? Could you please help?
@KetraGames
@KetraGames 2 жыл бұрын
Hi, a raycast will detect collisions with any object that has a collider 😊
@luisalarcongames8756
@luisalarcongames8756 2 жыл бұрын
Really cool
@KetraGames
@KetraGames 2 жыл бұрын
Thanks 😊
@shortazn97
@shortazn97 3 жыл бұрын
Hi, I am using the included Unity car asset and am trying to highlight the individual parts with colors. I did exactly as you did, but the mouse hover is not being detected. I tried a debug log, and am not getting any result when hovering my mouse over the parts. Please help!
@KetraGames
@KetraGames 3 жыл бұрын
Hi, does each individual part have a collider assigned?
@shortazn97
@shortazn97 3 жыл бұрын
@@KetraGames yeah figured it out last night 🤦‍♀️im an idiot lmao! thanks for a GREAT tutorial
@santiagoweihmuller7594
@santiagoweihmuller7594 3 жыл бұрын
Thanks!
@Sanchez9241
@Sanchez9241 Жыл бұрын
Dont work with new input system
@vladrudenko8601
@vladrudenko8601 3 жыл бұрын
using unity 2019, seems like not working
@KetraGames
@KetraGames 3 жыл бұрын
Hi, what's not working. It should be fine in 2019
@vladrudenko8601
@vladrudenko8601 3 жыл бұрын
@@KetraGames anyway raycast is usseles in my situation, thank you, good tutorial
@zii_2413
@zii_2413 3 жыл бұрын
@@vladrudenko8601 did you optimize your input system?
Raycasts in Unity (made easy)
16:30
Game Dev Beginner
Рет қаралды 103 М.
My Favorite way to Click on GameObjects
4:51
VR with Andrew
Рет қаралды 50 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 10 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 19 МЛН
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 22 МЛН
I 3D Printed a $1,175 Chair
16:31
Morley Kert
Рет қаралды 4,9 МЛН
Selecting Objects with Raycast - Unity Tutorial
9:31
Infallible Code
Рет қаралды 231 М.
How Video Game Economies are Designed
16:12
Game Maker's Toolkit
Рет қаралды 1,1 МЛН
I Made a Graphics Engine
6:42
Zyger
Рет қаралды 262 М.
Unity Tutorial : Drag Gameobject with Mouse
3:45
Jayanam
Рет қаралды 143 М.
Detecting Objects with Raycasts in Unity3D
11:04
World of Zero
Рет қаралды 60 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 10 МЛН