error LNK2001: unresolved external symbol “public: virtual void __cdecl FPositionVertexBuffer::InitRHI(void)”
I get this error when trying to access the PositionVertexBuffer in the following way:
auto vertexBuffer = mColorSpreadComponent->StaticMesh->RenderData->LODResources[0].PositionVertexBuffer;
for (uint32 i = 0; i < vertexBuffer.GetNumVertices(); ++i)
{
FWVertexData v;
v.mIndex = i;
v.mPosition = vertexBuffer.VertexPosition(i);
mVertecies.Add(v);
}
Which modules do I need apart from RenderCore, ShaderCore and RHI?
Anyone? I’ve been searching non-stop for two hours now, and I still have no idea what I’m missing. I’ve been all over the forums and there are people using VertexPosition from the VertexBuffer, but they don’t mention any module includes.