# Accessing image of Actor's cameras from GameMode C++

**URL:** <https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, CPP, question\
**Created:** [July 15, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346 "2015-07-15T14:37:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdebrecz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gdebrecz](https://forums.unrealengine.com/u/gdebrecz)\
**Post date:** [July 15, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346/1 "2015-07-15T14:37:09Z")

</div>

Hello !

I would like to access the image (render target) memory buffer of the cameras of the various players and save the image from let’s say GameMode’s Tick method. What is the simplest way to do it ? Could somebody please give me a code fragment ?

Example: I have a player in the level which has a camera fixed to it. I want to access the image of that camera in every Tick.  
Thanks in advance,  
G

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4cdfc185](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4cdfc185](https://forums.unrealengine.com/u/anonymous_user_4cdfc185)\
**Post date:** [July 15, 2015, 3:30pm UTC](https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346/2 "2015-07-15T15:30:40Z")

</div>

This might help:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![gdebrecz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gdebrecz](https://forums.unrealengine.com/u/gdebrecz)\
**Post date:** [July 16, 2015, 12:33pm UTC](https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346/3 "2015-07-16T12:33:01Z")

</div>

Thanks for your help ! However what is not clear in these tutorials that they always mix C++ and blueprint and the architecture is not completely clear. For example in the C++ code it is not visible where and ow the RenderTarget is set to the SceneCapture2D actor…

Is there a C++ only way to achieve this ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f88179b8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f88179b8](https://forums.unrealengine.com/u/anonymous_user_f88179b8)\
**Post date:** [March 4, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/accessing-image-of-actors-cameras-from-gamemode-c/325346/4 "2016-03-04T19:42:33Z")

</div>

gdebrecz, did you find a solution to this?
