Home > other >  Could you tell me about UE4 WIDGET
Could you tell me about UE4 WIDGET

Time:09-30

WidgetComponent=CreateDefaultSubobject (the TEXT (" WidgetComponent "));
WidgetComponent - & gt; AttachToComponent (RootComponent FAttachmentTransformRules: : KeepRelativeTransform);
UClass * Widget=LoadClass (NULL, TEXT (" WidgetBlueprint '/Game/Assest/GamePlayerUI/CharacterPropertyUi CharacterPropertyUi_C' "));
WidgetComponent - & gt; SetWidgetClass (Widget);





I to add this widget to my character, but shows don't come out of this, unless I'm crazy move the mouse to show but will disappear after a while, ask me what's going on, I wrote a function less

CodePudding user response:

WidgetComponent position size facing produced, whether can only see the widget widget positive
  • Related