Answer the question
In order to leave comments, you need to log in
How to implement interaction with objects in Unity?
Good day, I recently started making a game on Unity and for a start I decided to make a 2D game like Visual Navella, but with elements of interaction with objects. I don’t know how to implement interaction with objects, it only comes to mind to make a 3D scene, but I don’t think that this is the most rational approach. Please tell me how to interact with objects.
Answer the question
In order to leave comments, you need to log in
Move the cursor, put a trigger on the cursor, and also scatter the triggers on the desired areas on the screen. Put a script handler on the cursor, saying that if you click on the LMB, call in the object with the issued trigger at the intersection, the corresponding method in which the interaction will be written. All this can be done both in 3d and 2D.
Your question sounds like "how do you do heart surgery if you're an auto mechanic". If you are completely new and don’t understand anything about it, then there are a lot of YouTube lessons for people with 0. Or ask a specific question, If you have already done something in the project.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question