I have a subsystem blueprint whose parent class in c++ is marked as abstract. The blueprint never loads automatically when I open the editor. The blueprint loads after double-clicking it. So how can I load the blueprint automatically without clicking on it? I was trying to just statically load the blueprint but it is not working.
So, back to topic, with a custom BP class I make sure I load Blueprints I need without hardcoding name of classes into C++ files (hardcoded text and names is a bad practice):
Thank you for the detailed help and also for the second method It is very good.I am trying approach 1 first. I am unable to find this method GetBlueprintFromCDO is it available in UE4 ? I cannot find it : (
That is not an Unreal Engine function either. I have created it somewhere in my libs.
But you donât need it to make it work, class loading should work without that.
oh ok But I am unable to make it work I must be doing something wrong : ( I have an abstract subsystem class named as UMortarResourceManager and I have blueprint BP_MortarResourceManager. I am trying to load BP_MortarResourceManager so I write this code
This is a c++ plugin which is meant to be used with other games so is it feasible to have that in game instance ? : ( as the game would also be having itâs own game instance. Anyways I will debug more as according to you is should work so I must be doing something wrong. I will get back . Thanks for the quick replies : )