其他分享
首页 > 其他分享> > UE4启动过程

UE4启动过程

作者:互联网

UE4启动过程


这个文件夹中有各个平台的入口函数,最终都会调用到Launch.cpp中。

LaunchWindows.cpp

int32 WINAPI WinMain(_In_ HINSTANCE hInInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ char* pCmdLine, _In_ int32 nCmdShow)
{
        //这里进入引擎
	int32 Result = LaunchWindowsStartup(hInInstance, hPrevInstance, pCmdLine, nCmdShow, nullptr);
	LaunchWindowsShutdown();
	return Result;
}

LaunchWindowsStartup调用Launch.h的GuardedMain函数进行引擎的初始化和循环等。

GuardedMain函数调用EnginePreInit函数进行引擎的预先初始化,然后调用EditorInit进行引擎的初始化,
再调用EngineTick函数进行循环,如果有编辑器,则调用EditorExit退出。

标签:int32,调用,函数,启动,hPrevInstance,初始化,引擎,UE4,过程
来源: https://www.cnblogs.com/pixel-Teee/p/15705510.html