How to Use Cameras,How to Use Camera

Please help me. I’m new to UE4, the only game engine I know how to use is Unity and I’m in need of help. This problem is very basic. I’ve done a lot of searching and I can’t find the answer to this question: how to set up a camera. I attach the camera component to the Actor, add some movement controls to it, but whenever I press “Play”, all I get is the spectator controls, rather than looking through the camera I had placed. Help…,

I would start by taking a look at these docs first. I found them very helpful. There are also some great tutorials on the unreal engine youtube channel that can get you started. And if nothing else you can play around with the starting templates. After you look through these, let me know if you have further problems.

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/SetUpInput/Blueprints/

You set camera by setting actor with it as view target

You either need to set actor with camera as a view target or to posses actor with camera (which automaticly set it as a view target, you can disable this automatic behavior in player controller). You possess actor if you want to control it, if not you just set actor as view target, there receptive nodes for that blueprints just look “Posses”, “View Target” in node list.

You set Possessed actor and view target individually to each player controller, so for example if you want to make all players have same camera you set same view target actor in all player controllers and posses different actors that they control.

Little extra more advance stuff that can be useful for you, to control which camera component in actor is used (if oyu have more then one) by deactivate one and activate another, this is how you do it in blueprints. By default actor picks to use first found active camera component, in C++ you can change that behavior by overriding CalcCamera() function, you can make it so that camera component is not needed at all as CalcCamera from actor gives camera position to camera manager (yes technically camera component does nothing much other then hold settings and be position point for real camera).