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 do I switch camera view for another actor?

I have a blueprint class MyCar (inherited from Actor), which has three camera components in it. I spawned three MyCar actors.

I tried switching camera from car 1 to car 2 by calling SetViewTargetWithBlend, but it does not work, although after checking the log I am sure this function has been called in blueprint. It is always car 2 that is displayed on screen.

If they were pawns, I could do this using Possess and Unpossess. But now they are actors. I don't know how to switch the camera.

Product Version: UE 4.20
more ▼

asked Aug 18 '18 at 10:25 PM in Rendering

avatar image

15 3 3 7

avatar image Fan.JIN Aug 18 '18 at 11:54 PM

Thanks for the answers. It was my fault (I forgot to link some nodes). I should have removed this "false" question, but the answers below are really helpful, especially for us beginners.

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

1 answer: sort voted first

This will switch between 3 separate actors (each object has 3 cameras):

alt text

How are you selecting the objects to switch to?

capture.png (165.9 kB)
more ▼

answered Aug 18 '18 at 11:40 PM

avatar image

15.2k 77 25 62

avatar image Fan.JIN Aug 18 '18 at 11:42 PM

Thank you very much! It works fine.

(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