Here's my custom info display added to {A1AE127F16DD352E}Prefabs/Characters/Core/DefaultPlayerControllerMP_Factions.et
The script class
class HCA_SCR_ScreenEffects : SCR_InfoDisplayExtended { static int s_iTotalCount = 0; void HCA_SCR_ScreenEffects () { HCA_OnConstructor(); }; void ~HCA_SCR_ScreenEffects () { HCA_OnDeConstructor(); }; private void HCA_OnConstructor () { s_iTotalCount++; Print("HCA::HCA_SCR_ScreenEffects::HCA_OnConstructor:" + s_iTotalCount); }; private void HCA_OnDeConstructor () { s_iTotalCount = s_iTotalCount -1; Print("HCA::HCA_SCR_ScreenEffects::HCA_OnDeConstructor:" + s_iTotalCount); };
This is how the logs look like on the log console in workbench when I'm in play mode:
When I close the workbench while in game mode:
19:05:22:931 SCRIPT (E): Leaked 'HCA_SCR_ScreenEffects' script instance (3x)! 19:05:22:931 SCRIPT (E): Leaked 'array<BaseInfoDisplay>' script instance (3x)!