Here’s the code.
FSkeletalMeshVertexColorBuffer vc;
vc.CleanUp(); // error
TArray<FColor> changedColor;
vc = changedColor; // error
All I want is change vertex color. I trying to access vertex buffer from SkeletalMeshComponent.
A problem is that I cannot use any functions in FSkeletalMeshVertexColorBuffer.
error LNK2019: unresolved external symbol “public: void __cdecl FSkeletalMeshVertexColorBuffer::CleanUp(void)” (?CleanUp@FSkeletalMeshVertexColorBuffer@@QEAAXXZ) referenced in function …
I added private module. Doc says FSkeletalMeshVertexColorBuffer uses module “Engine.”
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/FSkeletalMeshVertexColorBuffer/index.html
PrivateDependencyModuleNames.AddRange(new string[] { "Engine" });
It doesn’t work.