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"

How can I get my Mouse Position In Blueprint?

Hey! How would I go about getting the Mouse Position using Blueprint. The Mouse X and Mouse Y don't seem to be what I'm looking for as they only give me delta x and y when I have the LMB held down.

Product Version: Not Selected
Tags:
more ▼

asked Mar 21 '14 at 04:39 AM in Blueprint Scripting

avatar image

CBrew
25 9 9 12

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

3 answers: sort voted first

Because input is tied to a player controller you need to get the player controller node and then call get mouse position from there. I don't have the editor up in felt of me so I can't double check the exact name however if you use the search it should come up fairly easily.

more ▼

answered Mar 21 '14 at 07:59 AM

avatar image

Marc Audy STAFF
2.2k 42 35 95

avatar image Rama Mar 21 '14 at 08:23 AM

Thanks for clarifying this Marc!

Great to hear from you as always!

Rama

avatar image CBrew Mar 21 '14 at 09:06 PM

Thank you so much!

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

BP Library Plugin

I wrote a Blueprint Library plugin containing a set of nodes, one of which is the Get Mouse Position node :)

I cannot compile my plugin in UE4 yet though as I am still waiting to receive my build.

Once I get up and running I can send you the plugin details so you can Get Mouse Position!

Edit - Marc Audy is Right

You can use GetPlayerController and then Get Mouse Position

here is a picture!

alt text Rama

getmousepos.jpg (127.1 kB)
more ▼

answered Mar 21 '14 at 05:04 AM

avatar image

Rama
10.6k 446 346 1088

avatar image CBrew Mar 21 '14 at 09:06 PM

Thanks a lot!

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

Good,thanks

more ▼

answered Mar 18 '16 at 05:07 PM

avatar image

张志东
1 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