summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorSathvik Mulukutla <72032381+DarthKitten2130@users.noreply.github.com>2023-07-22 22:04:38 +0530
committerGitHub <noreply@github.com>2023-07-22 22:04:38 +0530
commit5b3f14cc827acd2c3cc6a3c542d0eb577af4cd8c (patch)
treefaaa8df5c6382e236777003d3aae88bc5ed1703c /doc/classes
parent6588a4a29af1621086feac0117d5d4d37af957fd (diff)
downloadredot-engine-5b3f14cc827acd2c3cc6a3c542d0eb577af4cd8c.tar.gz
Updated Deprecated Method in C# Example Size to Region
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/AStarGrid2D.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/AStarGrid2D.xml b/doc/classes/AStarGrid2D.xml
index ec55ccedb2..5d54af60ec 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)