You seem to be doing nothing wrong as this should work just fine.
At a glance, it looks like a very old bug persisting through versions 4.10 - 4.12 where 3d widgets were still experimental but you’re using 4.16, right?
Things you can try:
- Ensure you’re running a single instance of the editor.
- Ensure the widget blueprint you’re assigning is not marked as dirty - is compiled with no warnings/errors.
- Delete the component, compile, add it, assign widget class again. ( yup, off/on again
)
Also, have a look at the OutputLog: Window>DeveloperTools>OutputLog - are there any warnings / errors?
I bet you can’t reproduce it in an empty project.