Skip to content

Commit

Permalink
Merge pull request #79794 from DarthKitten2130/master
Browse files Browse the repository at this point in the history
Update outdated C# code sample in `AStarGrid2D` documentation
  • Loading branch information
YuriSizov committed Jul 25, 2023
2 parents ee1be95 + 5b3f14c commit 9d118c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/AStarGrid2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[/gdscript]
[csharp]
AStarGrid2D astarGrid = new AStarGrid2D();
astarGrid.Size = new Vector2I(32, 32);
astarGrid.Region = new Rect2I(0, 0, 32, 32);
astarGrid.CellSize = new Vector2I(16, 16);
astarGrid.Update();
GD.Print(astarGrid.GetIdPath(Vector2I.Zero, new Vector2I(3, 4))); // prints (0, 0), (1, 1), (2, 2), (3, 3), (3, 4)
Expand Down

0 comments on commit 9d118c2

Please sign in to comment.