Path2D bug in 3.1.1?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Chili-Turtle

When I draw a Path2D and run the game all points are gone. I even saved the curve, but still all points are gone.

:bust_in_silhouette: Reply From: kidscancode

What do you mean by “gone”? If you mean you can’t see it, that’s because Path2D has no visibility in game. It’s only for following using PathFollow2D. If you want to see the path, you need to draw the curve using Line2D.

no if I get_curve().get_baked_points() the array is empty and get_curve().get_point_count()
is also 0, even if I have a curve. But I resolved the issue, I closed and opened godot, after that the curve didn’t delete it self and everything works as it should.

Chili-Turtle | 2019-05-08 18:04