Access Violation in UProceduralMeshComponent

You say you’re checking with


if (!Mesh) {}

  • which would check if the mesh IS nullptr and run the code. You need to use

if (Mesh) {}

, or to be less inconspicuous,


if (Mesh != nullptr) {}

I agree with Zeblote, it’s most likely that the mesh doesn’t exist. Use the callstack, and look at the previous entries to find the issue.