![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | AlMoeSharpton86 |
I’ve been following this tutorial (https://medium.com/kitschdigital/2d-path-finding-with-astar-in-godot-3-0-7810a355905a) But I’m trying to convert the GDScript in the tutorial to a C# equivalent.
In the sections which use a path array variable, it uses a length property / method such as != 0.
But going through the Godot C# docs (http://godotsharp.net/api/3.2.0/Godot.Collections.Array/ ) , and under the array section it does not seem to have an length propetry or method to use.
How would be able to overcome this? Should I use an normal C# array, as I’m storing Vector2 variables in my C# godot collections array of an Vector 2 type.
My declaration of the array is :
private Godot.Collections.Array path;
Thanks.