Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | VarionDrakon |
Hi guys, how do I pass the value of a variable to Textures Progress (Value)?
Preferably in C#…
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | VarionDrakon |
Hi guys, how do I pass the value of a variable to Textures Progress (Value)?
Preferably in C#…
Reply From: | VarionDrakon |
Here’s the answer:
[Export] public byte hp = 100;
GetNode<TextureProgress>("../UI/LifeBar").Value = hp;