Hey,
Input.mouseScrollDelta is the mouse wheel delta, not the mouse position delta.
While you could manually calculate the delta from Input.mousePosition, here is a easier way to do what I assume you want:
In the event node used here “Input Axis(Custom)”, you can define any custom axis to use which is set in “Project Settings/Input Manager”. By default Unity has a lot of them already created. “Mouse X” and “Mouse Y” are basically the values you are looking for (mouse position delta).
For your convenience here is the Input Axis inspector:
You can add any number of axis you want to get their value. The “Out” flow port is called when either of those axis is not zero.
Let me know if that works for you.
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
ClickAndDrag.png
InputAxisInspector.png
Login
Register
By registering on this website you agree to our Privacy Policy.