Hello everyone,
I’m trying to obtain the length of an array using c#.
So I have this:
public Transform waypoints;
Which I fill with empty objects that will be used as a path.
I want to get the length of this array so that I will be able to isolate it in a variable and use it afterwards.
But, strangely, I cannot obtain the length of my array. I can’t find a method which would give me the length of my array like this:
private int waypointsNumber;
waypointsNumber = waypoints.GetLength();
Is there a method or a way in c# to obtain this value?