How can I specify which camera to use in a Pawn Blueprint?
I am currently doing a project as part of my Uni course and have had a bit of a struggle with the use of the cameras in the Pawn Blueprint. I understand it has a default camera but from what I have read it should be overridden when you place a new camera component?
My issue is this, I have four cameras in the pawn blueprint that will be controlled by the user in VR. As you can see from the images, it is a car interior with three cameras for the mirrors and one for the user. When I view the project in the preview or VR/mobile preview it generally uses the Pawns default camera, but sometimes it chooses one of the three mirror cameras at random (that should not be accessed), but never the named 'VRCamera'.
When I package this to my mobile, it seemingly always picks one of the 'mirror' cameras at random each time I package it. But not the VRCamera or the Pawns default camera. I have been searching the web/forums and trying different methods for a week now and am at my wits end. I have placed the VRCamera above the car to show more clearly that it is not being used.
If it makes any difference, whenever I do anything on the level the camera the Pawn is using changes. For example, it kept using the immobile rear-view mirror camera when I previewed the level, but after I placed a completely unrelated blueprint into the level, it started using the wing-mirror camera, even adding meshes into the scene can cause it to change the camera used by the pawn, really odd.
Thank you in advance for any help or advice you are able to provide! I really appreciate it.
Read this to understand how view target work in UE4:
So activate and deactivate camera component to select which camera is used or do code in C++ change camera selection routine in CalcCamera.
answered Dec 10 '17 at 04:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here