# UEditorEngine vs UUnrealEdEngine

**URL:** <https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018>\
**Category:** Mobile\
**Tags:** unreal-engine, editor, question\
**Created:** [February 19, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018 "2016-02-19T19:49:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![msvcrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msvcrt](https://forums.unrealengine.com/u/msvcrt)\
**Post date:** [February 19, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018/1 "2016-02-19T19:49:14Z")

</div>

What is the difference between these? If I need to implement my own game editor class, should I derive from UEditorEngine or from UUnrealEdEngine?

Thanks!

Robert.

---

<div class="post-metadata">

**Author:** ![Doug\_Richardson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doug\_Richardson](https://forums.unrealengine.com/u/Doug_Richardson)\
**Post date:** [April 19, 2019, 6:15pm UTC](https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018/2 "2019-04-19T18:15:58Z")

</div>

Probably `UUnrealEdEngine`.

When `FEngineLoop::Init` runs, it looks for a subclass of `UUnrealEdEngine`:

```
FString UnrealEdEngineClassName;
GConfig->GetString(TEXT("/Script/Engine.Engine"), TEXT("UnrealEdEngine"), UnrealEdEngineClassName, GEngineIni);
EngineClass = StaticLoadClass(UUnrealEdEngine::StaticClass(), nullptr, *UnrealEdEngineClassName);

```

Notice the `UUnrealEdEngine::StaticClass()`. If you try to use a sub-class of `UUnrealEngine`, the call to `StaticLoadClass` will return `nullptr`.

---

<div class="post-metadata">

**Author:** ![msvcrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msvcrt](https://forums.unrealengine.com/u/msvcrt)\
**Post date:** [April 22, 2019, 5:06pm UTC](https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018/3 "2019-04-22T17:06:31Z")

</div>

Just an addition for anyone who ever wondered what is the difference between the EditorEngine and the UnrealEdEngine:

The EditorEngine is created when running editor commandlets.

Here’s the code from `FEngineLoop::PreInit`:

```
FString EditorEngineClassName;
GConfig->GetString(TEXT("/Script/Engine.Engine"), TEXT("EditorEngine"), EditorEngineClassName, GEngineIni);
UClass* EditorEngineClass = StaticLoadClass( UEditorEngine::StaticClass(), nullptr, *EditorEngineClassName);

```

And here’s a comment from `Commandlet.h`:

```
/**
 * Whether to load objects required in server, client, and editor context. If IsEditor is set to false, then a
 * UGameEngine (or whatever the value of /Script/Engine.Engine.GameEngine is) will be created for the commandlet instead
 * of a UEditorEngine (or /Script/Engine.Engine.EditorEngine), unless the commandlet overrides the CreateCustomEngine method.
 */
```

---

<div class="post-metadata">

**Author:** ![mi2think](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mi2think](https://forums.unrealengine.com/u/mi2think)\
**Post date:** [November 3, 2022, 3:15pm UTC](https://forums.unrealengine.com/t/ueditorengine-vs-uunrealedengine/348018/4 "2022-11-03T15:15:08Z")

</div>

You are right!  
Some function do not implement in EditorEngine, such as “SelectActor”, so it will failed to call in commandlet mode.
