I create a widget component with name BP_HealthBarWidgetComponent and a widget W_HealthBar.
Set the widget class as follow.
then I try to get the widget name in the begining of game play and it show W_HealthBar_c_0, till now it is good.
but when i try to get widget later throught a function, it cannot be found and set to None (print None)for some reason which leads to a cast failed. And I can not set widget manually or workaround this.