How to have multiple widgets with different designs, use the same blueprint logic?

Hi there. I’ve written down a blueprint for slots machine game with like 60 functions in it.
Now I want to redesign it and have like 4 different slots machines, with the same logic but different designs.
so my question is, is there a way to somehow make my new widgets inherit the logic I’ve already written down instead of copying it?
Because by copying it, if I find a small bug, I have to write down the fix for it like 4 times to fix it in all designs.
Thanks in advance!

1 Like

Widgets support inheritance so you can choose a base class when creating one:

Or re-parent existing widgets:

image

Methods and variables are inherited. Hierarchy / layout is not. Sounds like it could work for:

4 different slots machines, with the same logic but different designs.

1 Like