"FMeshDrawSingleShaderBindings" is undefined

“FMeshDrawSingleShaderBindings” is undefined pops up every now and again. That being a variable from the vertexFactory.h
I’m not sure why it would do this, this is a new game and I have never touched the engine files on any of my games. It doesn’t seem to effect anything yet, but it is obnoxious having that error sitting there while I’m working.

I’m having the exact same issue! It’s worth noting that I (and you, probably) am compiling the engine source.

Delete project folders Binaries, Intermediate, Saved → Generate Visual Studio Files and rebuild.

(you probably don’t need to delete Binaries and Saved)

I had to add this line to my VertexFactory.h file to remove this intellisense error.

#include "Runtime/Renderer/Public/MeshDrawShaderBindings.h"

Thanks man , It worked
I was working on this error for more than 3 hours and finally I saw this post

Should we rebuild the engine after adding this header?
Edit: no, we shouldn’t. UE4.22.3/release branch won’t compile with that header. Perhaps MartinZrcek’s solution is better advisable. Unless you’re ok with changing stuff in engine code without recompiling it, just to calm down the VS linter.

It didn’t work for me