Godot Version
4
Question
Hi there, I’m currently trying to change the texture of a child node upon loading the scene. For reference, this is my scene structure:
I’ve store “TerrainHandler” and its child “Sprite2D” in the variables here:
Upon the scene launching, I want to set the Sprite2D child node of TerrainHandler to an art resource
The issue is, whenever I launch the scene, it’s pulling up this error:
Oddly, when I change the reference of the Sprite2D to below, it runs without issue.
Anyone knows how I can solve this issue, while still storing the child node as a variable (i.e. tsprite_2d)? Thanks!