From 77f6d00ad861c8db1e6d85112a58a6abd573296f Mon Sep 17 00:00:00 2001 From: Sathvik Mulukutla <72032381+DarthKitten2130@users.noreply.github.com> Date: Sat, 22 Jul 2023 22:04:38 +0530 Subject: [PATCH] Updated Deprecated Method in C# Example Size to Region (cherry picked from commit 5b3f14cc827acd2c3cc6a3c542d0eb577af4cd8c) --- doc/classes/AStarGrid2D.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/AStarGrid2D.xml b/doc/classes/AStarGrid2D.xml index 418a57dfa4b..afef25643da 100644 --- a/doc/classes/AStarGrid2D.xml +++ b/doc/classes/AStarGrid2D.xml @@ -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)