What is the correct way to change a sprites texture in code? this below crashes godot 3.5.3 to desktop:
At the top of the class i have:
[Export] public Sprite TestSprite;
which ive dragged a texture into.
then in _Ready:
public override void _Ready()
{
TestSprite.Texture = GD.Load<Texture>("res://Textures/Ranks/Rank0.png");
}
Run this and bang! a silent crash to desktop, no log or any output.