Unable to override InitRHI()

include “CoreMinimal.h”
include “RHI.h”
include “RenderResource.h”

class FVBuffer : public FVertexBuffer{
public:
FVBuffer();
~FVBuffer();
virtual void InitRHI() override;
};

I’m at a loss on why InitRHI() is not being able to be overwritten, The error i’m getting is “member function declared with ‘override’ does not override a base class member”

I copied your class into my project (5.1) and it built successfully. :thinking:

It’s likely that some settings in your VS are broken.
To start, try this (although I highly doubt that this will help):

image

Try creating a new UE project and testing your code it there. If that doesn’t work, reinstall VS.

I’m using 5.6 and I’ve already tried both of these with no luck, what settings do you think would be causing these problems?

:thinking:

In this version the signature has been changed…

There is no error on the part of VS (or anything else) :upside_down_face:

yeah, it would be smart to include the required params.