Ive tried a lot of methods but can’t get this working.
So I have a class, myClass, with UGlobalEditorUtilityBase as parent, doing so in order for my blutility to have myClass as a parent, and override a function. The thing is, the blutility is essentially just a calculation, so the UFUNCTION should be static, but I can’t seem to get it working, currently I’ve tried;
Yes I did also attempt BlueprintCallable, which came with it’s own errors. And also created an UBlueprintFunctionLibrary, thing is if the class inherits UBlueprintFunctionLibrary, then it can’t also inherit UGlobalUtility, and thus I Cant extend it with my Blutility.
Yes the error you are getting is linker error because you don’t have code in cpp, he finds mention of your static function in definitions of generated bineries but can;t find code for it, so he can’t link binery code to the function and there for link it toghther with rest of the code. And htis has nothing to do with UFUNCTION, you would get this error either way if you use it or not
So as mrooney asks, what really you want to do here? Note blueprints don’t support static events, if you want to make event it needs to be in object and you need to “spawn” that object first in order to use it. If you want global-like event placing it in AGameMode or AGameInstance would be good, but there many other possibilities