some UCesiumGltfPrimitiveComponent cannot be hit by ray tracing, I want to check hit result with triangles. But get data from RenderData error when use shipping, it is no problem in Develop Editor, I don not known why.
the main code:
UStaticMeshComponent* SMC = (UStaticMeshComponent*)pGltfPrimitiveComponent;
UStaticMesh* pMesh = SMC->GetStaticMesh();
auto renderData = pMesh->GetRenderData();
int64 i = UCesiumMetadataPrimitiveBlueprintLibrary::GetFirstVertexIDFromFaceID(primMetadata, 0);
FVector3f& v = renderData->LODResources[0].VertexBuffers.PositionVertexBuffer.VertexPosition(i);
cannot get vertex position when in Develop or Shipping.