# CameraActor - Get initial rotation in Level

**URL:** <https://forums.unrealengine.com/t/cameraactor-get-initial-rotation-in-level/47101>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [November 10, 2015, 10:25am UTC](https://forums.unrealengine.com/t/cameraactor-get-initial-rotation-in-level/47101 "2015-11-10T10:25:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elvince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elvince](https://forums.unrealengine.com/u/Elvince)\
**Post date:** [November 10, 2015, 10:25am UTC](https://forums.unrealengine.com/t/cameraactor-get-initial-rotation-in-level/47101/1 "2015-11-10T10:25:25Z")

</div>

Hi,

I dropped a CameraActor inside my level. I want to use the CameraRotation that I define in it when my PC is “seeing throught it”.

The GetDefaultObject returns a GetActorRotation with zero value. It seems that that I’m getting the DefaultClass rotation and not the “instanced initial rotation in the level”.

any idea?

Thanks,

---

<div class="post-metadata">

**Author:** ![UnrealEverything](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealEverything](https://forums.unrealengine.com/u/UnrealEverything)\
**Post date:** [November 12, 2015, 8:30am UTC](https://forums.unrealengine.com/t/cameraactor-get-initial-rotation-in-level/47101/2 "2015-11-12T08:30:31Z")

</div>

I’m not entirely certain I understand the problem.

If it’s a CameraActor you’ve placed and that isn’t moved by anything its rotation should be whatever it is set to in the editor. In order to get this instance rotation you’ll have to call GetActorRotation on that specific instance though not the CDO you’ll get from GetDefaultObject. How you get this CameraActor instance is up to you. For example you could use a TActorIterator or just a simple UPROPERTY where you can assign that CameraActor.

---

<div class="post-metadata">

**Author:** ![Elvince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elvince](https://forums.unrealengine.com/u/Elvince)\
**Post date:** [November 12, 2015, 8:43am UTC](https://forums.unrealengine.com/t/cameraactor-get-initial-rotation-in-level/47101/3 "2015-11-12T08:43:37Z")

</div>

In fact my camera is “controlled” by the player when he is dead. So after the first time, the “initial” rotation is not the one that I’m expected.

So is there a way to retrieve or should I store it on the loading?

thanks,
