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"

Lock cursor to HUD center crosshair

Hi!

I'm a complete noob with no experience, so please forgive me.

I'm creating a first person 3d point and click, where I would like the cursor locked to the center of the screen and controlling the camera view. I have a first person template open with the center HUD crosshair (I've deleted the gun and player mesh though, and replaced the crosshair material with another cursor material).

I had assumed that the mouse cursor was set to the center crosshair already, but I've been encountering a problem as Begin/end curser over events and click events are not reliably firing while the crosshair is over the object.

Is there a way to permanently lock the cursor to the center of the viewport (ie correspond to the HUD crosshair), and rotate the view around it? (Apart from UI menus etc)

I've been googling like crazy, but I haven't found an answer...

Product Version: UE 4.10
Tags:
more ▼

asked Mar 19 '16 at 02:17 AM in Blueprint Scripting

avatar image

robin_mcdonagh
1 1 1 2

avatar image numsi550 Mar 23 '16 at 11:09 AM

I have the same problem, and if someone can help please do

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

1 answer: sort voted first

Try This in HUD First person Blueprint: alt text

hud-mouse.png (334.9 kB)
more ▼

answered Feb 28 '18 at 11:27 PM

avatar image

Carlus10000
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