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"

Switch Camera Blend With UCamera component


I would like to switch between cameras with blend like the function SetViewTargetWithBlend but instead to use CameraActor, I will need to use UCameraComponent (camera third view to top down view and inverse).

My UCameraComponent are childs of SprinArm.

How can I handle this behaviour ?

Behaviour needed (instead CameraActor, I need to use UCameraComponent) : Switch camera at 6 minutes 20 seconds

My character components hierarchy :

alt text

Product Version: UE 4.9
sans titre.png (39.1 kB)
more ▼

asked Nov 17 '15 at 10:29 AM in Blueprint Scripting

avatar image

1 2 4 5

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

3 answers: sort voted first


I know a better solution which I think is the best.

Create two separate actors ( Cam1 and Cam2)

add a camera component to each of them.

make camera component the root component by dragging and drop on scene component.

open character BP and add a spring arm with optional length.

then add two child actors then set child actor class from child actor component category to be those actors (cam1 , cam 2) for both child actors.

attach child actors to spring arm and change the location of one of them.

on begin play of character BP set one of those child to be the default camera by set view target with blend and zero blend time.

then on press E key use a flip flop to blend between cam1 and cam2. by set view target with blend node and a none zero blend time.

alt text

alt text

1.png (230.4 kB)
2.png (477.5 kB)
more ▼

answered Jun 27 '17 at 05:15 PM

avatar image

2.4k 72 41 105

avatar image King Bowser Nov 20 '17 at 10:39 PM

Thanks a lot, i spend 3 hours trying to figure this out! I tried to make a transition between 2 cameras when the player died but couldn't find out how to use view target with blend because he just didnt want to take my camera for his new view target. Your solution worked like a charm now i just need to find why it is tilting when transitioning.

avatar image PlayingKarrde Oct 13 '18 at 12:48 AM

While ultimately this is a good solution, it's highly recommended to never use child actors (PS4 won't even compile them and Epic themselves state it's best to avoid using them). A better (solution would be to spawn the actor then attach it to a spring arm component.

avatar image saeedc Oct 15 '18 at 08:20 AM

yes. I used to use child actors a lot and later I found out they are dangerous.

you can also spawn and attach those cameras instead of using child actors.

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

Here a solution :

alt text

You can also take a lokk at my FPS/TPS template HERE , it may help you

05.png (119.4 kB)
more ▼

answered Nov 17 '15 at 01:31 PM

avatar image

3.5k 152 29 318

avatar image GGUERILLOT Sep 21 '16 at 02:44 PM

Hello !

I'm very interested in this solution, it's very close to my own problem about changing player camera on this topic : https://answers.unrealengine.com/questions/468459/how-to-switch-smoothly-between-2-cameras-of-1-char.html

But I want to use only on camera, so I tried this BP but it doesn't work : alt text

Can anyone help me ? Thanks ! Guillaume

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

your welcome! :)

what do you mean by tilting?

more ▼

answered Dec 19 '17 at 04:12 AM

avatar image

938 8 17 20

(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