I made a class inheriting from UInstancedStaticMeshComponent and inserted this function, which I mainly copied from InstancedStaticMesh.cpp:
bool UExtInstancedStaticMeshComponent::RemoveInstances(TArray<int32>& InstanceIndizes)
{
(...)
// Force recreation of the render data
InstanceUpdateCmdBuffer.Edit();
MarkRenderStateDirty();
return true;
}
But it’s giving me the linker error
ExtInstancedStaticMeshComponent.cpp.obj : error LNK2019: Verweis auf nicht aufgel�stes externes Symbol ""public: void __cdecl FInstanceUpdateCmdBuffer::Edit(void)" (?Edit@FInstanceUpdateCmdBuffer@@QEAAXXZ)" in Funktion ""public: bool __cdecl UExtInstancedStaticMeshComponent::RemoveInstances(class TArray<int,class TSizedDefaultAllocator<32> > &)"