In Ue4 c++ Overloaded virtual function gives warning as error

I have overloaded a virtual function in derived class by changing the single parameter type.
Other than that its signature is same as base.

This results in VS warning C4263

Unfortunately Unreal engine projects are setup to treat warnings as errors, so code won’t compile.

So i tried using #pragma supress warning inside the c++ header, but that results in syntax error.

Any ideas as to how to resolve this

cheers

Have you also provided an implementation of the non-overloaded function in the derived class? Overloading a virtual function in a derived class hides the other implementations from the derived class. At that point, you’re also no longer overriding because no function with the same signature exists in the parent.

Showing the code in question and the actual error logs would help a lot in helping us help you.

If you are overriding(overloading is different thing) function from the base class, the signatures must be identical. You can’t change the type and number of parameters.