Where is the GEngine pointer?

As stated.

At the end of Engine.h file, GEngine is reference declared using extern:

/** Global engine pointer. Can be 0 so don't use without checking. */
extern ENGINE_API class UEngine*			GEngine;

So where is this GEngine actually defined?

thx

wcl1993

It’s defined in UnrealEngine.cpp

\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp

/**
* Global engine pointer. Can be 0 so don't use without checking.
*/
ENGINE_API UEngine*	GEngine = NULL;

HTH

Update: If you would like to know where GEngine* is assigned a value (other than NULL), please accept answer for this question and post new question regarding this and I will reply to the best of my knowledge. Maybe call it “Where is GEngine* initialised” Thanks

Thank you so much!

Best,
wcl1993