Using a function in all objects and widgets

Sounds like Blueprint Function Library:

Hello!

I’ve made a PercentChance function which takes a float as an input and compares it to a randomly generated number and outputs a boolean. Now I want that function to be available on all objects and widgets.

My first thought was to put the function into the Actor object or make a new CommonFunctions object and change the default parent to that new object, so that all other objects would inherit the function. However, I believe I can’t get the function to work on widgets with this approach, which is actually very important. I know that interfaces work for both objects and widgets, but that wouldn’t really help since interfaces were made to have different implementations in different objects which is the exact opposite of what I need here.

Could someone help me out?

Yup, that seems right. Thanks!