简体   繁体   中英

How to make a 3D button in unity

I am trying to make an elevator simulator for a project for computer science, I am up to making the buttons for the elevator. I do not know how to get the hand object to interact with the button object. I am very new to unity and c#. I have looked at other questions on here, but I don't know enough to understand how to do it. If someone could please explain how I can make the two objects interact in basic terms would be greatly appreciated. The hand object follows the cursor around the screen and moves with the player, it travels further away from the camera with the scroll wheel on the mouse, this is how it should be colliding with the button, but it just hits it and does nothing. It is not a VR project.

I am trying to make an elevator simulator for a project for computer science, I am up to making the buttons for the elevator. I do not know how to get the hand object to interact with the button object. I am very new to unity and c#. I have looked at other questions on here, but I don't know enough to understand how to do it. If someone could please explain how I can make the two objects interact in basic terms would be greatly appreciated. The hand object follows the cursor around the screen and moves with the player, it travels further away from the camera with the scroll wheel on the mouse, this is how it should be colliding with the button, but it just hits it and does nothing. It is not a VR project.

I am trying to make an elevator simulator for a project for computer science, I am up to making the buttons for the elevator. I do not know how to get the hand object to interact with the button object. I am very new to unity and c#. I have looked at other questions on here, but I don't know enough to understand how to do it. If someone could please explain how I can make the two objects interact in basic terms would be greatly appreciated. The hand object follows the cursor around the screen and moves with the player, it travels further away from the camera with the scroll wheel on the mouse, this is how it should be colliding with the button, but it just hits it and does nothing. It is not a VR project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM