How to get triangle,vertex position from UCesiumGltfPrimitiveComponent?

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.

What error are you getting in the Shipping configuration?

Shipping configuration crashed. these can be reproduced in Develop configuration.

this code: