# How do I make a CameraActor my main camera?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, editor, UE4, CPP, question\
**Created:** [April 5, 2014, 3:14am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655 "2014-04-05T03:14:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [April 5, 2014, 3:14am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/1 "2014-04-05T03:14:58Z")

</div>

Hi Guys,

For first off, I’ve spending good part of a week and bit rummaging through Unreal. I’ve built source and gone through examples, looked through docs, did some programming etc. My main background is from Unity side of things(6 years or so), including work as a C++ programmer.

I’m trying to implement, what I would consider, a basic element of a game and finding myself struggling. So I would like to get some input on best practices when tackling this kind of development problem.

In particular, a C++(potentially married with BP) solution would be awesome. So here goes:

Requirements:

- Player is represented by a pawn that walks around a room(there are many, connected via triggers etc)
- Player does not have a camera
- Camera is a separate actor in scene and looks down at a room (perspective iso style)
- When player exits room, camera moves to look at new room
- Camera does not translate or rotate to view player. Camera is static

I’m not finding a way of actually setting a camera up that can stand alone, away from player. What should I be doing? Any help is welcome. Thanks peeps!

.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 5, 2014, 4:23am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/2 "2014-04-05T04:23:38Z")

</div>

One thing you can do is to use a camera and a Matinee actor for every room. Set your camera in Matinee as you should for a cinematic(except for movement. you dont need to set more than 1 key for movement track since camera is static) and make sure you set a director track in it(which will enable you to view through cam) After that create Play node for every matinee in Level Blueprint, and activate them with those triggers you use for room switching.

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [April 5, 2014, 4:30am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/3 "2014-04-05T04:30:49Z")

</div>

Thank you very much Jacky. I’ll try that moment I get back home! 🙂

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [April 6, 2014, 7:37am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/4 "2014-04-06T07:37:50Z")

</div>

So I worked it out. Just using BP and nothing else, you can achieve a completely disconnected and best of all free camera mode. Do this:

- Add a CameraActor to your scene
- Create a level blueprint(or any blueprint as long as it executes) 🙂
- Then make this:

 ![3335-screen+shot+2014-04-06+at+5.34.30+pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/0/1e01174e2d1432b1f325132efe5439279bf55a91.png)

So yes, it obviously doesn’t have to be a level BP, can be any BP.

---

<div class="post-metadata">

**Author:** ![dbrizov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dbrizov](https://forums.unrealengine.com/u/dbrizov)\
**Post date:** [June 29, 2014, 11:08am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/5 "2014-06-29T11:08:53Z")

</div>

Any idea how I can do this with only C++ code?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 30, 2014, 8:43pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/6 "2014-06-30T20:43:47Z")

</div>

Hey dbrizov,

Probably best to ask that in C++ section of AnswerHub, where most of our coders hang out. Feel free to reference this post if you find it helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![wired00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wired00](https://forums.unrealengine.com/u/wired00)\
**Post date:** [July 15, 2014, 2:01pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/7 "2014-07-15T14:01:10Z")

</div>

Great help thank you, this is exactly what I needed for my tower defense game, however I just currently have a static camera in corner. What is best way to pan camera around level?

---

<div class="post-metadata">

**Author:** ![Charly\_Pico](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Charly\_Pico](https://forums.unrealengine.com/u/Charly_Pico)\
**Post date:** [May 6, 2015, 11:32pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/8 "2015-05-06T23:32:29Z")

</div>

Hey guys! Just can’t find the ‘SET’ box that is in picture, second red box that says ‘Find Camera Component when View Target’, where can I find it?

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 14, 2015, 11:55am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/9 "2015-05-14T11:55:32Z")

</div>

You don’t need that node anymore Charly. It should just work. Cameras are also getting a bit of a rewrite.

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 14, 2015, 11:57am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/10 "2015-05-14T11:57:12Z")

</div>

You can add a BP component to your stand-alone camera actor and have it do stuff on a tick. That way you can have it rotate and translate around level to track things etc.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69b87708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69b87708](https://forums.unrealengine.com/u/anonymous_user_69b87708)\
**Post date:** [February 11, 2016, 9:34pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/11 "2016-02-11T21:34:21Z")

</div>

In 4.10, you can place a camera actor, select it, scroll down details panel until you see “Auto Player Activation” and then select player that should use camera.

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [July 24, 2016, 6:13pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/12 "2016-07-24T18:13:39Z")

</div>

Hi. I want all players to use that camera actor. Is there any way to do it so I dont need to copy 16 cameras, one for each player? Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69b87708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69b87708](https://forums.unrealengine.com/u/anonymous_user_69b87708)\
**Post date:** [July 24, 2016, 10:11pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/13 "2016-07-24T22:11:21Z")

</div>

Do you want all players to ‘see’ through one camera, such as in spectator mode, or do you want to have a top-down view where all players are visible within scene?

---

<div class="post-metadata">

**Author:** ![KNOFF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KNOFF](https://forums.unrealengine.com/u/KNOFF)\
**Post date:** [February 14, 2018, 7:06am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/14 "2018-02-14T07:06:13Z")

</div>

In BeginPlay use this:  
UGameplayStatics::GetPlayerController(GetWorld(), 0)-\>SetViewTarget(TPCamera);

---

<div class="post-metadata">

**Author:** ![darkgaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Post date:** [March 26, 2018, 12:23pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/15 "2018-03-26T12:23:23Z")

</div>

Probably this is what you wanted and what you did?

> **[Using a Static Camera](https://docs.unrealengine.com/5.1/en-US/using-a-static-camera-in-unreal-engine/)**
>
> A how-to guide for using a static camera to blend between player viewpoints.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_858533281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_858533281](https://forums.unrealengine.com/u/anonymous_user_858533281)\
**Post date:** [April 2, 2018, 11:51am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/16 "2018-04-02T11:51:15Z")

</div>

Hi Everyone, this is works great, but how can I also take control of newly created cemera? Like a free flying first person view?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f39c5262](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f39c5262](https://forums.unrealengine.com/u/anonymous_user_f39c5262)\
**Post date:** [July 18, 2018, 11:30am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/17 "2018-07-18T11:30:35Z")

</div>

What needs to be included to get this line to compile?  
Is this a dumb question? How could I figure this on my own?

---

<div class="post-metadata">

**Author:** ![MaNIaC39000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maniac39000/32/1091519_2.png) [@MaNIaC39000](https://forums.unrealengine.com/u/MaNIaC39000)\
**Post date:** [March 15, 2022, 11:37pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-cameraactor-my-main-camera/279655/18 "2022-03-15T23:37:11Z")

</div>

@TommyBear As a newbie i looked all over for find a solution and this worked like a charm. Thank you so much.
