In the BatteryCollector tutorial we have two declerations for HUD classes.
TSubclassOf <class UUserWidget> HUDWidgetClass; class UUserWidget* CurrentWidget;
They both inherited(I am totally noob. I don’t even sure if they are inherited. But I don’t have any other words for it.) from UUserWidget. One is having a pointer and I completely miss the other ones point. I also don’t see the connection between two.
So what is the point of TSubclassOf if we are already have a CurrentWidget object?