I have added a virtual function to AActor, why can't i compile?

I believe you can just implement an empty function in the cpp file. Keep what you have in your header and add TheClass::YourFunction(){} etc… Unresolved external symbol most likely means you are using that function somewhere but there is no implementation for the linker. As long as you override it in the child class it will call the child’s version. Also, you can call the parent function if you decide to not have it empty and have some boilerplate code. Hope this helps :slight_smile: