ProceduralMeshComponent does not show in editor

Have you tried putting “GenerateCubeMesh();” on construction script? Its equivalent in C++ is OnConstruction(). Put it there and remove it from BeginPlay. Use:

virtual void OnConstruction(const FTransform& Transform) override;