# How do I get the current camera location (including when in the Editor)?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348>\
**Category:** Cinematics & Media\
**Tags:** Trace, visibility, unreal-engine, Blueprint, question\
**Created:** [May 27, 2014, 1:24pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348 "2014-05-27T13:24:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feanix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Feanix](https://forums.unrealengine.com/u/Feanix)\
**Post date:** [May 27, 2014, 1:24pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348/1 "2014-05-27T13:24:15Z")

</div>

I’m trying to update the visibility of an actor based on a trace between the current camera and the object. I need it to work in the editor too (the objects have depth testing turned on so they always render on top of everything and there could be a lot of them).

I think I’ve gotten most of the way there but I always come back to the provlem of not being able to get a reference to whatever the current camera is. I’ve tried using a Get Camera View but it doesn’t seem to want to refer to “self” for a target and I don’t know what I should be putting in target.

Oh, I’m trying to stick to blueprints for this one.

[Click for bigger version][1]

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/8/f8960ed44df1905c57565f3c9009b16bca6a87c2.png) ](https://i.imgur.com/WQifl6x.png)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/b/abd05824ba5cd3acb9f658ce88fd19cb6b686b26.png) ](https://i.imgur.com/pias6JJ.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ca07ee3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ca07ee3](https://forums.unrealengine.com/u/anonymous_user_1ca07ee3)\
**Post date:** [November 28, 2015, 1:30pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348/2 "2015-11-28T13:30:31Z")

</div>

What blueprint do you have your camera on? You can use GetWorldLocation and use the camera component on the input pin

 ![68523-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/7/ce78f9d41c43e9106768c149b11f3eba77dad778.png)

---

<div class="post-metadata">

**Author:** ![somawheels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Post date:** [January 17, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348/3 "2018-01-17T17:13:49Z")

</div>

This will get the currently active camera location in play mode. Don’t know if that helps atall

![227408-2018-01-17-17-10-42.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/0/2f0de8dd0787b04cbab1ccd92067cef0217ca0ac.png)

---

<div class="post-metadata">

**Author:** ![Eatdirt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eatdirt](https://forums.unrealengine.com/u/Eatdirt)\
**Post date:** [December 28, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-current-camera-location-including-when-in-the-editor/284348/4 "2025-12-28T13:43:31Z")

</div>

If you get the Player Camera Manager from your player controller and “get Camera Location” instead of the actor location, all the variables are also replicated.
