x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Mouse Input Only Works When Pressed

I made a 3D object that I want to move when the mouse is moved. The problem is that the object only moves when a mouse button is held. If I move the mouse when nothing is pressed, the object doesn't move. I want the object to move from any input. Please help me fix this problem, thanks! This is my blueprint: alt text

Product Version: UE 4.18
Tags:
bluhifsao.png (89.6 kB)
more ▼

asked Dec 09 '17 at 04:12 PM in Blueprint Scripting

avatar image

Rymazon
51 7 8 12

avatar image Everynone Dec 09 '17 at 04:25 PM

Is this in the controller? Do you have any widgets?

avatar image Rymazon Dec 09 '17 at 04:57 PM

This is in the player character. I wanted it to move with the mouse but also when the player does. No, I do not have any widgets, I plan on converting the sphere into one later on.

avatar image Everynone Dec 09 '17 at 05:28 PM

Does anything else in you project uses these inputs? The input might be consumed there. If that's the case, select this node in the other blueprint and uncheck the ConsumeInput tickbox.

avatar image Rymazon Dec 09 '17 at 05:35 PM

I tried removing consume input but it didn't work. I even tried making a new axis event to make sure it isn't consumed anywhere but it still doesn't work.

avatar image Rymazon Dec 09 '17 at 06:00 PM

It also may be worth noting that when i am in the view port it says click for mouse control.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It may be better to locally measure the delta in the mouse position using the getmouseposition function in the player controller

more ▼

answered Jun 22 '19 at 02:54 PM

avatar image

yomaster567
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question