Child of GameplayStatics

Hello,

Is it good practice to create a class that inherits from GameplayStatics for your project and use it as a public library of static functions?
You can then facilitate access to basic classes, such as the character class of a given project, and with one function return the appropriate reference - without additional casting outside the function.

You should make your own class based on UBlueprintFunctionLibrary, not from GameplayStatics. GameplayStatics is based on UBlueprintFunctionLibrary.

And yes it’s always mostly good practice to have static function libraries, we utilize a few of them in our projects.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.