Created a new C++ GameModeBase class on a miss click and cant remove it

I created a new C++ GameModeBase class on a miss click and can’t remove. I tried reverting back to my last commit but it saved in anyway. I tried deleting it directly in visual studios but it won’t let me. I’m hunting for it in the file system but I’m concerned I will kill the entire project if I remove the wrong thing.

Isn’t this the kind of thing source tree is supposed to prevent? Why did it commit the change before I actually committed it? How can I change it and prevent it from happening again? How Can I undo this simple mistake?

I Managed to remove the files by closing everything down and editing the C++ project in visual studios to revert manually but it still shows in the unreal edditor. I’m still wondering, Why didn’t source tree never did its job?

Problem fixed

Source control was not enabled in Unreal. I enabled it but it was still out of sink.

I had to rebuild the C++ file after removing the unwanted items and the change took effect.

Privacy & Terms