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"

Reset camera to start position

I am trying to reset the player pawn camera position to its start position but It doesn't seem to work. The attached image shows the blueprint I have set up so far. When I press the home button the player pawn camera should return to its begin play position. How would I get the camera to return to its correct starting position? alt text

Product Version: UE 4.18
resetcamerapos.png (77.8 kB)
more ▼

asked May 22 '18 at 01:24 PM in Blueprint Scripting

avatar image

11 2 4 8

avatar image Jeremy Q ♦♦ STAFF May 22 '18 at 07:35 PM

Hi Jamesdaley121,

I was able to get this to work by creating the reset camera input inside of the pawn I was trying to move. You can take a look at what I did below. Where do you have this input action setup in your blueprints?

alt text

resetpawncamera.png (349.1 kB)
avatar image Jamesdaley121 May 23 '18 at 08:46 AM

I had the input action set up in a widget blueprint. I try to set this up and keep you updated. I want the camera to be reset up on releasing a button. That is why is am trying to set it up in a widget blueprint.

avatar image Jamesdaley121 May 23 '18 at 09:07 AM

I have this input action set up in my player controller. alt text

avatar image Jeremy Q ♦♦ STAFF May 23 '18 at 03:25 PM

Can you provide me with your project? If the file is too large to attach you can use Dropbox or Google drive to upload it and provide a shareable link.

avatar image Jamesdaley121 May 23 '18 at 04:06 PM

Hi Jeremy, I won’t be able to send you the project because I don’t have the time to do so. What information is it you need from the project? The player controller inputs image shows the movement inputs set up in the player controller. So far the player pawn blueprint doesn’t have any movement inputs set up.

avatar image Jeremy Q ♦♦ STAFF May 25 '18 at 12:53 PM

Without the full blueprint I don't have enough context to see exactly what is happening in your project. When you have more time feel free to update this thread. After doing so I will be happy to assist you further.

avatar image Jamesdaley121 May 25 '18 at 04:26 PM

Ok thanks for the reply.

avatar image Jamesdaley121 May 27 '18 at 03:10 PM

Hi Jeremy, I have asked a question on unreal engines forums and answerhub, however I am yet to get an answer to my solution. I have attached the link to the question and was wondering if it was something you could have a look at. At this point I am stuck and can't move the project forward.  https://answers.unrealengine.com/questions/789788/touch-screen-drag-issue.html

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

0 answers: sort voted first
Be the first one to answer this question
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