GSCUWHud #

Base user widget class to inherit from for UMG that needs to interact with an Ability System Component.

Suitable to use for typical case of Player HUD. Initialization happens automatically on NativeConstruct by setting up
owner actor based on Owning Player controller (when Widget is created from Blueprint, the Owning Player pin)

If you'd like to use a user widget with a Widget Component, use UGSCUserWidget instead and manually invoke InitializeWithAbilitySystem().

The other main difference with UGSCUserWidget is that this class also defines widget optional binding for
Health / Stamina / Mana attributes from UGSCAttributeSet.

Properties #

HealthText #

Type UTextBlock*

Health Text

HealthProgressBar #

Type UProgressBar*

Health Progress Bar

StaminaText #

Type UTextBlock*

Stamina Text

StaminaProgressBar #

Type UProgressBar*

Stamina Progress Bar

ManaText #

Type UTextBlock*

Mana Text

ManaProgressBar #

Type UProgressBar*

Mana Progress Bar

Functions #

SetStaminaPercentage #

Updates bound health progress bar with the new percent

Parameters

Name Type Description
StaminaPercentage float

SetStamina #

Updates bound stamina widgets to reflect the new stamina change

Set Stamina

Parameters

Name Type Description
Stamina float

SetMaxStamina #

Updates bound stamina widgets to reflect the new max stamina change

Parameters

Name Type Description
MaxStamina float

SetMaxMana #

Updates bound mana widgets to reflect the new max mana change

Set Max Mana

Parameters

Name Type Description
MaxMana float

SetMaxHealth #

Updates bound health widgets to reflect the new max health change

Parameters

Name Type Description
MaxHealth float

SetManaPercentage #

Updates bound mana progress bar with the new percent

Parameters

Name Type Description
ManaPercentage float

SetMana #

Updates bound mana widgets to reflect the new mana change

Set Mana

Parameters

Name Type Description
Mana float

SetHealthPercentage #

Updates bound stamina progress bar with the new percent

Parameters

Name Type Description
HealthPercentage float

SetHealth #

Updates bound health widgets to reflect the new health change

Set Health

Parameters

Name Type Description
Health float

InitFromCharacter #

Init widget with attributes from owner character *

Init from Character


Generated on Tue, 16 Jul 2024 16:16:37 GMT