Problem with GetNode in C#

TheMnkTheMnk Posts: 32Member
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 ?.

Error


Tags :

Comments

  • MegalomaniakMegalomaniak Posts: 1,824Admin

    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:
    https://github.com/godotengine/godot-docs/issues

  • 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
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file