How Can I Extend FEdMode or FGeometryEdMode ( What #Include? )

Dear Friends at Epic,

I would like to extend EdMode or GeometryEdMode,

but I am getting error that the superclass cannot be found.

I’ve tried a variety of headers, which one am I missing?

#.h

#pragma once

#include "UnrealEd.h" 
#include "Editor.h"
#include "ModuleInterface.h"
#include "GeometryEdMode.h"

//Generated
#include "VictoryEdAlignMode.generated.h"

UCLASS()
class FVictoryEdAlignMode : public FEdModeGeometry
{
	GENERATED_UCLASS_BODY()

};

#.cpp Constructor for an FEdMode ?

on a related note, in my .cpp file is using the standard constructor format for an EdMode okay?

// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.

//Victory Alignment Mode

#include "VictoryGame.h"

FVictoryEdAlignMode::FVictoryEdAlignMode(const class FPostConstructInitializeProperties& PCIP)
	: Super(PCIP)
{
	
	
}

#Thanks!

Thanks!

Rama

Editor mores are not UObject base classes and thus do not work (or need) UCLASS, GENERATED_UCLASS_BODY, or the constructor with PostConstructInitializeProperties. You just need regular c++ here:

class FMyEdMode : public FEdMode
{
FMyEdMode();
~FMyEdMode();
}

Dear Matt,

Thanks!

You answered my question :slight_smile:

I have posted a separate thread about my question regarding how to properly register a custom editor mode

https://rocket.unrealengine.com/questions/13176/how-to-properly-initialize-register-a-custom-edito.html

Thanks again!

Rama