게임엔진(GameEngine)/Unreal4
언리얼4에서 C++ 로 싱글톤, Game Instance
3DMP
2016. 7. 6. 15:08
UGameInstance
GameInstance: high-level manager object for an instance of the running game. Spawned at game creation
and not destroyed until game instance is shut down. Running as a standalone game,
there will be one of these. Running in PIE (play-in-editor) will generate one of these per PIE instance.
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Engine/UGameInstance/index.html
GameInstance: high-level manager object for an instance of the running game. Spawned at game creation
and not destroyed until game instance is shut down. Running as a standalone game,
there will be one of these. Running in PIE (play-in-editor) will generate one of these per PIE instance.
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Engine/UGameInstance/index.html
Thread: Game Instance VS Singleton
https://forums.unrealengine.com/showthread.php?29765-Game-Instance-VS-Singleton
반응형