Hey I need some help, I know it’s a stupid question but i need to make an object move with the mouse when I right click.
If you could get me a code, that would be great
ps… thanks in advance
Hey I need some help, I know it’s a stupid question but i need to make an object move with the mouse when I right click.
If you could get me a code, that would be great
ps… thanks in advance
In your project folder you should find the DragRigidbody script to get you started. However this is only one method of “moving” something and it may or may not be what you’re looking for. More description of what you require would help us better answer the question.
You’ll find the script here :
Standard Assets > Scripts > General Scripts > DragRigidbody