# Trouble accessing member LODResources from RenderData

**URL:** <https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769>\
**Category:** C++\
**Tags:** staticmeshcomponent, unreal-engine, UE4, CPP, question\
**Created:** [March 25, 2016, 6:04pm UTC](https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769 "2016-03-25T18:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![synthure](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@synthure](https://forums.unrealengine.com/u/synthure)\
**Post date:** [March 25, 2016, 6:04pm UTC](https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769/1 "2016-03-25T18:04:29Z")

</div>

Im trying to access the vertex buffer from a static mesh component.  
this works just fine

```
FStaticMeshRenderData* renderData = StaticMeshComponent->StaticMesh->RenderData;

```

but when i attempt to access anything from the RenderData such as LODResources, i get

```
  error C2039: 'LODResources': is not a member of 'TScopedPointer<FStaticMeshRenderData>'

```

I’ve seen samples of code that work as expected getting PositionVertexBuffer and such for example: [this link](https://forums.unrealengine.com/showthread.php?8856-Accessing-Vertex-Positions-of-static-mesh&highlight=LODResources)

but i have had no luck compiling this code myself. has something changed with this in 4.10?

---

<div class="post-metadata">

**Author:** ![Avolendi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avolendi](https://forums.unrealengine.com/u/Avolendi)\
**Post date:** [May 2, 2016, 11:32am UTC](https://forums.unrealengine.com/t/trouble-accessing-member-lodresources-from-renderdata/351769/2 "2016-05-02T11:32:58Z")

</div>

Had the same issue. Try adding:

```
#include <Runtime/Engine/Public/StaticMeshResources.h>
```
