Hello, I'm new here.
Wanted to ask mall how to delete an added component. Since I have a problem because I added it to a model.
I have a short example here of how it freezes:
Meshes[0] = LoadModel(curWorld, FileModel1);
auto comp = Meshes[0]->AddComponent<Mover>();
comp->rotationspeed.y = 5;
Meshes[0]->Clear();
Meshes[0] = LoadModel(curWorld, FileModel2);
I clean the model with the Clear() command, don't I? It works without the componet. Or is that a bug?