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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Switch betwen two cameras

I have one camera in my firstplayer bluprint - main camera. And I have second camera in my mesh BP. When I press E I want my camera view shift from one to another camera. How can i achive it?

Product Version: UE 4.20
Tags:
more ▼

asked Oct 17 '18 at 07:26 PM in Blueprint Scripting

avatar image

NewMan2332
23 2 3 9

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

1 answer: sort voted first

Get Player Controller -> Set View Target with Blend and target the second camera.

more ▼

answered Oct 17 '18 at 07:39 PM

avatar image

Everynone
14.6k 76 25 61

avatar image NewMan2332 Oct 17 '18 at 08:00 PM

it doesnt work

avatar image NewMan2332 Oct 17 '18 at 08:00 PM

I need to cast betwen BPs but it doesnt work

avatar image Everynone Oct 17 '18 at 08:11 PM

No one can read your mind. Before anyone can help you, you need to provide more details.

it doesnt work

What does not work? I can assure you that switching between cameras works well.

I need to cast betwen BPs but it doesnt work

Casting does not work? Consider attaching a screenshot of what you're doing and what you expect to happen.


Are the 2 cameras in 2 different objects? One is in the character and the second one?

in my mesh BP

This does not help much, unfortunately. What's my mesh BP? An object you placed in the level?

avatar image NewMan2332 Oct 17 '18 at 08:43 PM

Yes, second one is in the actor BP which is located somewhere in the level.

avatar image Everynone Oct 17 '18 at 09:02 PM
  • how do you know which actor you want to switch the camera to?

  • your character is looking at it?

  • you choose it from the list?

  • you highlight it with a mouse?

  • you surely do not want to press E and always switch to the same object?

See what I mean? Please be more descriptive. :)

avatar image NewMan2332 Oct 17 '18 at 09:08 PM

here is a crean. why it doesnt work?

scrn1.jpg (136.6 kB)
avatar image NewMan2332 Oct 17 '18 at 09:24 PM

Ok.Nevermind. it works. The problem was that my static mesh was without colision.

avatar image Everynone Oct 17 '18 at 09:37 PM

Awesome, well done.

(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