How do I pass the value of a variable to Textures Progress?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By VarionDrakon

Hi guys, how do I pass the value of a variable to Textures Progress (Value)?

Preferably in C#…

:bust_in_silhouette: Reply From: VarionDrakon

Here’s the answer:

	[Export] public byte hp = 100;
GetNode<TextureProgress>("../UI/LifeBar").Value = hp;