I had to make the component a UPROPERTY with VisibleAnywhere and BlueprintReadWrite:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
UStaticMeshComponent* HealthSMC;
I had to make the component a UPROPERTY with VisibleAnywhere and BlueprintReadWrite:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
UStaticMeshComponent* HealthSMC;