x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to Extend UnrealEdEngine?

Dear Friends at Epic,

I see in baseengine.ini I can choose a base class for UnrealEdEngine

 [/Script/Engine.Engine]
 EditorEngine=/Script/UnrealEd.EditorEngine
 UnrealEdEngine=/Script/UnrealEd.UnrealEdEngine

Presumably I could extend it and write in my own editor functionality as a plugin for others to use.

I am having trouble extending UnrealEdEngine :)

 1>e:\rocketvictory\victorygame\intermediate\builddata\include\victorygame\../../../../Source/VictoryGame/Classes/VictoryEdEngine.h(9): error C2504: 'UUnrealEdEngine' : base class undefined
 1>e:\rocketvictory\victorygame\intermediate\builddata\include\victorygame\../../../../Source/VictoryGame/Classes/VictoryEdEngine.h(10): error C2146: syntax error : missing ';' before identifier 'Super'
 1>e:\rocketvictory\victorygame\intermediate\builddata\include\victorygame\../../../../Source/VictoryGame/Classes/VictoryEdEngine.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
 1>e:\rocketvictory\victorygame\intermediate\builddata\include\victorygame\../../../../Source/VictoryGame/Classes/VictoryEdEngine.h(9): error C2504: 'UUnrealEdEngine' : base class undefined

I tried adding

 SharedPCHHeaderFile = "Runtime/Engine/Public/Engine.h";

to my build target but that did not change anything

Here's my class:

 #pragma once
 
 #include "Engine.h"
 
 #include "VictoryEdEngine.generated.h"
 
 UCLASS(config=Engine, transient)
 class UVictoryEdEngine : public UUnrealEdEngine
 {
     GENERATED_UCLASS_BODY()
 
 
 };
 
 // Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
 
 #include "VictoryGame.h"
 
 UVictoryEdEngine::UVictoryEdEngine(const class FPostConstructInitializeProperties& PCIP)
     : Super(PCIP)
 {
 }


Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:28 AM in C++ Programming

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1996 9121

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Rama,

Thank you for your feedback. It looks like you may need to include some more headers. Try adding:

 #include UnrealEd.h 

Please let me know if that does not resolve the issue and I will be happy to further assist.

Cheers!

Alexander

more ▼

answered Mar 11 '14 at 02:28 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1996 9121

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:28 AM

Woohoo that did Alexander, Thanks!

Unfortunately now my compile times went from 5 seconds to 70 seconds, but hey, this pic says it all

alt text

victoryed.jpg (453.1 kB)
avatar image Ari Arnbjörnsson Apr 18 '19 at 08:13 AM

For future answer seekers, "UnrealEd.h" is quite a monolithic header that includes a lot of other headers. To only "include what you use" include "Editor/UnrealEdEngine.h" instead.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question