UPROPERTY(EditDefaultsOnly)
float MaxHealth = 100;
UPROPERTY(VisibleAnywhere)
float Health;
It’s written like this, and it says Health = MaxHealth on BeginPlay.
But what I’m curious about is that when you start the game in the editor, you get Max Health as shown in the picture below, but it’s zero Health. Why?
