# Is GetLastFrameCameraCachePOV really Last Frame's POV?

**URL:** <https://forums.unrealengine.com/t/is-getlastframecameracachepov-really-last-frames-pov/136179>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [January 9, 2020, 12:37pm UTC](https://forums.unrealengine.com/t/is-getlastframecameracachepov-really-last-frames-pov/136179 "2020-01-09T12:37:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangjingmin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yangjingmin](https://forums.unrealengine.com/u/yangjingmin)\
**Post date:** [January 9, 2020, 12:37pm UTC](https://forums.unrealengine.com/t/is-getlastframecameracachepov-really-last-frames-pov/136179/1 "2020-01-09T12:37:31Z")

</div>

Hey, guys.  
Here’s the problem, the method called “SetViewTarget” in class PlayerCameraManager calls GetLastFrameCameraCachePOV().  
When I debug it, It seems that GetLastFrameCameraCachePOV actually returns the frame before last frame’s POV. And SetViewTarget couldn’t runs correctly.  
Then I change GetLastFrameCameraCachePOV to GetCameraCachePOV, and SetViewTarget runs well.  
So, Is it a bug? or am I doing it in a wrong way?

---

<div class="post-metadata">

**Author:** ![Fieol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fieol/32/1104383_2.png) [@Fieol](https://forums.unrealengine.com/u/Fieol)\
**Post date:** [January 10, 2020, 6:33am UTC](https://forums.unrealengine.com/t/is-getlastframecameracachepov-really-last-frames-pov/136179/2 "2020-01-10T06:33:25Z")

</div>

Hi Yangjingmin,  
May be the GetLastFrameCaemraCache doesn’t give you exact last frame, but surely it should return something which is recently in the frame, as its camera cache. I’m waiting for more technical details too.

---

<div class="post-metadata">

**Author:** ![yangjingmin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yangjingmin](https://forums.unrealengine.com/u/yangjingmin)\
**Post date:** [January 13, 2020, 8:24am UTC](https://forums.unrealengine.com/t/is-getlastframecameracachepov-really-last-frames-pov/136179/3 "2020-01-13T08:24:29Z")

</div>

, thanks a lot man.
