I am making an interactable computer. I am setting Mouse position values to variable with “OnMouseMove” Function. But when i click any button, “OnMouseMove” function doesnt work until i release it. So i cant hold and drag my windows in interactable PC. Any advice to solve it?
1 Like
Thanks four your interest, but my widget is 3D. It is on a monitor screen and not on player screen. So will it work for mine? As far as i see you just use viewport position, not position on widget.
Try to use Drag’n’Drop Operation.
It’ll work.
2 Likes
Thanks, it works. But i have another problem with this system. Drag drop operations add widgets to viewport. I have searched so much about drag operations on 3D widget but havent find anything. It should be on 3D widget but i couldnt do it. Here a video:
I’ve tried to resolve the issue myself and found the following solution:
- Create a separate blueprint actor to find the virtual mouse position:
- Add the following function to the actor:
- Organize your widget blueprint like this:
Thanks for your interest! It works perfect.