Problem with GetNode in C#

TheMnkTheMnk Posts: 36Member
edited September 2019 in Programming

It is fixed, it should only indicate "/ root / Node2D / Path2D"

Hi, please, why can't I get the Path2D node from the Sprite node with this code ?.


Tags :


  • MegalomaniakMegalomaniak Posts: 2,005Admin

    If you think the documentation is confusing or that there is a issue with the documentation in some way, you should report it to the documentation tracker:

  • BigYettiBigYetti Posts: 1Member

    The following does work for me:
    var x = G.GetNode<SpinBox>("Control/SpinBox").Value;

    I didn't try your exact configuration but maybe dropping the first slash will work? IE:
    camino = GetNode<Path2D>("Node2D/Path2D").GetCurve();

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file