I’m having an issue with a HealthBar widget I created in blueprints.
I have the default Paper2D character blueprint in the game, and the HeathBar widget is just a progress bar with a data binding for the percentage (getting it from the code from
UPROPERTY(Replicated,EditAnywhere,BlueprintReadOnly,Category = "Character Attributes", meta=(ClampMin="0")) int32 MaximumHealth; UPROPERTY(Replicated,EditAnywhere,BlueprintReadOnly,Category = "Character Attributes", meta=(ClampMin="0")) int32 Health;
I added a WidgetComponent to the character blueprint, and I create a Widget of type “HealthBar” in the construction script and assign it to the WidgetComponent.
Now the character blueprint crashes when it’s opened. When the widget is created (created for the designer view, I’m guessing) some thread is calling GetOwnerPlayer of the HealthBar widget. There it crashes the editor because there is a
If anyone has any idea wtf is going on help is very much appreciated =D
I have attached the call stack and the assert.