We see that this is your first time posting in our forums! We welcome you to the Unreal Engine Community! I see that you are having issues with implementing a singleton pattern. May I ask, have you coded in Unity prior to Unreal Engine? Which version of UE are you currently using? I have looked around (simple Google search), and it seems that other game devs have chosen a different route instead of traditional singleton patterns in UE. Here is a link to a discussion if you would like to see how others have approached issues with the singleton pattern: Singleton pattern in c++ - Blueprint - Epic Developer Community Forums I hope this helps or points you in the right direction! Happy Creating and Merry Christmas!
Hi @2k10cs86 , could you share me what’s the unreal engine use case here ? This problem can be posted in Stackoverflow too. However if you want to see a singleton example in the engine,
Download and compile the source code and see GameInstance class , debug it, you can find singleton examples from there.