Download

how to override custom viewportClient?

Hi all,
I need to override Custom viewportClient, I try like this:



class customViewportClient : public FCommonViewportClient
{
public:
	virtual void Draw(FViewport* Viewport, FCanvas* Canvas) override;
protected:
private:
};




			customViewportClient* customVp = new customViewportClient;
			GEngine->SetEngineStat(world, customVp, TEXT("Levels"), true);


But it doesn’t run. How to override my custom viewport client?
Thanks.