Just upgraded to 4.4 from 4.3.1, but the compiler throws errors when I try to use GEngine->AddOnScreenDebugMessage():
error C2065: ‘GEngine’ : undeclared identifier
GEngine was a global engine pointer, of UEngine pointer type. This object used to be defined in EngineGlobals.h, which appears to be missing from 4.4 project solutions. How do I use AddOnScreenDebugMessage() now??
Looking at the documentation, is this what you are looking for? UEngine | Unreal Engine Documentation
It appears UEngine has a method AddOnScreenDebugMessage.
GEngine was a global engine pointer, of UEngine pointer type. It was defined in EngineGlobals.h, and no longer exists.
Sorry, I am new to UE. EngineGlobals.h seems to still contain GEngine. But testing it out, it looks like having these two headers:
#include “EngineGlobals.h”
#include “Engine.h”
Allowed me to use GEngine. Is it not allowing you to use it?
Sorry, I am new to UE. EngineGlobals.h seems to still contain GEngine. But testing it out, it looks like having these two headers:
include “EngineGlobals.h”
include “Engine.h”
Allowed me to use GEngine. Is it not allowing you to use it?
Hmm… It does allow me when I include both of the files you mentioned. In 4.3.1, I did not have to make this explicit inclusion. Weird.
Thanks for checking this out.
Rama
(Rama)
August 23, 2014, 7:50am
6
[FONT=Comic Sans MS]Solution
Actually the only difference is this:
New projects have this in their MyProject.h
#include "EngineMinimal.h"
Replace the above with this
#include "Engine.h"
and you will have GEngine back again
Rama