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"

change camera from actor blueprint

Hi guys, i learned how to change cameras from inside the level blueprint.

now i want to change my main camere from inside an actor blueprint, but i cant get anywhere near a solution.

i have a mobile mesh, that i converted into a blueprint. inside this blueprint i am checking interaction with the object. so now i want to change my camera if the player interacts with the mobile mesh (means right clicks on it)

but i cant get the camera into the blueprint. (dragging a camera into the level bueprint works fine..)

why is that so ? (there must be something fundamental to learn here for me ;-) ) and can anybody tell me how to achieve it

kind regards stucki

Product Version: UE 4.13
Tags:
more ▼

asked Oct 26 '16 at 08:53 PM in Blueprint Scripting

avatar image

stucki
11 3 8 10

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

3 answers: sort voted first

There are 2 ways to do this.

You can use the get all actors of class node in blueprint, and chose to return all cameras in the scene, then if you have one camera you can use the get node and get the first element. If you have more then one camera then you need to find the right one by either adding a tag to your camera or by finding it by it's name.

The second method which I would recommend, would be to create a camera variable in your mobile blueprint, and then click the "Eye" icon next to the variable name, this will expose the variable in the mobile blueprint scene settings. Go to your Mobile Blueprint in the scene, select it and look for the camera variables in the details menu, you can use the eyedropper to select the camera in the scene

more ▼

answered Oct 26 '16 at 10:20 PM

avatar image

Night Watcher
1.7k 44 12 71

avatar image Night Watcher Oct 27 '16 at 04:07 PM

Bascilly do this: alt text alt text

c1.png (317.4 kB)
c2.png (752.5 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

thx very much for your answer ! i have tried to do so, but noob as i am, i am not getting anywhere past the get all actors of class ... as actor class i choose camera actor. how do i get the specific camera i want now from the Out actors array ?

your second tip i dont understand even less. please try to explain it for an blueprint beginner of level 0 ;-)

best regards stucki

more ▼

answered Oct 27 '16 at 04:01 PM

avatar image

stucki
11 3 8 10

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

thx again for your detailed pictures. now i got it working ;-)

is there a reason why this must be so complicated ? couldnt cameras be something global i can point to from anywhere in the game .... guess it just does not work like this and i have to learn more about the art of blueprinting !

thx for your time and help !! stucki

more ▼

answered Oct 27 '16 at 08:47 PM

avatar image

stucki
11 3 8 10

(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